Skip to content

Commit 0bc830d

Browse files
Add debug log for AutoModerationRuleExecuted action type
1 parent 974918e commit 0bc830d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Events/AutoModEvents.cs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ public class AutoModEvents
44
{
55
public static async Task AutoModerationRuleExecuted(DiscordClient client, AutoModerationRuleExecutedEventArgs e)
66
{
7+
Program.discord.Logger.LogDebug("Got an AutoMod Rule Executed event with action type {actionType} in channel {channelId} by user {userId}", e.Rule.Action.Type, e.Rule.ChannelId, e.Rule.UserId);
8+
79
if (e.Rule.Action.Type == DiscordRuleActionType.BlockMessage)
810
{
911
// AutoMod blocked a message. Pass it to the message handler to run it through some filters anyway.

0 commit comments

Comments
 (0)