removed unnecessary non-null operator

This commit is contained in:
almeidx 2021-07-28 22:29:52 +01:00
parent 77b33c1858
commit 88f53b4af9
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664

View file

@ -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 = {