View Source Nostrum.Struct.AutoModerationRule.Action (Nostrum v0.10.0)
Defines an action to be taken when a rule is triggered.
Summary
Types
@type action_type() :: 1..3
The type of action to be taken.
value | action | description | |
---- | ---- | ----------- | |
1 | BLOCK_MESSAGE | Blocks the message from being created | |
2 | SEND_ALERT_MESSAGE | Logs the content of the message in the specified channel | |
3 | TIMEOUT | timeout a user for a specified duration |
@type metadata() :: Nostrum.Struct.AutoModerationRule.ActionMetadata.t()
@type t() :: %Nostrum.Struct.AutoModerationRule.Action{ metadata: metadata(), type: action_type() }