Skip to content

Commit

Permalink
types(WebhookMessageOptions): disallow stickers (#7012)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed Nov 23, 2021
1 parent 77aff08 commit 099536e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/structures/interfaces/TextBasedChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ 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
*/

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

/**
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 099536e

Please sign in to comment.