guildCreateTimeout option

This commit is contained in:
abalabahaha
2016-05-16 15:01:50 -07:00
parent e8874bae37
commit e6572caf6c
5 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -381,7 +381,7 @@ export default class InternalClient {
if(!this.readyTime) {
this.guildCreateTimeout = setTimeout(() => {
this.checkReady();
}, 1000);
}, this.client.options.guildCreateTimeout);
}
}