From ed1ea113af3884d66db5ef6e42f85d1d02b74fb2 Mon Sep 17 00:00:00 2001 From: Almeida Date: Sat, 4 Mar 2023 19:06:46 +0000 Subject: [PATCH] types(InteractionReplyOptions): allow setting `MessageFlags.SuppressNotifications` --- .../src/structures/interfaces/InteractionResponses.js | 3 ++- packages/discord.js/typings/index.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/discord.js/src/structures/interfaces/InteractionResponses.js b/packages/discord.js/src/structures/interfaces/InteractionResponses.js index 636f7310e5ac..9a3f9793b207 100644 --- a/packages/discord.js/src/structures/interfaces/InteractionResponses.js +++ b/packages/discord.js/src/structures/interfaces/InteractionResponses.js @@ -39,7 +39,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. - * Only `MessageFlags.SuppressEmbeds` and `MessageFlags.Ephemeral` can be set. + * Only `MessageFlags.Ephemeral`, `MessageFlags.SuppressEmbeds`, and `MessageFlags.SuppressNotifications` + * can be set. */ /** diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index f2a6142fb6bc..d07999b8d37f 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -5667,8 +5667,8 @@ export interface InteractionReplyOptions extends BaseMessageOptions { ephemeral?: boolean; fetchReply?: boolean; flags?: BitFieldResolvable< - Extract, - MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds + Extract, + MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications >; }