diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-05 15:20:08 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-05 15:20:08 -0500 |
commit | 1947c715f5ff846316b2d921b78f1a71a2892d1b (patch) | |
tree | f6bdc2d28537fd63f7e8c26db1cb4928cb9c9f13 /src/lib/extensions/discord.js | |
parent | 3c56bbcf795725b65192409b3211d92c097f8c82 (diff) | |
download | tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.tar.gz tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.tar.bz2 tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.zip |
chore: upgrade deps
Diffstat (limited to 'src/lib/extensions/discord.js')
-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>; |