From cbf91162e27dd4c1ecb976927ab708f1d882abca Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Fri, 26 Jul 2024 01:25:31 +0700 Subject: [PATCH] fix(bot/discord): start remove preset timeout for `role-preset` command --- bots/discord/src/commands/moderation/role-preset.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bots/discord/src/commands/moderation/role-preset.ts b/bots/discord/src/commands/moderation/role-preset.ts index 75457f1..495744b 100644 --- a/bots/discord/src/commands/moderation/role-preset.ts +++ b/bots/discord/src/commands/moderation/role-preset.ts @@ -79,6 +79,11 @@ export default { ) } + if (expires) + setTimeout(() => { + removeRolePreset(member, preset) + }, expires) + await sendPresetReplyAndLogs(action, interaction, user, preset, expires) }, } satisfies Command