mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
types: allow sending messages with SuppressNotifications flag (#9177)
This commit is contained in:
@@ -20,6 +20,7 @@ class GuildForumThreadManager extends ThreadManager {
|
|||||||
* @typedef {BaseMessageOptions} GuildForumThreadMessageCreateOptions
|
* @typedef {BaseMessageOptions} GuildForumThreadMessageCreateOptions
|
||||||
* @property {StickerResolvable} [stickers] The stickers to send with the message
|
* @property {StickerResolvable} [stickers] The stickers to send with the message
|
||||||
* @property {BitFieldResolvable} [flags] The flags 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>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class TextBasedChannel {
|
|||||||
* @property {ReplyOptions} [reply] The options for replying to a message
|
* @property {ReplyOptions} [reply] The options for replying to a message
|
||||||
* @property {StickerResolvable[]} [stickers=[]] The stickers to send in the message
|
* @property {StickerResolvable[]} [stickers=[]] The stickers to send in the message
|
||||||
* @property {MessageFlags} [flags] Which flags to set for 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>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
5
packages/discord.js/typings/index.d.ts
vendored
5
packages/discord.js/typings/index.d.ts
vendored
@@ -5827,7 +5827,10 @@ export interface MessageCreateOptions extends BaseMessageOptions {
|
|||||||
nonce?: string | number;
|
nonce?: string | number;
|
||||||
reply?: ReplyOptions;
|
reply?: ReplyOptions;
|
||||||
stickers?: StickerResolvable[];
|
stickers?: StickerResolvable[];
|
||||||
flags?: BitFieldResolvable<Extract<MessageFlagsString, 'SuppressEmbeds'>, MessageFlags.SuppressEmbeds>;
|
flags?: BitFieldResolvable<
|
||||||
|
Extract<MessageFlagsString, 'SuppressEmbeds' | 'SuppressNotifications'>,
|
||||||
|
MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
|
||||||
|
>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GuildForumThreadMessageCreateOptions = BaseMessageOptions &
|
export type GuildForumThreadMessageCreateOptions = BaseMessageOptions &
|
||||||
|
|||||||
Reference in New Issue
Block a user