fix(Guild): only update emojis when they are present in the payload

This commit is contained in:
SpaceEEC
2019-04-23 21:02:16 +02:00
parent 75cd260808
commit 6a07715c1d

View File

@@ -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,