From 6ec4768cfaf9af4da4da35dace8735dc5a3c6117 Mon Sep 17 00:00:00 2001 From: nolan Date: Mon, 21 Jun 2021 17:23:32 -0700 Subject: [PATCH] Fix --days parameter for ban. --- structure/moderation/infractions/Ban.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/structure/moderation/infractions/Ban.js b/structure/moderation/infractions/Ban.js index 0247e0c..0371fe8 100644 --- a/structure/moderation/infractions/Ban.js +++ b/structure/moderation/infractions/Ban.js @@ -32,12 +32,8 @@ class BanInfraction extends Infraction { async execute() { let days = 0; - if(this.message && this.message._caller === 'hardban') { - days = 1; - if(this.arguments.days) { - days = this.arguments.days.value; - } - } + if(this.message && this.message._caller === 'hardban') days = 1; + if(this.arguments.days) days = this.arguments.days.value; try { await this.guild.members.ban(this.target.id, {