debug done
This commit is contained in:
parent
a70f22ebe4
commit
28606845b1
@ -50,8 +50,10 @@ class UnbanInfraction extends Infraction {
|
|||||||
let ban = null;
|
let ban = null;
|
||||||
try {
|
try {
|
||||||
ban = await this.guild.fetchBan(this.target.id);
|
ban = await this.guild.fetchBan(this.target.id);
|
||||||
} catch(e) {console.log(e)} //eslint-disable-line no-empty
|
} catch (e) {
|
||||||
console.log(ban)
|
if (e.code !== 10026) this.client.logger.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
if(!ban) return this._fail('C_UNBAN_NOTBANNED');
|
if(!ban) return this._fail('C_UNBAN_NOTBANNED');
|
||||||
|
|
||||||
return super._verify();
|
return super._verify();
|
||||||
|
Loading…
Reference in New Issue
Block a user