From 029efe5cb07e10b1d77c4e725400007c8c098ade Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Wed, 28 Jun 2017 19:17:57 +0200 Subject: [PATCH] Fixed Guild#deleteEmoji, it's now using the emoji's id (#1633) --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 2dd62514a..0cc5cab07 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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); }