mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
feat: InteractionDeferOptions (#5641)
This commit is contained in:
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@@ -418,7 +418,7 @@ declare module 'discord.js' {
|
||||
public options: CommandInteractionOption[];
|
||||
public replied: boolean;
|
||||
public webhook: WebhookClient;
|
||||
public defer(ephemeral?: boolean): Promise<void>;
|
||||
public defer(options?: InteractionDeferOptions): Promise<void>;
|
||||
public deleteReply(): Promise<void>;
|
||||
public editReply(
|
||||
content: string | APIMessage | WebhookEditMessageOptions | MessageAdditions,
|
||||
@@ -3074,6 +3074,10 @@ declare module 'discord.js' {
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface InteractionDeferOptions {
|
||||
ephemeral?: boolean;
|
||||
}
|
||||
|
||||
interface InteractionReplyOptions extends Omit<WebhookMessageOptions, 'username' | 'avatarURL'> {
|
||||
ephemeral?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user