types(InteractionReplyOptions): Add withResponse (#10637)

types(InteractionReplyOptions): add `withResponse`

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Jiralite
2024-12-09 08:44:14 +00:00
committed by GitHub
parent 1cfc835e97
commit 231954d630
2 changed files with 2 additions and 0 deletions

View File

@@ -6214,6 +6214,7 @@ export interface InteractionDeferUpdateOptions {
export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
tts?: boolean;
withResponse?: boolean;
flags?: BitFieldResolvable<
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications

View File

@@ -2041,6 +2041,7 @@ client.on('interactionCreate', async interaction => {
if (interaction.isRepliable()) {
expectAssignable<RepliableInteraction>(interaction);
interaction.reply('test');
interaction.reply({ withResponse: false });
}
if (