Interface IAutoModerationActionExecutionShardedGatewayHandler
Sent when a rule is triggered and an action is executed (e.g. when a message is blocked).
public interface IAutoModerationActionExecutionShardedGatewayHandler : IShardedGatewayHandler
Remarks
Required Intents: AutoModerationExecution
Optional Intents:
- MessageContent For receiving Content and MatchedContent.
Methods
HandleAsync(GatewayClient, AutoModerationActionExecutionEventArgs)
Handles the gateway event.
ValueTask HandleAsync(GatewayClient client, AutoModerationActionExecutionEventArgs arg)
Parameters
clientGatewayClientThe gateway client that represents the shard that received the event.
argAutoModerationActionExecutionEventArgsThe event argument.