mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03: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);
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user