types(WebhookMessageOptions): disallow stickers (#7012)

This commit is contained in:
Rodry
2021-11-23 09:27:03 +00:00
committed by GitHub
parent 77aff08345
commit 099536ee60
3 changed files with 3 additions and 2 deletions

View File

@@ -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
*/
/**

View File

@@ -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
*/
/**

2
typings/index.d.ts vendored
View File

@@ -5171,7 +5171,7 @@ export interface WebhookFetchMessageOptions {
threadId?: Snowflake;
}
export interface WebhookMessageOptions extends Omit<MessageOptions, 'reply'> {
export interface WebhookMessageOptions extends Omit<MessageOptions, 'reply' | 'stickers'> {
username?: string;
avatarURL?: string;
threadId?: Snowflake;