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:
@@ -19,7 +19,7 @@ export default class Client extends EventEmitter {
|
||||
super();
|
||||
this.options = options || {};
|
||||
this.options.compress = options.compress || true;
|
||||
this.options.autoRevive = options.autoRevive || false;
|
||||
this.options.revive = options.revive || false;
|
||||
this.internal = new InternalClient(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ export default class InternalClient {
|
||||
|
||||
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