Skip to content

Commit

Permalink
Make contexts nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 25, 2024
1 parent d567e98 commit 366a1a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions common/api/common.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -1035,12 +1035,12 @@ final class dev.kord.common.entity/DiscordApplication : dev.kord.common.entity/B
}

final class dev.kord.common.entity/DiscordApplicationCommand { // dev.kord.common.entity/DiscordApplicationCommand|null[0]
constructor <init>(dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/Optional<dev.kord.common.entity/ApplicationCommandType> = ..., dev.kord.common.entity/Snowflake, kotlin/String, dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> = ..., kotlin/String?, dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationCommandOption>> = ..., dev.kord.common.entity/Permissions?, dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationIntegrationType>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/InteractionContextType>> = ..., dev.kord.common.entity/Snowflake) // dev.kord.common.entity/DiscordApplicationCommand.<init>|<init>(dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.ApplicationCommandType>;dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional<kotlin.collections.Map<dev.kord.common.Locale,kotlin.String>?>;kotlin.String?;dev.kord.common.entity.optional.Optional<kotlin.collections.Map<dev.kord.common.Locale,kotlin.String>?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.ApplicationCommandOption>>;dev.kord.common.entity.Permissions?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.ApplicationIntegrationType>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.InteractionContextType>>;dev.kord.common.entity.Snowflake){}[0]
constructor <init>(dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/Optional<dev.kord.common.entity/ApplicationCommandType> = ..., dev.kord.common.entity/Snowflake, kotlin/String, dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> = ..., kotlin/String?, dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationCommandOption>> = ..., dev.kord.common.entity/Permissions?, dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationIntegrationType>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/InteractionContextType>?> = ..., dev.kord.common.entity/Snowflake) // dev.kord.common.entity/DiscordApplicationCommand.<init>|<init>(dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.ApplicationCommandType>;dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional<kotlin.collections.Map<dev.kord.common.Locale,kotlin.String>?>;kotlin.String?;dev.kord.common.entity.optional.Optional<kotlin.collections.Map<dev.kord.common.Locale,kotlin.String>?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.ApplicationCommandOption>>;dev.kord.common.entity.Permissions?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.ApplicationIntegrationType>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.InteractionContextType>?>;dev.kord.common.entity.Snowflake){}[0]

final val applicationId // dev.kord.common.entity/DiscordApplicationCommand.applicationId|{}applicationId[0]
final fun <get-applicationId>(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.applicationId.<get-applicationId>|<get-applicationId>(){}[0]
final val contexts // dev.kord.common.entity/DiscordApplicationCommand.contexts|{}contexts[0]
final fun <get-contexts>(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/InteractionContextType>> // dev.kord.common.entity/DiscordApplicationCommand.contexts.<get-contexts>|<get-contexts>(){}[0]
final fun <get-contexts>(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/InteractionContextType>?> // dev.kord.common.entity/DiscordApplicationCommand.contexts.<get-contexts>|<get-contexts>(){}[0]
final val defaultMemberPermissions // dev.kord.common.entity/DiscordApplicationCommand.defaultMemberPermissions|{}defaultMemberPermissions[0]
final fun <get-defaultMemberPermissions>(): dev.kord.common.entity/Permissions? // dev.kord.common.entity/DiscordApplicationCommand.defaultMemberPermissions.<get-defaultMemberPermissions>|<get-defaultMemberPermissions>(){}[0]
final val defaultPermission // dev.kord.common.entity/DiscordApplicationCommand.defaultPermission|{}defaultPermission[0]
Expand Down Expand Up @@ -1076,7 +1076,7 @@ final class dev.kord.common.entity/DiscordApplicationCommand { // dev.kord.commo
final fun component12(): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.common.entity/DiscordApplicationCommand.component12|component12(){}[0]
final fun component13(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordApplicationCommand.component13|component13(){}[0]
final fun component14(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationIntegrationType>> // dev.kord.common.entity/DiscordApplicationCommand.component14|component14(){}[0]
final fun component15(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/InteractionContextType>> // dev.kord.common.entity/DiscordApplicationCommand.component15|component15(){}[0]
final fun component15(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/InteractionContextType>?> // dev.kord.common.entity/DiscordApplicationCommand.component15|component15(){}[0]
final fun component16(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.component16|component16(){}[0]
final fun component2(): dev.kord.common.entity.optional/Optional<dev.kord.common.entity/ApplicationCommandType> // dev.kord.common.entity/DiscordApplicationCommand.component2|component2(){}[0]
final fun component3(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.component3|component3(){}[0]
Expand All @@ -1086,7 +1086,7 @@ final class dev.kord.common.entity/DiscordApplicationCommand { // dev.kord.commo
final fun component7(): dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> // dev.kord.common.entity/DiscordApplicationCommand.component7|component7(){}[0]
final fun component8(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordApplicationCommand.component8|component8(){}[0]
final fun component9(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationCommandOption>> // dev.kord.common.entity/DiscordApplicationCommand.component9|component9(){}[0]
final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/ApplicationCommandType> = ..., dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> = ..., kotlin/String? = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationCommandOption>> = ..., dev.kord.common.entity/Permissions? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationIntegrationType>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/InteractionContextType>> = ..., dev.kord.common.entity/Snowflake = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.common.entity/DiscordApplicationCommand.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.ApplicationCommandType>;dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional<kotlin.collections.Map<dev.kord.common.Locale,kotlin.String>?>;kotlin.String?;dev.kord.common.entity.optional.Optional<kotlin.collections.Map<dev.kord.common.Locale,kotlin.String>?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.ApplicationCommandOption>>;dev.kord.common.entity.Permissions?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.ApplicationIntegrationType>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.InteractionContextType>>;dev.kord.common.entity.Snowflake){}[0]
final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/ApplicationCommandType> = ..., dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> = ..., kotlin/String? = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/Map<dev.kord.common/Locale, kotlin/String>?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationCommandOption>> = ..., dev.kord.common.entity/Permissions? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/ApplicationIntegrationType>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/InteractionContextType>?> = ..., dev.kord.common.entity/Snowflake = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.common.entity/DiscordApplicationCommand.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.ApplicationCommandType>;dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional<kotlin.collections.Map<dev.kord.common.Locale,kotlin.String>?>;kotlin.String?;dev.kord.common.entity.optional.Optional<kotlin.collections.Map<dev.kord.common.Locale,kotlin.String>?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.ApplicationCommandOption>>;dev.kord.common.entity.Permissions?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.ApplicationIntegrationType>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.InteractionContextType>?>;dev.kord.common.entity.Snowflake){}[0]
final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordApplicationCommand.equals|equals(kotlin.Any?){}[0]
final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordApplicationCommand.hashCode|hashCode(){}[0]
final fun toString(): kotlin/String // dev.kord.common.entity/DiscordApplicationCommand.toString|toString(){}[0]
Expand Down
2 changes: 1 addition & 1 deletion common/src/commonMain/kotlin/entity/Interactions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public data class DiscordApplicationCommand(
val nsfw: OptionalBoolean = OptionalBoolean.Missing,
@SerialName("integration_types")
val integrationTypes: Optional<List<ApplicationIntegrationType>> = Optional.Missing(),
val contexts: Optional<List<InteractionContextType>> = Optional.Missing(),
val contexts: Optional<List<InteractionContextType>?> = Optional.Missing(),
val version: Snowflake
)

Expand Down

0 comments on commit 366a1a7

Please sign in to comment.