From c89c343b0a6f74fc760ae6a2dab42cc07fef6b39 Mon Sep 17 00:00:00 2001 From: Almeida Date: Tue, 20 Feb 2024 20:28:37 +0000 Subject: [PATCH] types(InteractionReplyOptions): allow setting `MessageFlags.SuppressNotifications` (#9199) --- .../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 10ebd40715d6..c52ba133f5ef 100644 --- a/packages/discord.js/src/structures/interfaces/InteractionResponses.js +++ b/packages/discord.js/src/structures/interfaces/InteractionResponses.js @@ -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. - * 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 6eb49bb2bf42..597c16a8ced3 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -6061,8 +6061,8 @@ export interface InteractionReplyOptions extends BaseMessageOptions { ephemeral?: boolean; fetchReply?: boolean; flags?: BitFieldResolvable< - Extract, - MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds + Extract, + MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications >; }