mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Guild): only update emojis when they are present in the payload
This commit is contained in:
@@ -266,7 +266,7 @@ class Guild extends Base {
|
||||
*/
|
||||
this.emojis = new GuildEmojiStore(this);
|
||||
if (data.emojis) for (const emoji of data.emojis) this.emojis.add(emoji);
|
||||
} else {
|
||||
} else if (data.emojis) {
|
||||
this.client.actions.GuildEmojisUpdate.handle({
|
||||
guild_id: this.id,
|
||||
emojis: data.emojis,
|
||||
|
||||
Reference in New Issue
Block a user