mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +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) {
|
deleteEmoji(emoji) {
|
||||||
if (!(emoji instanceof Emoji)) emoji = this.emojis.get(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);
|
.then(() => this.client.actions.GuildEmojiDelete.handle(emoji).data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue