DiscordAuditLogEntry class

Constructors

DiscordAuditLogEntry({String? targetId, List<DiscordAuditLogChange>? changes, DiscordSnowflake? userId, required DiscordSnowflake id, required int actionType, DiscordOptionalAuditEntryInfo? options, String? reason})
DiscordAuditLogEntry.fromJson(Map<String, dynamic> json)
factory

Properties

actionType int
type of action that occured
final
actionTypeAsEnum → DiscordAuditLogEvent
no setter
changes List<DiscordAuditLogChange>?
changes made to the target_it
final
hashCode int
The hash code for this object.
no setterinherited
id DiscordSnowflake
id of the entry
final
options DiscordOptionalAuditEntryInfo?
additional info for certain action types
final
reason String?
the reason for the change (0-512 characters)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetId String?
id of the affected entity (webhook, user, role, etc.)
final
userId DiscordSnowflake?
the user who made the changes
final

Methods

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

Constants

actionTypeEntry → const String
changesEntry → const String
idEntry → const String
optionsEntry → const String
reasonEntry → const String
targetIdEntry → const String
userIdEntry → const String