diff --git a/packages/discord.js/src/structures/Webhook.js b/packages/discord.js/src/structures/Webhook.js index b8302454a7ed..e9e6cbcaaf64 100644 --- a/packages/discord.js/src/structures/Webhook.js +++ b/packages/discord.js/src/structures/Webhook.js @@ -141,8 +141,7 @@ class Webhook { /** * Options that can be passed into editMessage. - * @typedef {BaseMessageOptions} WebhookMessageEditOptions - * @property {Attachment[]} [attachments] Attachments to send with the message + * @typedef {MessageEditOptions} WebhookMessageEditOptions * @property {Snowflake} [threadId] The id of the thread this message belongs to * For interaction webhooks, this property is ignored */ diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index ab1590c74242..56deac2a6eb9 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -6184,10 +6184,7 @@ export interface InteractionCollectorOptions< } export interface InteractionDeferReplyOptions { - flags?: BitFieldResolvable< - Extract, - MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications - >; + flags?: BitFieldResolvable, MessageFlags.Ephemeral>; withResponse?: boolean; } @@ -6910,7 +6907,7 @@ export interface WebhookEditOptions { reason?: string; } -export interface WebhookMessageEditOptions extends Omit { +export interface WebhookMessageEditOptions extends MessageEditOptions { threadId?: Snowflake; }