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

Properties

actions List<ModerationAction>
final
enabled bool
final
exemptChannels List<Snowflake>
final
exemptRoles List<Snowflake>
final
hashCode int
The hash code for this object.
no setterinherited
label String
final
moderationEventType ModerationEventType
final
moderationTriggerType ModerationTriggerType
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggerMetadata ModerationTriggerMetadata?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited