diff --git a/src/structures/Guild.js b/src/structures/Guild.js index f983027792b7..f7c1e877018f 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -1114,7 +1114,8 @@ class Guild { * @returns {Promise} */ deleteEmoji(emoji, reason) { - if (!(emoji instanceof Emoji)) emoji = this.emojis.get(emoji); + if (typeof emoji === 'string') emoji = this.emojis.get(emoji); + if (!(emoji instanceof Emoji)) throw new TypeError('Emoji must be either an instance of Emoji or an ID'); return this.client.rest.methods.deleteEmoji(emoji, reason); }