Skip to content

Commit 231954d

Browse files
types(InteractionReplyOptions): Add withResponse (#10637)
types(InteractionReplyOptions): add `withResponse` Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 1cfc835 commit 231954d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/discord.js/typings/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6214,6 +6214,7 @@ export interface InteractionDeferUpdateOptions {
62146214

62156215
export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
62166216
tts?: boolean;
6217+
withResponse?: boolean;
62176218
flags?: BitFieldResolvable<
62186219
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
62196220
MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications

packages/discord.js/typings/index.test-d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,7 @@ client.on('interactionCreate', async interaction => {
20412041
if (interaction.isRepliable()) {
20422042
expectAssignable<RepliableInteraction>(interaction);
20432043
interaction.reply('test');
2044+
interaction.reply({ withResponse: false });
20442045
}
20452046

20462047
if (

0 commit comments

Comments
 (0)