Fixed Guild#deleteEmoji, it's now using the emoji's id (#1633)

This commit is contained in:
SpaceEEC
2017-06-28 19:17:57 +02:00
committed by Amish Shah
parent 5891c0b4d7
commit 029efe5cb0

View File

@@ -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);
}