3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-18 23:09:59 +00:00

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, message: SavedMessage,
isEdit: boolean, 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 member = pluginData.guild.members.cache.get(message.user_id as Snowflake);
const context: AutomodContext = { const context: AutomodContext = {