AuditLogManager class

Inheritance

Constructors

AuditLogManager(CacheConfig<AuditLogEntry> config, NyxxRest client, {required Snowflake guildId})

Properties

cache Cache<AuditLogEntry>
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

fetch(Snowflake id) Future<AuditLogEntry>
Fetch the item with the given id from the API.
override
get(Snowflake id) Future<AuditLogEntry>
Get an item by its id from the cache if it exists, else fetch it from the API.
inherited
list({Snowflake? userId, AuditLogEvent? type, Snowflake? before, Snowflake? after, int? limit}) Future<List<AuditLogEntry>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(Map<String, Object?> raw) AuditLogEntry
Parse the raw data received from the API into an instance of the type of this manager.
override
parseAuditLogChange(Map<String, Object?> raw) AuditLogChange
Parse a AuditLogChange from raw.
parseAuditLogEntryInfo(Map<String, Object?> raw) AuditLogEntryInfo
Parse a AuditLogEntryInfo from raw.
toString() String
A string representation of this object.
inherited

Operators

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