mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 19:44:13 +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);
|
await addTempBan(userId, modId, time.fromNow, reason);
|
||||||
|
|
||||||
// Create scheduled task to unban
|
// Create scheduled task to unban
|
||||||
this.container.tasks.create({
|
await this.container.tasks.create(
|
||||||
|
{
|
||||||
name: 'tempBan',
|
name: 'tempBan',
|
||||||
payload: {
|
payload: {
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
guildId: guild.id,
|
guildId: guild.id,
|
||||||
},
|
},
|
||||||
delay: time.offset,
|
},
|
||||||
});
|
time.offset,
|
||||||
|
);
|
||||||
|
|
||||||
info.message = `${user} has been temporarily banned for ${banLength}.`;
|
info.message = `${user} has been temporarily banned for ${banLength}.`;
|
||||||
info.success = true;
|
info.success = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user