mirror of
https://github.com/danbulant/discord.js
synced 2026-06-01 13:52:02 +00:00
fix(Guild): only update emojis when they are present in the payload
This commit is contained in:
parent
75cd260808
commit
6a07715c1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue