diff --git a/common/src/commonMain/kotlin/entity/AuditLog.kt b/common/src/commonMain/kotlin/entity/AuditLog.kt index 1acd783c043..390c0b06042 100644 --- a/common/src/commonMain/kotlin/entity/AuditLog.kt +++ b/common/src/commonMain/kotlin/entity/AuditLog.kt @@ -108,7 +108,7 @@ public data class DiscordAuditLogEntry( val targetId: Snowflake?, val changes: Optional>> = Optional.Missing(), @SerialName("user_id") - val userId: Snowflake, + val userId: Snowflake?, val id: Snowflake, @SerialName("action_type") val actionType: AuditLogEvent, diff --git a/core/src/commonMain/kotlin/entity/AuditLog.kt b/core/src/commonMain/kotlin/entity/AuditLog.kt index 5de390c99e9..169a01e5949 100644 --- a/core/src/commonMain/kotlin/entity/AuditLog.kt +++ b/core/src/commonMain/kotlin/entity/AuditLog.kt @@ -53,7 +53,7 @@ public class AuditLogEntry(public val data: DiscordAuditLogEntry, override val k public val changes: List> get() = data.changes.orEmpty() - public val userId: Snowflake get() = data.userId + public val userId: Snowflake? get() = data.userId public val id: Snowflake get() = data.id