Remove partial classes (#1794)

* remove partial objects

* remove partial evil

* Update Invite.js

* Update Invite.js
This commit is contained in:
Gus Caplan
2017-08-17 11:49:41 -07:00
committed by Crawl
parent fff8b764af
commit 9b97fe292f
6 changed files with 12 additions and 110 deletions

View File

@@ -80,7 +80,7 @@ class Guild {
* @param {*} data The raw data of the guild
* @private
*/
setup(data) {
setup(data) { // eslint-disable-line complexity
/**
* The name of the guild
* @type {string}
@@ -225,7 +225,7 @@ class Guild {
* @type {Collection<Snowflake, Emoji>}
*/
this.emojis = new Collection();
for (const emoji of data.emojis) this.emojis.set(emoji.id, new Emoji(this, emoji));
if (data.emojis) for (const emoji of data.emojis) this.emojis.set(emoji.id, new Emoji(this, emoji));
} else {
this.client.actions.GuildEmojisUpdate.handle({
guild_id: this.id,