Skip to content

Commit

Permalink
fix(Guild): passing the constructor partial data from an invite no lo…
Browse files Browse the repository at this point in the history
…nger errors (#1868)
  • Loading branch information
SpaceEEC authored and iCrawl committed Sep 1, 2017
1 parent b8a37b6 commit 1bdaa62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1bdaa62

Please sign in to comment.