AutoModerationRuleBuilder class
- 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
getter/setter pair
- enabled ↔ bool?
-
Whether this rule is enabled.
false
by default.getter/setter pair - eventType ↔ EventTypes
-
The event type of the rule.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ignoredChannels
↔ List<
Snowflake> ? -
The channel ids that should not be affected by the rule. (Maximum of 50).
getter/setter pair
-
ignoredRoles
↔ List<
Snowflake> ? -
The role IDs that should not be affected by the rule. (Maximum of 20).
getter/setter pair
- name ↔ String
-
The name of the rule.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- triggerMetadata ↔ TriggerMetadataBuilder?
-
The trigger metadata.
getter/setter pair
- triggerType ↔ TriggerTypes
-
The trigger type.
getter/setter pair
Methods
-
build(
) → RawApiMap -
Returns built response for api
override
-
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