mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
feat: Backport sending message flags (#7560)
This commit is contained in:
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@@ -3348,7 +3348,7 @@ export interface PartialWebhookFields {
|
||||
/** @deprecated */
|
||||
fetchMessage(message: Snowflake | '@original', cache?: boolean): Promise<Message | APIMessage>;
|
||||
/* tslint:enable:unified-signatures */
|
||||
send(options: string | MessagePayload | WebhookMessageOptions): Promise<Message | APIMessage>;
|
||||
send(options: string | MessagePayload | Omit<WebhookMessageOptions, 'flags'>): Promise<Message | APIMessage>;
|
||||
}
|
||||
|
||||
export interface WebhookFields extends PartialWebhookFields {
|
||||
@@ -4911,9 +4911,10 @@ export interface InteractionDeferReplyOptions {
|
||||
|
||||
export type InteractionDeferUpdateOptions = Omit<InteractionDeferReplyOptions, 'ephemeral'>;
|
||||
|
||||
export interface InteractionReplyOptions extends Omit<WebhookMessageOptions, 'username' | 'avatarURL'> {
|
||||
export interface InteractionReplyOptions extends Omit<WebhookMessageOptions, 'username' | 'avatarURL' | 'flags'> {
|
||||
ephemeral?: boolean;
|
||||
fetchReply?: boolean;
|
||||
flags?: BitFieldResolvable<'SUPPRESS_EMBEDS' | 'EPHEMERAL', number>;
|
||||
}
|
||||
|
||||
export type InteractionResponseType = keyof typeof InteractionResponseTypes;
|
||||
@@ -5180,6 +5181,7 @@ export interface MessageOptions {
|
||||
reply?: ReplyOptions;
|
||||
stickers?: StickerResolvable[];
|
||||
attachments?: MessageAttachment[];
|
||||
flags?: BitFieldResolvable<'SUPPRESS_EMBEDS', number>;
|
||||
}
|
||||
|
||||
export type MessageReactionResolvable =
|
||||
|
||||
Reference in New Issue
Block a user