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:
Antonio Román
2021-07-04 20:54:27 +02:00
committed by GitHub
parent 281072be44
commit a7c6678c72
95 changed files with 963 additions and 963 deletions

View File

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