mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed Guild#deleteEmoji, it's now using the emoji's id (#1633)
This commit is contained in:
@@ -982,7 +982,7 @@ class Guild {
|
||||
*/
|
||||
deleteEmoji(emoji) {
|
||||
if (!(emoji instanceof Emoji)) emoji = this.emojis.get(emoji);
|
||||
return this.client.api.guilds(this.id).emojis(this.id).delete()
|
||||
return this.client.api.guilds(this.id).emojis(emoji.id).delete()
|
||||
.then(() => this.client.actions.GuildEmojiDelete.handle(emoji).data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user