mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
fix(Guild): passing the constructor partial data from an invite no longer errors (#1868)
This commit is contained in:
parent
b8a37b6f0c
commit
1bdaa62481
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ class Guild extends Base {
|
|||
* @type {EmojiStore<Snowflake, Emoji>}
|
||||
*/
|
||||
this.emojis = new EmojiStore(this);
|
||||
for (const emoji of data.emojis) this.emojis.create(emoji);
|
||||
if (data.emojis) for (const emoji of data.emojis) this.emojis.create(emoji);
|
||||
} else {
|
||||
this.client.actions.GuildEmojisUpdate.handle({
|
||||
guild_id: this.id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue