AutoModerationRuleBuilder class

Inheritance

Constructors

AutoModerationRuleBuilder({required String name, required AutoModerationEventType eventType, required TriggerType triggerType, TriggerMetadataBuilder? metadata, required List<AutoModerationActionBuilder> actions, bool? isEnabled, List<Snowflake>? exemptRoleIds, List<Snowflake>? exemptChannelIds})
AutoModerationRuleBuilder.keyword({required String name, required AutoModerationEventType eventType, required List<AutoModerationActionBuilder> actions, bool? isEnabled, List<Snowflake>? exemptRoleIds, List<Snowflake>? exemptChannelIds, List<String>? keywordFilter, List<String>? regexPatterns, List<String>? allowList})
AutoModerationRuleBuilder.keywordPreset({required String name, required AutoModerationEventType eventType, required List<AutoModerationActionBuilder> actions, bool? isEnabled, List<Snowflake>? exemptRoleIds, List<Snowflake>? exemptChannelIds, required List<KeywordPresetType>? presets, List<String>? allowList})
AutoModerationRuleBuilder.mentionSpam({required String name, required AutoModerationEventType eventType, required List<AutoModerationActionBuilder> actions, bool? isEnabled, List<Snowflake>? exemptRoleIds, List<Snowflake>? exemptChannelIds, required int mentionTotalLimit, bool? isMentionRaidProtectionEnabled})
AutoModerationRuleBuilder.spam({required String name, required AutoModerationEventType eventType, required List<AutoModerationActionBuilder> actions, bool? isEnabled, List<Snowflake>? exemptRoleIds, List<Snowflake>? exemptChannelIds})

Properties

actions List<AutoModerationActionBuilder>
getter/setter pair
eventType AutoModerationEventType
getter/setter pair
exemptChannelIds List<Snowflake>?
getter/setter pair
exemptRoleIds List<Snowflake>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool?
getter/setter pair
metadata ↔ TriggerMetadataBuilder?
getter/setter pair
name String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggerType TriggerType
getter/setter pair

Methods

build() Map<String, Object?>
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