Fix --days parameter for ban.

This commit is contained in:
nolan 2021-06-21 17:23:32 -07:00
parent 700ab8917a
commit 6ec4768cfa

View File

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