mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
chore(Deps): upgrade deps (#4701)
This commit is contained in:
@@ -74,10 +74,7 @@ class GuildEmoji extends BaseGuildEmoji {
|
||||
throw new Error('MISSING_MANAGE_EMOJIS_PERMISSION', this.guild);
|
||||
}
|
||||
}
|
||||
const data = await this.client.api
|
||||
.guilds(this.guild.id)
|
||||
.emojis(this.id)
|
||||
.get();
|
||||
const data = await this.client.api.guilds(this.guild.id).emojis(this.id).get();
|
||||
this._patch(data);
|
||||
return this.author;
|
||||
}
|
||||
|
||||
@@ -330,10 +330,7 @@ class TextBasedChannel {
|
||||
}
|
||||
if (messageIDs.length === 0) return new Collection();
|
||||
if (messageIDs.length === 1) {
|
||||
await this.client.api
|
||||
.channels(this.id)
|
||||
.messages(messageIDs[0])
|
||||
.delete();
|
||||
await this.client.api.channels(this.id).messages(messageIDs[0]).delete();
|
||||
const message = this.client.actions.MessageDelete.getMessage(
|
||||
{
|
||||
message_id: messageIDs[0],
|
||||
|
||||
Reference in New Issue
Block a user