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, {