Skip to content

Commit

Permalink
types: allow sending messages with SuppressNotifications flag (#9177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syjalo committed Feb 27, 2023
1 parent 664cccb commit 71a427f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Expand Up @@ -20,6 +20,7 @@ class GuildForumThreadManager extends ThreadManager {
* @typedef {BaseMessageOptions} GuildForumThreadMessageCreateOptions
* @property {StickerResolvable} [stickers] The stickers to send with the message
* @property {BitFieldResolvable} [flags] The flags to send with the message
* <info>Only `MessageFlags.SuppressEmbeds` and `MessageFlags.SuppressNotifications` can be set.</info>
*/

/**
Expand Down
Expand Up @@ -81,7 +81,7 @@ class TextBasedChannel {
* @property {ReplyOptions} [reply] The options for replying to a message
* @property {StickerResolvable[]} [stickers=[]] The stickers to send in the message
* @property {MessageFlags} [flags] Which flags to set for the message.
* <info>Only `MessageFlags.SuppressEmbeds` can be set.</info>
* <info>Only `MessageFlags.SuppressEmbeds` and `MessageFlags.SuppressNotifications` can be set.</info>
*/

/**
Expand Down
5 changes: 4 additions & 1 deletion packages/discord.js/typings/index.d.ts
Expand Up @@ -5827,7 +5827,10 @@ export interface MessageCreateOptions extends BaseMessageOptions {
nonce?: string | number;
reply?: ReplyOptions;
stickers?: StickerResolvable[];
flags?: BitFieldResolvable<Extract<MessageFlagsString, 'SuppressEmbeds'>, MessageFlags.SuppressEmbeds>;
flags?: BitFieldResolvable<
Extract<MessageFlagsString, 'SuppressEmbeds' | 'SuppressNotifications'>,
MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
>;
}

export type GuildForumThreadMessageCreateOptions = BaseMessageOptions &
Expand Down

2 comments on commit 71a427f

@vercel
Copy link

@vercel vercel bot commented on 71a427f Feb 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 71a427f Feb 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.