feat(AutocompleteInteraction): Add commandGuildId (#8086)

This commit is contained in:
Jiralite
2022-06-13 17:14:01 +01:00
committed by GitHub
parent a2eebf6c66
commit 10a6c4287d
2 changed files with 7 additions and 0 deletions

View File

@@ -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}

View File

@@ -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>,