Skip to content

Commit

Permalink
types(InteractionReplyOptions): allow setting `MessageFlags.SuppressN…
Browse files Browse the repository at this point in the history
…otifications` (#9199)
  • Loading branch information
almeidx authored Feb 20, 2024
1 parent 992aa67 commit c89c343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class InteractionResponses {
* @property {boolean} [ephemeral] Whether the reply should be ephemeral
* @property {boolean} [fetchReply] Whether to fetch the reply
* @property {MessageFlags} [flags] Which flags to set for the message.
* <info>Only `MessageFlags.SuppressEmbeds` and `MessageFlags.Ephemeral` can be set.</info>
* <info>Only `MessageFlags.Ephemeral`, `MessageFlags.SuppressEmbeds`, and `MessageFlags.SuppressNotifications`
* can be set.</info>
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6061,8 +6061,8 @@ export interface InteractionReplyOptions extends BaseMessageOptions {
ephemeral?: boolean;
fetchReply?: boolean;
flags?: BitFieldResolvable<
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds'>,
MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
>;
}

Expand Down

0 comments on commit c89c343

Please sign in to comment.