Skip to content

Commit

Permalink
Fix Serialization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 6, 2024
1 parent ceea3d7 commit 8660e92
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions common/api/common.api
Original file line number Diff line number Diff line change
Expand Up @@ -711,12 +711,14 @@ public final class dev/kord/common/entity/ApplicationIntegrationType$UserInstall

public final class dev/kord/common/entity/ApplicationIntegrationTypeConfig {
public static final field Companion Ldev/kord/common/entity/ApplicationIntegrationTypeConfig$Companion;
public fun <init> (Ldev/kord/common/entity/InstallParams;)V
public final fun component1 ()Ldev/kord/common/entity/InstallParams;
public final fun copy (Ldev/kord/common/entity/InstallParams;)Ldev/kord/common/entity/ApplicationIntegrationTypeConfig;
public static synthetic fun copy$default (Ldev/kord/common/entity/ApplicationIntegrationTypeConfig;Ldev/kord/common/entity/InstallParams;ILjava/lang/Object;)Ldev/kord/common/entity/ApplicationIntegrationTypeConfig;
public fun <init> ()V
public fun <init> (Ldev/kord/common/entity/optional/Optional;)V
public synthetic fun <init> (Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1 ()Ldev/kord/common/entity/optional/Optional;
public final fun copy (Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/ApplicationIntegrationTypeConfig;
public static synthetic fun copy$default (Ldev/kord/common/entity/ApplicationIntegrationTypeConfig;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/ApplicationIntegrationTypeConfig;
public fun equals (Ljava/lang/Object;)Z
public final fun getOauth2InstallParams ()Ldev/kord/common/entity/InstallParams;
public final fun getOauth2InstallParams ()Ldev/kord/common/entity/optional/Optional;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}
Expand Down
10 changes: 6 additions & 4 deletions common/api/common.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,13 @@ final class dev.kord.common.entity/ApplicationFlags { // dev.kord.common.entity/
}

final class dev.kord.common.entity/ApplicationIntegrationTypeConfig { // dev.kord.common.entity/ApplicationIntegrationTypeConfig|null[0]
constructor <init>(dev.kord.common.entity/InstallParams) // dev.kord.common.entity/ApplicationIntegrationTypeConfig.<init>|<init>(dev.kord.common.entity.InstallParams){}[0]
constructor <init>(dev.kord.common.entity.optional/Optional<dev.kord.common.entity/InstallParams> = ...) // dev.kord.common.entity/ApplicationIntegrationTypeConfig.<init>|<init>(dev.kord.common.entity.optional.Optional<dev.kord.common.entity.InstallParams>){}[0]

final val oauth2InstallParams // dev.kord.common.entity/ApplicationIntegrationTypeConfig.oauth2InstallParams|{}oauth2InstallParams[0]
final fun <get-oauth2InstallParams>(): dev.kord.common.entity/InstallParams // dev.kord.common.entity/ApplicationIntegrationTypeConfig.oauth2InstallParams.<get-oauth2InstallParams>|<get-oauth2InstallParams>(){}[0]
final fun <get-oauth2InstallParams>(): dev.kord.common.entity.optional/Optional<dev.kord.common.entity/InstallParams> // dev.kord.common.entity/ApplicationIntegrationTypeConfig.oauth2InstallParams.<get-oauth2InstallParams>|<get-oauth2InstallParams>(){}[0]

final fun component1(): dev.kord.common.entity/InstallParams // dev.kord.common.entity/ApplicationIntegrationTypeConfig.component1|component1(){}[0]
final fun copy(dev.kord.common.entity/InstallParams = ...): dev.kord.common.entity/ApplicationIntegrationTypeConfig // dev.kord.common.entity/ApplicationIntegrationTypeConfig.copy|copy(dev.kord.common.entity.InstallParams){}[0]
final fun component1(): dev.kord.common.entity.optional/Optional<dev.kord.common.entity/InstallParams> // dev.kord.common.entity/ApplicationIntegrationTypeConfig.component1|component1(){}[0]
final fun copy(dev.kord.common.entity.optional/Optional<dev.kord.common.entity/InstallParams> = ...): dev.kord.common.entity/ApplicationIntegrationTypeConfig // dev.kord.common.entity/ApplicationIntegrationTypeConfig.copy|copy(dev.kord.common.entity.optional.Optional<dev.kord.common.entity.InstallParams>){}[0]
final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/ApplicationIntegrationTypeConfig.equals|equals(kotlin.Any?){}[0]
final fun hashCode(): kotlin/Int // dev.kord.common.entity/ApplicationIntegrationTypeConfig.hashCode|hashCode(){}[0]
final fun toString(): kotlin/String // dev.kord.common.entity/ApplicationIntegrationTypeConfig.toString|toString(){}[0]
Expand All @@ -405,6 +405,8 @@ final class dev.kord.common.entity/ApplicationIntegrationTypeConfig { // dev.kor
}

final object Companion { // dev.kord.common.entity/ApplicationIntegrationTypeConfig.Companion|null[0]
final val $childSerializers // dev.kord.common.entity/ApplicationIntegrationTypeConfig.Companion.$childSerializers|{}$childSerializers[0]

final fun serializer(): kotlinx.serialization/KSerializer<dev.kord.common.entity/ApplicationIntegrationTypeConfig> // dev.kord.common.entity/ApplicationIntegrationTypeConfig.Companion.serializer|serializer(){}[0]
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/src/commonMain/kotlin/entity/DiscordApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,5 @@ public data class InstallParams(
public data class ApplicationIntegrationTypeConfig(
/** Install params for each installation context's default in-app authorization link */
@SerialName("oauth2_install_params")
val oauth2InstallParams: InstallParams
val oauth2InstallParams: Optional<InstallParams> = Optional.Missing()
)

0 comments on commit 8660e92

Please sign in to comment.