AutoModerationManager class

Inheritance

Constructors

AutoModerationManager(CacheConfig<AutoModerationRule> config, NyxxRest client, {required Snowflake guildId})

Properties

cache Cache<AutoModerationRule>
The cache for this manager.
finalinherited
client NyxxRest
The client this manager belongs to.
finalinherited
guildId Snowflake
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(covariant AutoModerationRuleBuilder builder, {String? auditLogReason}) Future<AutoModerationRule>
Create a new instance of the type of this manager.
override
delete(Snowflake id, {String? auditLogReason}) Future<void>
Delete the item with the given id from the API.
override
fetch(Snowflake id) Future<AutoModerationRule>
Fetch the item with the given id from the API.
override
get(Snowflake id) Future<AutoModerationRule>
Get an item by its id from the cache if it exists, else fetch it from the API.
inherited
list() Future<List<AutoModerationRule>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(Map<String, Object?> raw) AutoModerationRule
Parse the raw data received from the API into an instance of the type of this manager.
override
parseActionMetadata(Map<String, Object?> raw) ActionMetadata
Parse a ActionMetadata from raw.
parseAutoModerationAction(Map<String, Object?> raw) AutoModerationAction
Parse a AutoModerationAction from raw.
parseTriggerMetadata(Map<String, Object?> raw) TriggerMetadata
Parse a TriggerMetadata from raw.
toString() String
A string representation of this object.
inherited
update(Snowflake id, covariant AutoModerationRuleUpdateBuilder builder, {String? auditLogReason}) Future<AutoModerationRule>
Update the item with the given id in the API.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Snowflake id) PartialAutoModerationRule
Return a partial instance of the entity with ID id containing no data.
override