From 4a9c2f8884c9ebebaca542187fb69c58c6bd1a4e Mon Sep 17 00:00:00 2001 From: Lewdcario Date: Thu, 26 Jul 2018 14:35:26 -0600 Subject: [PATCH] fix(Emoji#fetchAuthor): reject with Error rather than TypeError --- src/structures/Emoji.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Emoji.js b/src/structures/Emoji.js index 02711e1c4..3d226dca1 100644 --- a/src/structures/Emoji.js +++ b/src/structures/Emoji.js @@ -161,7 +161,7 @@ class Emoji { * @returns {Promise} */ fetchAuthor() { - if (this.managed) return Promise.reject(new TypeError('Emoji is managed and has no Author.')); + if (this.managed) return Promise.reject(new Error('Emoji is managed and has no Author.')); return this.client.rest.makeRequest('get', Constants.Endpoints.Guild(this.guild).Emoji(this.id), true) .then(emoji => this.client.dataManager.newUser(emoji.user)); }