AutoModerationRuleBuilder class Null safety

Implemented types

Constructors

AutoModerationRuleBuilder(String name, {required EventTypes eventType, required TriggerTypes triggerType, required List<ActionStructureBuilder> actions})

Properties

actions List<ActionStructureBuilder>
The actions which will execute when the rule is triggered
read / write
enabled bool?
Whether this rule is enabled. false by default.
read / write
eventType EventTypes
The event type of the rule.
read / write
hashCode int
The hash code for this object.
read-only, inherited
ignoredChannels List<Snowflake>?
The channel ids that should not be affected by the rule. (Maximum of 50).
read / write
ignoredRoles List<Snowflake>?
The role IDs that should not be affected by the rule. (Maximum of 20).
read / write
name String
The name of the rule.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
triggerMetadata TriggerMetadataBuilder?
The trigger metadata.
read / write
triggerType TriggerTypes
The trigger type.
read / write

Methods

build() RawApiMap
Returns built response for api
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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