From d8f3674779efeeab3a51d7bde18d1ec4daa47979 Mon Sep 17 00:00:00 2001 From: ayntee Date: Sat, 6 Mar 2021 22:17:04 +0400 Subject: [PATCH] fix(handlers/webhook): do not add Date.now() to 900000 ms in executeSlashCommand() (#601) Related #589 --- src/api/handlers/webhook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/handlers/webhook.ts b/src/api/handlers/webhook.ts index 72e8a1855..fdad0ec4b 100644 --- a/src/api/handlers/webhook.ts +++ b/src/api/handlers/webhook.ts @@ -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