From 6043a1f83a70d95803c0f9c9ef8a4edc8dc09a97 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Wed, 30 Nov 2016 20:31:07 +0000 Subject: [PATCH] Fix #937 (guild member presence before READY) --- src/structures/Guild.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 07c46a0c3..ccf146634 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -40,6 +40,12 @@ class Guild { */ this.roles = new Collection(); + /** + * A collection of presences in this guild + * @type {Collection} + */ + 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} - */ - this.presences = new Collection(); - /** * An array of guild features. * @type {Object[]}