feat(CommandInteraction): add 'commandGuildId' (#8018)

This commit is contained in:
Caleb Lam
2022-06-06 04:07:37 -04:00
committed by GitHub
parent 7fa698d23e
commit aa59a409b3
2 changed files with 7 additions and 0 deletions

View File

@@ -40,6 +40,12 @@ class CommandInteraction 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 the reply to this interaction has been deferred
* @type {boolean}

View File

@@ -432,6 +432,7 @@ export abstract class CommandInteraction<Cached extends CacheType = CacheType> e
public commandId: Snowflake;
public commandName: string;
public commandType: ApplicationCommandType;
public commandGuildId: Snowflake | null;
public deferred: boolean;
public ephemeral: boolean | null;
public replied: boolean;