diff options
Diffstat (limited to 'src/lib/extensions')
-rw-r--r-- | src/lib/extensions/discord.js/BushDMChannel.ts | 2 | ||||
-rw-r--r-- | src/lib/extensions/discord.js/BushMessage.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/extensions/discord.js/BushDMChannel.ts b/src/lib/extensions/discord.js/BushDMChannel.ts index d73ad70..dc7d309 100644 --- a/src/lib/extensions/discord.js/BushDMChannel.ts +++ b/src/lib/extensions/discord.js/BushDMChannel.ts @@ -22,7 +22,6 @@ import type { RawDMChannelData } from 'discord.js/typings/rawDataTypes'; export class BushDMChannel extends DMChannel { public declare readonly client: BushClient; public declare messages: BushMessageManager; - public declare recipient: BushUser; public constructor(client: BushClient, data?: RawDMChannelData) { super(client, data); @@ -30,6 +29,7 @@ export class BushDMChannel extends DMChannel { } export interface BushDMChannel extends DMChannel { + get recipient(): BushUser | null; isText(): this is BushTextChannel; isDM(): this is BushDMChannel; isDMBased(): this is PartialGroupDMChannel | BushDMChannel; diff --git a/src/lib/extensions/discord.js/BushMessage.ts b/src/lib/extensions/discord.js/BushMessage.ts index c424d12..48e1792 100644 --- a/src/lib/extensions/discord.js/BushMessage.ts +++ b/src/lib/extensions/discord.js/BushMessage.ts @@ -10,8 +10,8 @@ import type { BushUser } from '#lib'; import { - ActionRowComponent, Message, + MessageActionRowComponent, type EmojiIdentifierResolvable, type If, type MessageEditOptions, @@ -55,7 +55,7 @@ export interface BushMessage<Cached extends boolean = boolean> extends Message<C react(emoji: EmojiIdentifierResolvable): Promise<BushMessageReaction>; removeAttachments(): Promise<BushMessage>; reply(options: string | MessagePayload | ReplyMessageOptions): Promise<BushMessage>; - resolveComponent(customId: string): ActionRowComponent | null; + resolveComponent(customId: string): MessageActionRowComponent | null; startThread(options: StartThreadOptions): Promise<BushThreadChannel>; suppressEmbeds(suppress?: boolean): Promise<BushMessage>; unpin(): Promise<BushMessage>; |