mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 12:40:50 +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);
|
this.emojis = new GuildEmojiStore(this);
|
||||||
if (data.emojis) for (const emoji of data.emojis) this.emojis.add(emoji);
|
if (data.emojis) for (const emoji of data.emojis) this.emojis.add(emoji);
|
||||||
} else {
|
} else if (data.emojis) {
|
||||||
this.client.actions.GuildEmojisUpdate.handle({
|
this.client.actions.GuildEmojisUpdate.handle({
|
||||||
guild_id: this.id,
|
guild_id: this.id,
|
||||||
emojis: data.emojis,
|
emojis: data.emojis,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue