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

t()

Additional data used to determine if the rule should triggered.

Types

Link to this type

keyword_metadata()

View Source (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.

Link to this type

preset_value_metadata()

View Source (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
2HARMFUL_LINKWords that refer to sexually explicit behavior or activity
3SLURSPersonal insults or words that may be considered hate speech

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