View Source Nostrum.Struct.AutoModerationRule.Action (Nostrum v0.9.0)

Defines an action to be taken when a rule is triggered.

Summary

Types

The type of action to be taken.

t()

Types

Link to this type

action_type()

View Source (since 0.7.0)
@type action_type() :: 1..3

The type of action to be taken.

valueactiondescription
-------------------
1BLOCK_MESSAGEBlocks the message from being created
2SEND_ALERT_MESSAGELogs the content of the message in the specified channel
3TIMEOUTtimeout a user for a specified duration
Link to this type

metadata()

View Source (since 0.7.0)
@type t() :: %Nostrum.Struct.AutoModerationRule.Action{
  metadata: metadata(),
  type: action_type()
}