mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix backwards GuildEmojiCreate parameters (#1153)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user