types: allow sending messages with SuppressNotifications flag (#9177)

This commit is contained in:
Synbulat Biishev
2023-02-28 01:39:03 +05:00
committed by GitHub
parent 664cccb270
commit 71a427f632
3 changed files with 6 additions and 2 deletions

View File

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

View File

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

View File

@@ -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 &