mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 17:04:15 +02:00
fix(arabot): broken tempban schedule creation
This commit is contained in:
parent
d00fddd51a
commit
b6b50ea450
@ -258,14 +258,16 @@ export class TempBanCommand extends Command {
|
||||
await addTempBan(userId, modId, time.fromNow, reason);
|
||||
|
||||
// Create scheduled task to unban
|
||||
this.container.tasks.create({
|
||||
await this.container.tasks.create(
|
||||
{
|
||||
name: 'tempBan',
|
||||
payload: {
|
||||
userId: user.id,
|
||||
guildId: guild.id,
|
||||
},
|
||||
delay: time.offset,
|
||||
});
|
||||
},
|
||||
time.offset,
|
||||
);
|
||||
|
||||
info.message = `${user} has been temporarily banned for ${banLength}.`;
|
||||
info.success = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user