Skip to content

Commit

Permalink
Fix DiscordAuditLogEntry.userId nullability (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann authored Oct 13, 2023
1 parent 78a9fbb commit 520ab88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/src/commonMain/kotlin/entity/AuditLog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public data class DiscordAuditLogEntry(
val targetId: Snowflake?,
val changes: Optional<List<AuditLogChange<in @Contextual Any?>>> = Optional.Missing(),
@SerialName("user_id")
val userId: Snowflake,
val userId: Snowflake?,
val id: Snowflake,
@SerialName("action_type")
val actionType: AuditLogEvent,
Expand Down
2 changes: 1 addition & 1 deletion core/src/commonMain/kotlin/entity/AuditLog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class AuditLogEntry(public val data: DiscordAuditLogEntry, override val k

public val changes: List<AuditLogChange<*>> 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

Expand Down

0 comments on commit 520ab88

Please sign in to comment.