diff --git a/src/structures/Emoji.js b/src/structures/Emoji.js index d91734bf4..470122639 100644 --- a/src/structures/Emoji.js +++ b/src/structures/Emoji.js @@ -150,6 +150,15 @@ class Emoji { return this.edit({ name }, reason); } + /** + * Fetches the author for this emoji + * @returns {Promise} + */ + fetchAuthor() { + return this.client.rest.makeRequest('get', Constants.Endpoints.Guild(this.guild).Emoji(this.id), true) + .then(emoji => this.client.dataManager.newUser(emoji.user)); + } + /** * Add a role to the list of roles that can use this emoji. * @param {Role} role The role to add