mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Fixed Guild#deleteEmoji, it's now using the emoji's id (#1633)
This commit is contained in:
parent
5891c0b4d7
commit
029efe5cb0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue