feat(Emoji): backport delete method (#3343)

This backports #1877 (c93c4ad21f) in a semver-minor manner.
This commit is contained in:
SpaceEEC
2019-06-16 10:07:32 +02:00
committed by GitHub
parent b8924369ea
commit c355236f7f
4 changed files with 17 additions and 2 deletions

View File

@@ -754,7 +754,7 @@ class RESTMethods {
deleteEmoji(emoji, reason) {
return this.rest.makeRequest('delete', Endpoints.Guild(emoji.guild).Emoji(emoji.id), true, undefined, reason)
.then(() => this.client.actions.GuildEmojiDelete.handle(emoji).data);
.then(() => this.client.actions.GuildEmojiDelete.handle(emoji).emoji);
}
getGuildAuditLogs(guild, options = {}) {