-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(channels): correctly process events
feat(users): add ability to dm the user chore(release): 0.11.1
- Loading branch information
Showing
38 changed files
with
279 additions
and
97 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/api/entities/channel/interfaces/AbstractGuildTextChannelData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { AbstractGuildChannelData } from '@src/api/entities/channel/interfaces/AbstractGuildChannelData' | ||
import { WritableChannelData } from '@src/api/entities/channel/interfaces/WritableChannelData' | ||
|
||
export interface AbstractGuildTextChannelData extends AbstractGuildChannelData { | ||
export interface AbstractGuildTextChannelData extends AbstractGuildChannelData, WritableChannelData { | ||
topic?: string | ||
nsfw?: boolean | ||
lastMessageId?: string | ||
lastPinTimestamp?: string | ||
defaultAutoArchiveDuration?: number | ||
} |
5 changes: 2 additions & 3 deletions
5
src/api/entities/channel/interfaces/AbstractThreadChannelData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...l/interfaces/GuildChannelDeleteOptions.ts → ...hannel/interfaces/ChannelDeleteOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { AnyChannel } from '@src/api/entities/channel/interfaces/AnyChannel' | ||
|
||
export interface GuildChannelDeleteOptions { | ||
export interface ChannelDeleteOptions { | ||
reason?: string | ||
patchEntity?: AnyChannel | ||
isDm?: boolean | ||
} |
6 changes: 6 additions & 0 deletions
6
src/api/entities/channel/interfaces/DirectMessagesChannelData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { AbstractChannelData } from '@src/api' | ||
import { WritableChannelData } from '@src/api/entities/channel/interfaces/WritableChannelData' | ||
|
||
export interface DirectMessagesChannelData extends AbstractChannelData, WritableChannelData { | ||
recipientId: string | ||
} |
5 changes: 2 additions & 3 deletions
5
src/api/entities/channel/interfaces/RawAbstractGuildTextChannelData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { RawAbstractGuildChannelData } from '@src/api/entities/channel/interfaces/RawAbstractGuildChannelData' | ||
import { RawWritableChannelData } from '@src/api/entities/channel/interfaces/RawWritableChannelData' | ||
|
||
export interface RawAbstractGuildTextChannelData extends RawAbstractGuildChannelData { | ||
export interface RawAbstractGuildTextChannelData extends RawAbstractGuildChannelData, RawWritableChannelData { | ||
topic?: string | ||
nsfw?: boolean | ||
last_message_id?: string | ||
last_pin_timestamp?: string | ||
default_auto_archive_duration?: number | ||
} |
5 changes: 2 additions & 3 deletions
5
src/api/entities/channel/interfaces/RawAbstractThreadChannelData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/api/entities/channel/interfaces/RawDirectMessagesChannelData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { RawAbstractGuildTextChannelData, RawUserData } from '@src/api' | ||
import { RawWritableChannelData } from '@src/api/entities/channel/interfaces/RawWritableChannelData' | ||
|
||
export interface RawDirectMessagesChannelData extends RawAbstractGuildTextChannelData, RawWritableChannelData { | ||
recipients: RawUserData[] | ||
} |
4 changes: 4 additions & 0 deletions
4
src/api/entities/channel/interfaces/RawWritableChannelData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface RawWritableChannelData { | ||
last_message_id?: string | ||
last_pin_timestamp?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface WritableChannelData { | ||
lastMessageId?: string | ||
lastPinTimestamp?: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.