Skip to content

Commit

Permalink
Fix automod related events in the sharded client
Browse files Browse the repository at this point in the history
  • Loading branch information
Misha-133 authored Jul 15, 2024
1 parent 6b691b1 commit 8b6be64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Discord.Net.WebSocket/DiscordShardedClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,11 @@ private void RegisterEvents(DiscordSocketClient client, bool isPrimary)
client.GuildScheduledEventUserAdd += (arg1, arg2) => _guildScheduledEventUserAdd.InvokeAsync(arg1, arg2);
client.GuildScheduledEventUserRemove += (arg1, arg2) => _guildScheduledEventUserRemove.InvokeAsync(arg1, arg2);

client.AutoModActionExecuted += (guild, action, arg3) => _autoModActionExecuted.InvokeAsync(guild, action, arg3);
client.AutoModRuleCreated += rule => client._autoModRuleCreated.InvokeAsync(rule);
client.AutoModRuleDeleted += rule => client._autoModRuleDeleted.InvokeAsync(rule);
client.AutoModRuleUpdated += (arg1, arg2) => client._autoModRuleUpdated.InvokeAsync(arg1, arg2);

client.WebhooksUpdated += (arg1, arg2) => _webhooksUpdated.InvokeAsync(arg1, arg2);
client.AuditLogCreated += (arg1, arg2) => _auditLogCreated.InvokeAsync(arg1, arg2);

Expand Down

0 comments on commit 8b6be64

Please sign in to comment.