Skip to content

Commit 7316bab

Browse files
Jiralitekodiakhq[bot]
authored andcommitted
types(InteractionReplyOptions): Add withResponse (discordjs#10637)
types(InteractionReplyOptions): add `withResponse` Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 1049a00 commit 7316bab

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
@@ -6239,6 +6239,7 @@ export interface InteractionDeferUpdateOptions {
62396239

62406240
export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
62416241
tts?: boolean;
6242+
withResponse?: boolean;
62426243
flags?: BitFieldResolvable<
62436244
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
62446245
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)