mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
Fix createEmoji/deleteEmoji action name. (#1110)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user