167 |
console.log(e); |
console.log(e); |
168 |
} |
} |
169 |
|
|
170 |
await msg.guild?.bans.create(user, banOptions); |
await msg.guild?.bans.create(user, { ...banOptions, reason: `[SOFTBAN] ${banOptions.reason ?? '**No reason provided**'}` }); |
171 |
await new Promise(r => setTimeout(r, 1600)); |
await new Promise(r => setTimeout(r, 1600)); |
172 |
await msg.guild?.bans.remove(user); |
await msg.guild?.bans.remove(user, `[SOFTBAN REMOVE] ${banOptions.reason}`); |
173 |
|
|
174 |
const punishment = await Punishment.create({ |
const punishment = await Punishment.create({ |
175 |
type: PunishmentType.SOFTBAN, |
type: PunishmentType.SOFTBAN, |