Skip to content

Commit

Permalink
chore(Typings): fix WebhookEditMessageOptions not having attachments (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Milo123459 committed Aug 17, 2021
1 parent a4b8623 commit 76cf52c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/structures/Webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class Webhook {
* @property {string} [content] See {@link BaseMessageOptions#content}
* @property {FileOptions[]|BufferResolvable[]|MessageAttachment[]} [files] See {@link BaseMessageOptions#files}
* @property {MessageMentionOptions} [allowedMentions] See {@link BaseMessageOptions#allowedMentions}
* @property {MessageAttachment[]} [attachments] Attachments to send with the message
* @property {MessageActionRow[]|MessageActionRowOptions[]} [components]
* Action rows containing interactive components for the message (buttons, select menus)
*/
Expand Down
1 change: 1 addition & 0 deletions src/structures/interfaces/TextBasedChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class TextBasedChannel {
* @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
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4185,6 +4185,7 @@ export interface MessageOptions {
files?: (FileOptions | BufferResolvable | Stream | MessageAttachment)[];
reply?: ReplyOptions;
stickers?: StickerResolvable[];
attachments?: MessageAttachment[];
}

export type MessageReactionResolvable =
Expand Down Expand Up @@ -4629,7 +4630,7 @@ export interface WebhookEditData {

export type WebhookEditMessageOptions = Pick<
WebhookMessageOptions,
'content' | 'embeds' | 'files' | 'allowedMentions' | 'components'
'content' | 'embeds' | 'files' | 'allowedMentions' | 'components' | 'attachments'
>;

export interface WebhookMessageOptions extends Omit<MessageOptions, 'reply'> {
Expand Down

0 comments on commit 76cf52c

Please sign in to comment.