forked from Galactic/galactic-bot
Fix --days parameter for ban.
This commit is contained in:
parent
700ab8917a
commit
6ec4768cfa
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user