Fix createEmoji/deleteEmoji action name. (#1110)

This commit is contained in:
Alex
2017-01-24 16:56:19 -05:00
committed by Amish Shah
parent 5173583e26
commit ba7c2db364

View File

@@ -561,12 +561,12 @@ class RESTMethods {
createEmoji(guild, image, name) { createEmoji(guild, image, name) {
return this.rest.makeRequest('post', `${Constants.Endpoints.guildEmojis(guild.id)}`, true, { name, image }) return this.rest.makeRequest('post', `${Constants.Endpoints.guildEmojis(guild.id)}`, true, { name, image })
.then(data => this.client.actions.EmojiCreate.handle(data, guild).emoji); .then(data => this.client.actions.GuildEmojiCreate.handle(data, guild).emoji);
} }
deleteEmoji(emoji) { deleteEmoji(emoji) {
return this.rest.makeRequest('delete', `${Constants.Endpoints.guildEmojis(emoji.guild.id)}/${emoji.id}`, true) return this.rest.makeRequest('delete', `${Constants.Endpoints.guildEmojis(emoji.guild.id)}/${emoji.id}`, true)
.then(() => this.client.actions.EmojiDelete.handle(emoji).data); .then(() => this.client.actions.GuildEmojiDelete.handle(emoji).data);
} }
getWebhook(id, token) { getWebhook(id, token) {