aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushDMChannel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions/discord.js/BushDMChannel.ts')
-rw-r--r--src/lib/extensions/discord.js/BushDMChannel.ts28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/lib/extensions/discord.js/BushDMChannel.ts b/src/lib/extensions/discord.js/BushDMChannel.ts
index 1af3ca1..363c620 100644
--- a/src/lib/extensions/discord.js/BushDMChannel.ts
+++ b/src/lib/extensions/discord.js/BushDMChannel.ts
@@ -1,12 +1,19 @@
+/* eslint-disable deprecation/deprecation */
import type {
- BushBaseGuildVoiceChannel,
+ BushCategoryChannel,
BushClient,
BushMessageManager,
+ BushNewsChannel,
+ BushStageChannel,
+ BushStoreChannel,
BushTextBasedChannel,
+ BushTextChannel,
BushThreadChannel,
- BushUser
+ BushUser,
+ BushVoiceBasedChannel,
+ BushVoiceChannel
} from '#lib';
-import { DMChannel } from 'discord.js';
+import { DMChannel, type Partialize } from 'discord.js';
import type { RawDMChannelData } from 'discord.js/typings/rawDataTypes';
/**
@@ -23,7 +30,18 @@ export class BushDMChannel extends DMChannel {
}
export interface BushDMChannel extends DMChannel {
- isText(): this is BushTextBasedChannel;
- isVoice(): this is BushBaseGuildVoiceChannel;
+ isText(): this is BushTextChannel;
+ isDM(): this is BushDMChannel;
+ isVoice(): this is BushVoiceChannel;
+ isCategory(): this is BushCategoryChannel;
+ isNews(): this is BushNewsChannel;
+ isStore(): this is BushStoreChannel;
isThread(): this is BushThreadChannel;
+ isStage(): this is BushStageChannel;
+ isTextBased(): this is BushTextBasedChannel;
+ isVoiceBased(): this is BushVoiceBasedChannel;
+}
+
+export interface PartialBushDMChannel extends Partialize<BushDMChannel, null, null, 'lastMessageId'> {
+ lastMessageId: undefined;
}