mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 00:32:03 +00:00
Fix #937 (guild member presence before READY)
This commit is contained in:
parent
ac68e9f077
commit
6043a1f83a
1 changed files with 6 additions and 6 deletions
|
|
@ -40,6 +40,12 @@ class Guild {
|
||||||
*/
|
*/
|
||||||
this.roles = new Collection();
|
this.roles = new Collection();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A collection of presences in this guild
|
||||||
|
* @type {Collection<string, Presence>}
|
||||||
|
*/
|
||||||
|
this.presences = new Collection();
|
||||||
|
|
||||||
if (!data) return;
|
if (!data) return;
|
||||||
if (data.unavailable) {
|
if (data.unavailable) {
|
||||||
/**
|
/**
|
||||||
|
|
@ -101,12 +107,6 @@ class Guild {
|
||||||
*/
|
*/
|
||||||
this.large = data.large || this.large;
|
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.
|
* An array of guild features.
|
||||||
* @type {Object[]}
|
* @type {Object[]}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue