Fix #937 (guild member presence before READY)

This commit is contained in:
Amish Shah
2016-11-30 20:31:07 +00:00
parent ac68e9f077
commit 6043a1f83a

View File

@@ -40,6 +40,12 @@ class Guild {
*/
this.roles = new Collection();
/**
* A collection of presences in this guild
* @type {Collection<string, Presence>}
*/
this.presences = new Collection();
if (!data) return;
if (data.unavailable) {
/**
@@ -101,12 +107,6 @@ class Guild {
*/
this.large = data.large || this.large;
/**
* A collection of presences in this guild
* @type {Collection<string, Presence>}
*/
this.presences = new Collection();
/**
* An array of guild features.
* @type {Object[]}