diff --git a/src/structures/GuildEmoji.js b/src/structures/GuildEmoji.js index df0c1169b..7568738ae 100644 --- a/src/structures/GuildEmoji.js +++ b/src/structures/GuildEmoji.js @@ -61,6 +61,15 @@ class GuildEmoji extends Emoji { return new Date(this.createdTimestamp); } + /** + * Fetches the author for this emoji + * @returns {Promise} + */ + fetchAuthor() { + return this.client.api.guilds(this.guild.id).emojis(this.id).get() + .then(emoji => this.client.users.add(emoji.user)); + } + /** * Data for editing an emoji. * @typedef {Object} GuildEmojiEditData