From 88f53b4af9a39bed956ef0895368dda6b951631e Mon Sep 17 00:00:00 2001 From: almeidx Date: Wed, 28 Jul 2021 22:29:52 +0100 Subject: [PATCH] removed unnecessary non-null operator --- backend/src/plugins/Automod/events/runAutomodOnMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Automod/events/runAutomodOnMessage.ts b/backend/src/plugins/Automod/events/runAutomodOnMessage.ts index 34d14a74..7181b257 100644 --- a/backend/src/plugins/Automod/events/runAutomodOnMessage.ts +++ b/backend/src/plugins/Automod/events/runAutomodOnMessage.ts @@ -12,7 +12,7 @@ export function runAutomodOnMessage( message: SavedMessage, isEdit: boolean, ) { - const user = pluginData.client.users.cache!.get(message.user_id as Snowflake); + const user = pluginData.client.users.cache.get(message.user_id as Snowflake); const member = pluginData.guild.members.cache.get(message.user_id as Snowflake); const context: AutomodContext = {