mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
refactor: change xID to xId (#6036)
* refactor: change `xID` to `xId` * Update src/managers/MessageManager.js Co-authored-by: Noel <buechler.noel@outlook.com> Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -23,19 +23,19 @@ class CommandInteraction extends Interaction {
|
||||
*/
|
||||
|
||||
/**
|
||||
* The ID of the channel this interaction was sent in
|
||||
* The id of the channel this interaction was sent in
|
||||
* @type {Snowflake}
|
||||
* @name CommandInteraction#channelID
|
||||
* @name CommandInteraction#channelId
|
||||
*/
|
||||
|
||||
/**
|
||||
* The ID of the invoked application command
|
||||
* The invoked application command's id
|
||||
* @type {Snowflake}
|
||||
*/
|
||||
this.commandID = data.data.id;
|
||||
this.commandId = data.data.id;
|
||||
|
||||
/**
|
||||
* The name of the invoked application command
|
||||
* The invoked application command's name
|
||||
* @type {string}
|
||||
*/
|
||||
this.commandName = data.data.name;
|
||||
@@ -68,7 +68,7 @@ class CommandInteraction extends Interaction {
|
||||
* An associated interaction webhook, can be used to further interact with this interaction
|
||||
* @type {InteractionWebhook}
|
||||
*/
|
||||
this.webhook = new InteractionWebhook(this.client, this.applicationID, this.token);
|
||||
this.webhook = new InteractionWebhook(this.client, this.applicationId, this.token);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -76,7 +76,7 @@ class CommandInteraction extends Interaction {
|
||||
* @type {?ApplicationCommand}
|
||||
*/
|
||||
get command() {
|
||||
const id = this.commandID;
|
||||
const id = this.commandId;
|
||||
return this.guild?.commands.cache.get(id) ?? this.client.application.commands.cache.get(id) ?? null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user