From 099536ee600f84e1734443b7d12dbd7474432dcd Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Tue, 23 Nov 2021 09:27:03 +0000 Subject: [PATCH] types(WebhookMessageOptions): disallow stickers (#7012) --- src/structures/Message.js | 1 + src/structures/interfaces/TextBasedChannel.js | 2 +- typings/index.d.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 1bd600c19..224a12e2d 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -758,6 +758,7 @@ class Message extends Base { * @typedef {BaseMessageOptions} ReplyMessageOptions * @property {boolean} [failIfNotExists=true] Whether to error if the referenced message * does not exist (creates a standard message in this case when false) + * @property {StickerResolvable[]} [stickers=[]] Stickers to send in the message */ /** diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index 2c6817c3f..e4b18e47b 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -65,7 +65,6 @@ class TextBasedChannel { * @property {FileOptions[]|BufferResolvable[]|MessageAttachment[]} [files] Files to send with the message * @property {MessageActionRow[]|MessageActionRowOptions[]} [components] * Action rows containing interactive components for the message (buttons, select menus) - * @property {StickerResolvable[]} [stickers=[]] Stickers to send in the message * @property {MessageAttachment[]} [attachments] Attachments to send in the message */ @@ -73,6 +72,7 @@ class TextBasedChannel { * Options provided when sending or editing a message. * @typedef {BaseMessageOptions} MessageOptions * @property {ReplyOptions} [reply] The options for replying to a message + * @property {StickerResolvable[]} [stickers=[]] Stickers to send in the message */ /** diff --git a/typings/index.d.ts b/typings/index.d.ts index d163c4554..66128dba8 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -5171,7 +5171,7 @@ export interface WebhookFetchMessageOptions { threadId?: Snowflake; } -export interface WebhookMessageOptions extends Omit { +export interface WebhookMessageOptions extends Omit { username?: string; avatarURL?: string; threadId?: Snowflake;