mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Wait for the websocket event when creating a guild (#1524)
* Wait for the websocket event when creating a guild * using TOOK_TOO_LONG error * resolve after timeout with an unavailable guild object
This commit is contained in:
@@ -68,8 +68,8 @@ class Guild {
|
||||
*/
|
||||
this.id = data.id;
|
||||
} else {
|
||||
this.available = true;
|
||||
this.setup(data);
|
||||
if (!data.channels) this.available = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user