fix(handlers/webhook): do not add Date.now() to 900000 ms in executeSlashCommand() (#601)

Related #589
This commit is contained in:
ayntee
2021-03-06 22:17:04 +04:00
committed by GitHub
parent 5802a9d1ca
commit d8f3674779

View File

@@ -461,7 +461,7 @@ export async function executeSlashCommand(
cache.executedSlashCommands.set(token, id);
setTimeout(
() => cache.executedSlashCommands.delete(token),
Date.now() + 900000,
900000,
);
// If no mentions are provided, force disable mentions