From 9940d21e423fed9d6906ff9029ca836ef8c17614 Mon Sep 17 00:00:00 2001 From: JandereDev Date: Sun, 5 Dec 2021 14:19:26 +0100 Subject: [PATCH] forgot to `await` again gg --- src/bot/modules/command_handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/modules/command_handler.ts b/src/bot/modules/command_handler.ts index 2813975..13ccb91 100644 --- a/src/bot/modules/command_handler.ts +++ b/src/bot/modules/command_handler.ts @@ -24,7 +24,7 @@ client.on('message', async message => { !message.channel?.server) return; // Send message through anti spam check and custom rules - if (!antispam(message)) return; + if (!await antispam(message)) return; checkCustomRules(message); let config: ServerConfig = (await client.db.get('servers').findOne({ 'id': message.channel?.server_id })) ?? {};