mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
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:
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -6214,6 +6214,7 @@ export interface InteractionDeferUpdateOptions {
|
|||||||
|
|
||||||
export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
|
export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
|
||||||
tts?: boolean;
|
tts?: boolean;
|
||||||
|
withResponse?: boolean;
|
||||||
flags?: BitFieldResolvable<
|
flags?: BitFieldResolvable<
|
||||||
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
|
Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
|
||||||
MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
|
MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
|
||||||
|
|||||||
@@ -2041,6 +2041,7 @@ client.on('interactionCreate', async interaction => {
|
|||||||
if (interaction.isRepliable()) {
|
if (interaction.isRepliable()) {
|
||||||
expectAssignable<RepliableInteraction>(interaction);
|
expectAssignable<RepliableInteraction>(interaction);
|
||||||
interaction.reply('test');
|
interaction.reply('test');
|
||||||
|
interaction.reply({ withResponse: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user