mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(AutocompleteInteraction): Add commandGuildId (#8086)
This commit is contained in:
@@ -36,6 +36,12 @@ class AutocompleteInteraction extends Interaction {
|
||||
*/
|
||||
this.commandType = data.data.type;
|
||||
|
||||
/**
|
||||
* The id of the guild the invoked application command is registered to
|
||||
* @type {?Snowflake}
|
||||
*/
|
||||
this.commandGuildId = data.data.guild_id ?? null;
|
||||
|
||||
/**
|
||||
* Whether this interaction has already received a response
|
||||
* @type {boolean}
|
||||
|
||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -937,6 +937,7 @@ export class AutocompleteInteraction<Cached extends CacheType = CacheType> exten
|
||||
public commandId: Snowflake;
|
||||
public commandName: string;
|
||||
public commandType: ApplicationCommandType.ChatInput;
|
||||
public commandGuildId: Snowflake | null;
|
||||
public responded: boolean;
|
||||
public options: Omit<
|
||||
CommandInteractionOptionResolver<Cached>,
|
||||
|
||||
Reference in New Issue
Block a user