File tree Expand file tree Collapse file tree
backend/src/plugins/Automod/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,12 +9,15 @@ import { runAutomod } from "../functions/runAutomod.js";
99import { AutomodContext , AutomodPluginType } from "../types.js" ;
1010import { getOrFetchGuildMember } from "../../../utils/getOrFetchGuildMember.js" ;
1111import { getOrFetchUser } from "../../../utils/getOrFetchUser.js" ;
12+ import { incrementDebugCounter } from "../../../debugCounters.js" ;
1213
1314export async function runAutomodOnMessage (
1415 pluginData : GuildPluginData < AutomodPluginType > ,
1516 message : SavedMessage ,
1617 isEdit : boolean ,
1718) {
19+ incrementDebugCounter ( "automod:runAutomodOnMessage" ) ;
20+
1821 const member = await getOrFetchGuildMember ( pluginData . guild , message . user_id ) ;
1922 const user = await getOrFetchUser ( pluginData . client , message . user_id ) ;
2023
You can’t perform that action at this time.
0 commit comments