mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +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:
@@ -50,10 +50,10 @@ class GuildTemplate extends Base {
|
||||
this.usageCount = data.usage_count;
|
||||
|
||||
/**
|
||||
* The ID of the user that created this template
|
||||
* The id of the user that created this template
|
||||
* @type {Snowflake}
|
||||
*/
|
||||
this.creatorID = data.creator_id;
|
||||
this.creatorId = data.creator_id;
|
||||
|
||||
/**
|
||||
* The user that created this template
|
||||
@@ -74,10 +74,10 @@ class GuildTemplate extends Base {
|
||||
this.updatedAt = new Date(data.updated_at);
|
||||
|
||||
/**
|
||||
* The ID of the guild that this template belongs to
|
||||
* The id of the guild that this template belongs to
|
||||
* @type {Snowflake}
|
||||
*/
|
||||
this.guildID = data.source_guild_id;
|
||||
this.guildId = data.source_guild_id;
|
||||
|
||||
/**
|
||||
* The data of the guild that this template would create
|
||||
@@ -148,7 +148,7 @@ class GuildTemplate extends Base {
|
||||
*/
|
||||
edit({ name, description } = {}) {
|
||||
return this.client.api
|
||||
.guilds(this.guildID)
|
||||
.guilds(this.guildId)
|
||||
.templates(this.code)
|
||||
.patch({ data: { name, description } })
|
||||
.then(data => this._patch(data));
|
||||
@@ -160,7 +160,7 @@ class GuildTemplate extends Base {
|
||||
*/
|
||||
delete() {
|
||||
return this.client.api
|
||||
.guilds(this.guildID)
|
||||
.guilds(this.guildId)
|
||||
.templates(this.code)
|
||||
.delete()
|
||||
.then(() => this);
|
||||
@@ -172,7 +172,7 @@ class GuildTemplate extends Base {
|
||||
*/
|
||||
sync() {
|
||||
return this.client.api
|
||||
.guilds(this.guildID)
|
||||
.guilds(this.guildId)
|
||||
.templates(this.code)
|
||||
.put()
|
||||
.then(data => this._patch(data));
|
||||
@@ -202,7 +202,7 @@ class GuildTemplate extends Base {
|
||||
* @readonly
|
||||
*/
|
||||
get guild() {
|
||||
return this.client.guilds.resolve(this.guildID);
|
||||
return this.client.guilds.resolve(this.guildId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user