TriggerMetadata
Implementation of a discord auto moderation trigger metadata object as a luau builder.
Properties
The TriggerMetadata instance has no set properties!
Methods
The TriggerMetadata instance has no set methods!
Functions
setKeywordFilter
Sets the list of keywords to match.
setRegexPatterns
Sets the list of regular expressions to match.
setPresets
TriggerMetadata . setPresets ( ) -> ()
Sets the list of preset keywords to match.
setAllowList
Sets the list of allowed keywords.
setMentionTotalLimit
TriggerMetadata . setMentionTotalLimit () -> ()
self: TriggerMetadata
mentionTotalLimit: number
Sets the maximum number of mentions allowed.
setMentionRaidProtectionEnabled
TriggerMetadata . setMentionRaidProtectionEnabled () -> ()
self: TriggerMetadata
mentionRaidProtectionEnabled: boolean
Sets whether raid protection is enabled.
build
TriggerMetadata . build () -> ()
self: TriggerMetadata
Builds the trigger metadata object.
new
TriggerMetadata . new () -> ()
resource: {
{ keywordFilter: { string } }
Responsible for creating a new TriggerMetadata.
local metadata = TriggerMetadata.new({ keywordFilter = {"bad", "words"}, mentionTotalLimit = 5})