ModerationRulesBuilder class
Constructors
-
ModerationRulesBuilder(String label, ModerationEventType moderationEventType, ModerationTriggerType moderationTriggerType, List<Snowflake> exemptRoles, List<Snowflake> exemptChannels, bool enabled, List<ModerationAction> actions, ModerationTriggerMetadata? triggerMetadata)
-
-
ModerationRulesBuilder.banKeywords({required String label, required List<ModerationAction> actions, required ModerationTriggerMetadata? triggerMetadata, List<Snowflake>? exemptRoles, List<Snowflake>? exemptChannels, bool enabled = true})
-
factory
-
ModerationRulesBuilder.mentionSpam({required String label, required List<ModerationAction> actions, required ModerationTriggerMetadata? triggerMetadata, List<Snowflake>? exemptRoles, List<Snowflake>? exemptChannels, bool enabled = true})
-
factory
-
ModerationRulesBuilder.spam({required String label, required List<ModerationAction> actions, List<Snowflake>? exemptRoles, List<Snowflake>? exemptChannels, bool enabled = true})
-
factory
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited