AuditLogEntry

data class AuditLogEntry(val targetId: String? = null, val changes: List<AuditLogChange<Any>>? = null, val userId: Snowflake? = null, val id: Snowflake, val actionType: AuditLogEvent, val reason: String? = null)(source)

Discord API Reference

Constructors

Link copied to clipboard
fun AuditLogEntry(targetId: String? = null, changes: List<AuditLogChange<Any>>? = null, userId: Snowflake? = null, id: Snowflake, actionType: AuditLogEvent, reason: String? = null)

Properties

Link copied to clipboard

type of action that occurred

Link copied to clipboard

changes made to the target_id

Link copied to clipboard

id of the entry

Link copied to clipboard
val reason: String? = null

the reason for the change

Link copied to clipboard
val targetId: String? = null

id of the affected entity (webhook, user, role, etc.)

Link copied to clipboard
val userId: Snowflake? = null

the user who made the changes