Nostrum.Struct.AutoModerationRule.Action (nostrum v0.11.0-dev)

View Source

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

Summary

Types

The type of action to be taken.

t()

Types

action_type()

(since 0.7.0)
@type action_type() :: 1..4

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
4BLOCK_MEMBER_INTERACTIONprevents a member from using text, voice, or other interactions

metadata()

(since 0.7.0)

t()

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