mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
guildCreateTimeout option
This commit is contained in:
@@ -50,6 +50,7 @@ export default class Client extends EventEmitter {
|
||||
this.options.rateLimitAsError = options.rateLimitAsError || false;
|
||||
this.options.largeThreshold = options.largeThreshold || 250;
|
||||
this.options.maxCachedMessages = options.maxCachedMessages || 1000;
|
||||
this.options.guildCreateTimeout = options.guildCreateTimeout || 1000;
|
||||
/**
|
||||
* Internal Client that the Client wraps around.
|
||||
* @readonly
|
||||
|
||||
@@ -381,7 +381,7 @@ export default class InternalClient {
|
||||
if(!this.readyTime) {
|
||||
this.guildCreateTimeout = setTimeout(() => {
|
||||
this.checkReady();
|
||||
}, 1000);
|
||||
}, this.client.options.guildCreateTimeout);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user