View Source Nostrum.Struct.AutoModerationRule.TriggerMetadata (Nostrum v0.10.0)
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
Additional data used to determine if the rule should triggered.
Types
@type keyword_metadata() :: %Nostrum.Struct.AutoModerationRule.TriggerMetadata{ keyword_filter: [String.t()], presets: term() }
Contains the list of keywords to that will trigger the rule.
@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
value | type | description | |
---- | ---- | ----------- | |
1 | PROFANITY | Words which may be considered profane | |
2 | HARMFUL_LINK | Words that refer to sexually explicit behavior or activity | |
3 | SLURS | Personal insults or words that may be considered hate speech |
@type t() :: preset_value_metadata() | keyword_metadata()
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
.
key | associated trigger_type | |
---- | ----------- | |
keywords | KEYWORD | |
preset | KEYWORD_PRESET |