mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
fix(Guild): passing the constructor partial data from an invite no longer errors (#1868)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user