forgot to await
again gg
This commit is contained in:
parent
3062d8e999
commit
9940d21e42
1 changed files with 1 additions and 1 deletions
|
@ -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 })) ?? {};
|
||||
|
|
Loading…
Reference in a new issue