feat: Using new attachment API

This commit is contained in:
March 7th
2022-11-27 19:45:58 +07:00
parent d97cf71661
commit c70dc733e2
8 changed files with 105 additions and 5 deletions

3
typings/index.d.ts vendored
View File

@@ -2220,6 +2220,7 @@ export class MessageMentions {
export class MessagePayload {
public constructor(target: MessageTarget, options: MessageOptions | WebhookMessageOptions);
public data: RawMessagePayloadData | null;
public readonly usingNewAttachmentAPI: boolean;
public readonly isUser: boolean;
public readonly isWebhook: boolean;
public readonly isMessage: boolean;
@@ -4736,6 +4737,7 @@ export interface ClientOptions {
captchaService?: string;
captchaKey?: string;
interactionTimeout?: number;
usingNewAttachmentAPI?: boolean;
}
// end copy
@@ -6265,6 +6267,7 @@ export interface MessageOptions {
stickers?: StickerResolvable[];
attachments?: MessageAttachment[];
flags?: BitFieldResolvable<'SUPPRESS_EMBEDS', number>;
usingNewAttachmentAPI?: boolean;
}
export type MessageReactionResolvable =