From 231954d6302b0c073f39c715698eba1312c2d77f Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:44:14 +0000 Subject: [PATCH] types(InteractionReplyOptions): Add `withResponse` (#10637) types(InteractionReplyOptions): add `withResponse` Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/typings/index.d.ts | 1 + packages/discord.js/typings/index.test-d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index c4d5d22ed..ac7242ab0 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -6214,6 +6214,7 @@ export interface InteractionDeferUpdateOptions { export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll { tts?: boolean; + withResponse?: boolean; flags?: BitFieldResolvable< Extract, MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications diff --git a/packages/discord.js/typings/index.test-d.ts b/packages/discord.js/typings/index.test-d.ts index e62ac692e..036d7250d 100644 --- a/packages/discord.js/typings/index.test-d.ts +++ b/packages/discord.js/typings/index.test-d.ts @@ -2041,6 +2041,7 @@ client.on('interactionCreate', async interaction => { if (interaction.isRepliable()) { expectAssignable(interaction); interaction.reply('test'); + interaction.reply({ withResponse: false }); } if (