mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
finalised revive
This commit is contained in:
@@ -41,7 +41,7 @@ var Client = (function (_EventEmitter) {
|
||||
_EventEmitter.call(this);
|
||||
this.options = options || {};
|
||||
this.options.compress = options.compress || true;
|
||||
this.options.autoRevive = options.autoRevive || false;
|
||||
this.options.revive = options.revive || false;
|
||||
this.internal = new _InternalClient2["default"](this);
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ var InternalClient = (function () {
|
||||
|
||||
this.leaveVoiceChannel();
|
||||
|
||||
if (this.client.options.autoRevive && !forced) {
|
||||
if (this.client.options.revive && !forced) {
|
||||
this.setup();
|
||||
this.login(this.email, this.password);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user