mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Fix #937 (guild member presence before READY)
This commit is contained in:
@@ -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[]}
|
||||||
|
|||||||
Reference in New Issue
Block a user