mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 12:40:50 +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>}
|
* @type {EmojiStore<Snowflake, Emoji>}
|
||||||
*/
|
*/
|
||||||
this.emojis = new EmojiStore(this);
|
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 {
|
} else {
|
||||||
this.client.actions.GuildEmojisUpdate.handle({
|
this.client.actions.GuildEmojisUpdate.handle({
|
||||||
guild_id: this.id,
|
guild_id: this.id,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue