From 6a07715c1de19a27dce8c38153ee5ddb06093967 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Tue, 23 Apr 2019 21:02:16 +0200 Subject: [PATCH] fix(Guild): only update emojis when they are present in the payload --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 9aeb30973..c1d901a47 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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,