Skip to content

Commit b91a068

Browse files
committed
fix: log automod by default
1 parent 9741bff commit b91a068

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

backend/src/plugins/Automod/functions/runAutomod.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,18 @@ export async function runAutomod(pluginData: GuildPluginData<AutomodPluginType>,
164164
);
165165
}
166166
}
167+
168+
// Log all automod rules by default
169+
if (rule.actions.log == null) {
170+
availableActions.log.apply({
171+
ruleName,
172+
pluginData,
173+
contexts,
174+
actionConfig: true,
175+
matchResult,
176+
prettyName,
177+
});
178+
}
167179
}
168180

169181
if (profilingEnabled()) {

0 commit comments

Comments
 (0)