From 28606845b15fdebe4f1435fc2f95362356c2036d Mon Sep 17 00:00:00 2001 From: Navy Date: Wed, 9 Jun 2021 20:37:18 +0300 Subject: [PATCH] debug done --- structure/moderation/infractions/Unban.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/structure/moderation/infractions/Unban.js b/structure/moderation/infractions/Unban.js index 92c4fc3..e9f5c89 100644 --- a/structure/moderation/infractions/Unban.js +++ b/structure/moderation/infractions/Unban.js @@ -50,8 +50,10 @@ class UnbanInfraction extends Infraction { let ban = null; try { ban = await this.guild.fetchBan(this.target.id); - } catch(e) {console.log(e)} //eslint-disable-line no-empty - console.log(ban) + } catch (e) { + if (e.code !== 10026) this.client.logger.error(e); + } + if(!ban) return this._fail('C_UNBAN_NOTBANNED'); return super._verify();