mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Fix backwards GuildEmojiCreate parameters (#1153)
This commit is contained in:
parent
8da915f6a1
commit
ed42d7bd85
1 changed files with 1 additions and 1 deletions
|
|
@ -563,7 +563,7 @@ class RESTMethods {
|
|||
const data = { image, name };
|
||||
if (roles) data.roles = roles.map(r => r.id ? r.id : r);
|
||||
return this.rest.makeRequest('post', `${Constants.Endpoints.guildEmojis(guild.id)}`, true, data)
|
||||
.then(emoji => this.client.actions.GuildEmojiCreate.handle(emoji, guild).emoji);
|
||||
.then(emoji => this.client.actions.GuildEmojiCreate.handle(guild, emoji).emoji);
|
||||
}
|
||||
|
||||
updateEmoji(emoji, _data) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue