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

View Source

Struct representing the metadata of a trigger.

Summary

Types

Contains the list of keywords to that will trigger the rule.

A list of Values which represent the different presets defined by Discord

t()

Additional data used to determine if the rule should triggered.

Types

keyword_metadata()

(since 0.7.0)
@type keyword_metadata() :: %Nostrum.Struct.AutoModerationRule.TriggerMetadata{
  keyword_filter: [String.t()],
  presets: term()
}

Contains the list of keywords to that will trigger the rule.

preset_value_metadata()

(since 0.7.0)
@type preset_value_metadata() :: %Nostrum.Struct.AutoModerationRule.TriggerMetadata{
  keyword_filter: term(),
  presets: [1..3]
}

A list of Values which represent the different presets defined by Discord

valuetypedescription
-------------------
1PROFANITYWords which may be considered profane
2SEXUAL_CONTENTWords that refer to sexually explicit behavior or activity
3SLURSPersonal insults or words that may be considered hate speech

t()

(since 0.7.0)

Additional data used to determine if the rule should triggered.

The Nostrum.Struct.AutoModerationRule.trigger_type/0 of the parent struct determine which of the following fields are not nil.

keyassociated trigger_type
---------------
keywords​KEYWORD
presetKEYWORD_PRESET