From a673908ce37b1b6f7e1b09ecae832e13ac232e5b Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 25 Aug 2024 12:18:44 +0200 Subject: [PATCH 01/22] Add support for User installable apps --- common/api/common.api | 216 ++++++++++++---- common/api/common.klib.api | 235 ++++++++++++++---- .../entity/ApplicationIntegrationType.kt | 90 +++++++ .../common/entity/InteractionContextType.kt | 98 ++++++++ .../dev/kord/common/entity/Permission.kt | 9 + .../kotlin/entity/DiscordApplication.kt | 4 + .../kotlin/entity/DiscordIntegration.kt | 11 +- .../kotlin/entity/DiscordMessage.kt | 30 +++ .../commonMain/kotlin/entity/Interactions.kt | 47 +++- .../commonMain/kotlin/entity/Permissions.kt | 5 + core/api/core.api | 211 +++++++++++++--- core/api/core.klib.api | 185 ++++++++++---- .../kotlin/cache/data/ApplicationData.kt | 9 + .../kotlin/cache/data/IntegrationData.kt | 2 - .../kotlin/cache/data/InteractionData.kt | 10 +- .../kotlin/cache/data/MessageData.kt | 10 + .../cache/data/MessageInteractionData.kt | 31 +++ .../commonMain/kotlin/entity/Application.kt | 12 +- .../commonMain/kotlin/entity/Integration.kt | 6 - core/src/commonMain/kotlin/entity/Message.kt | 42 +++- .../entity/interaction/GuildInteraction.kt | 2 +- .../kotlin/entity/interaction/Interaction.kt | 21 ++ .../gateway/handler/MessageEventHandler.kt | 1 + rest/api/rest.api | 40 +++ rest/api/rest.klib.api | 26 ++ .../interaction/ApplicationCommandBuilders.kt | 20 ++ .../ApplicationCommandStateHolder.kt | 4 + .../builder/interaction/InputChatBuilders.kt | 7 + .../interaction/MessageCommandBuilders.kt | 6 + .../interaction/UserCommandBuilders.kt | 6 + 30 files changed, 1194 insertions(+), 202 deletions(-) create mode 100644 common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationIntegrationType.kt create mode 100644 common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionContextType.kt diff --git a/common/api/common.api b/common/api/common.api index c5b3b0f34e9..f109f644eec 100644 --- a/common/api/common.api +++ b/common/api/common.api @@ -697,6 +697,32 @@ public final class dev/kord/common/entity/ApplicationFlags$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public abstract class dev/kord/common/entity/ApplicationIntegrationType { + public static final field Companion Ldev/kord/common/entity/ApplicationIntegrationType$Companion; + public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun equals (Ljava/lang/Object;)Z + public final fun getValue ()I + public final fun hashCode ()I + public final fun toString ()Ljava/lang/String; +} + +public final class dev/kord/common/entity/ApplicationIntegrationType$Companion { + public final fun from (I)Ldev/kord/common/entity/ApplicationIntegrationType; + public final fun getEntries ()Ljava/util/List; + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/kord/common/entity/ApplicationIntegrationType$GuildInstall : dev/kord/common/entity/ApplicationIntegrationType { + public static final field INSTANCE Ldev/kord/common/entity/ApplicationIntegrationType$GuildInstall; +} + +public final class dev/kord/common/entity/ApplicationIntegrationType$Unknown : dev/kord/common/entity/ApplicationIntegrationType { +} + +public final class dev/kord/common/entity/ApplicationIntegrationType$UserInstall : dev/kord/common/entity/ApplicationIntegrationType { + public static final field INSTANCE Ldev/kord/common/entity/ApplicationIntegrationType$UserInstall; +} + public abstract class dev/kord/common/entity/ApplicationRoleConnectionMetadataType { public static final field Companion Ldev/kord/common/entity/ApplicationRoleConnectionMetadataType$Companion; public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -2463,22 +2489,25 @@ public final class dev/kord/common/entity/DiscordAddedGuildMember$Companion { public final class dev/kord/common/entity/DiscordApplication : dev/kord/common/entity/BaseDiscordApplication { public static final field Companion Ldev/kord/common/entity/DiscordApplication$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; public final fun component10 ()Ldev/kord/common/entity/optional/Optional; - public final fun component11 ()Ljava/lang/String; - public final fun component12 ()Ldev/kord/common/entity/DiscordTeam; - public final fun component13 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component11 ()Ldev/kord/common/entity/optional/Optional; + public final fun component12 ()Ljava/lang/String; + public final fun component13 ()Ldev/kord/common/entity/DiscordTeam; public final fun component14 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component15 ()Ldev/kord/common/entity/optional/Optional; - public final fun component16 ()Ldev/kord/common/entity/optional/Optional; + public final fun component16 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component17 ()Ldev/kord/common/entity/optional/Optional; public final fun component18 ()Ldev/kord/common/entity/optional/Optional; public final fun component19 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ljava/lang/String; public final fun component20 ()Ldev/kord/common/entity/optional/Optional; public final fun component21 ()Ldev/kord/common/entity/optional/Optional; + public final fun component22 ()Ldev/kord/common/entity/optional/Optional; + public final fun component23 ()Ldev/kord/common/entity/optional/Optional; + public final fun component24 ()Ldev/kord/common/entity/optional/Optional; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ljava/lang/String; public final fun component5 ()Ldev/kord/common/entity/optional/Optional; @@ -2486,19 +2515,22 @@ public final class dev/kord/common/entity/DiscordApplication : dev/kord/common/e public final fun component7 ()Z public final fun component8 ()Ldev/kord/common/entity/optional/Optional; public final fun component9 ()Ldev/kord/common/entity/optional/Optional; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/DiscordApplication; - public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordApplication;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordApplication; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/DiscordApplication; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordApplication;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordApplication; public fun equals (Ljava/lang/Object;)Z + public final fun getBot ()Ldev/kord/common/entity/optional/Optional; public final fun getBotPublic ()Z public final fun getBotRequireCodeGrant ()Z public fun getCoverImage ()Ldev/kord/common/entity/optional/Optional; public fun getCustomInstallUrl ()Ldev/kord/common/entity/optional/Optional; public fun getDescription ()Ljava/lang/String; public fun getFlags ()Ldev/kord/common/entity/optional/Optional; + public final fun getGuild ()Ldev/kord/common/entity/optional/Optional; public fun getGuildId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public fun getIcon ()Ljava/lang/String; public fun getId ()Ldev/kord/common/entity/Snowflake; public fun getInstallParams ()Ldev/kord/common/entity/optional/Optional; + public final fun getIntegrationTypesConfig ()Ldev/kord/common/entity/optional/Optional; public fun getName ()Ljava/lang/String; public fun getOwner ()Ldev/kord/common/entity/optional/Optional; public fun getPrimarySkuId ()Ldev/kord/common/entity/optional/OptionalSnowflake; @@ -2531,14 +2563,16 @@ public final class dev/kord/common/entity/DiscordApplication$Companion { public final class dev/kord/common/entity/DiscordApplicationCommand { public static final field Companion Ldev/kord/common/entity/DiscordApplicationCommand$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/Snowflake;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/Snowflake;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; public final fun component10 ()Ldev/kord/common/entity/Permissions; public final fun component11 ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun component12 ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun component13 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun component14 ()Ldev/kord/common/entity/Snowflake; + public final fun component14 ()Ldev/kord/common/entity/optional/Optional; + public final fun component15 ()Ldev/kord/common/entity/optional/Optional; + public final fun component16 ()Ldev/kord/common/entity/Snowflake; public final fun component2 ()Ldev/kord/common/entity/optional/Optional; public final fun component3 ()Ldev/kord/common/entity/Snowflake; public final fun component4 ()Ljava/lang/String; @@ -2547,10 +2581,11 @@ public final class dev/kord/common/entity/DiscordApplicationCommand { public final fun component7 ()Ldev/kord/common/entity/optional/Optional; public final fun component8 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component9 ()Ldev/kord/common/entity/optional/Optional; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/Snowflake;)Ldev/kord/common/entity/DiscordApplicationCommand; - public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordApplicationCommand;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/Snowflake;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordApplicationCommand; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;)Ldev/kord/common/entity/DiscordApplicationCommand; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordApplicationCommand;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Snowflake;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordApplicationCommand; public fun equals (Ljava/lang/Object;)Z public final fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public final fun getContexts ()Ldev/kord/common/entity/optional/Optional; public final fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public final fun getDefaultPermission ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getDescription ()Ljava/lang/String; @@ -2558,6 +2593,7 @@ public final class dev/kord/common/entity/DiscordApplicationCommand { public final fun getDmPermission ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getGuildId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getId ()Ldev/kord/common/entity/Snowflake; + public final fun getIntegrationTypes ()Ldev/kord/common/entity/optional/Optional; public final fun getName ()Ljava/lang/String; public final fun getNameLocalizations ()Ldev/kord/common/entity/optional/Optional; public final fun getNsfw ()Ldev/kord/common/entity/optional/OptionalBoolean; @@ -4150,26 +4186,25 @@ public final class dev/kord/common/entity/DiscordGuildWidget$Companion { public final class dev/kord/common/entity/DiscordIntegration { public static final field Companion Ldev/kord/common/entity/DiscordIntegration$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordIntegrationsAccount;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordIntegrationsAccount;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordIntegrationsAccount;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordIntegrationsAccount;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; - public final fun component10 ()Ldev/kord/common/entity/optional/Optional; - public final fun component11 ()Ldev/kord/common/entity/DiscordIntegrationsAccount; - public final fun component12 ()Ldev/kord/common/entity/optional/Optional; - public final fun component13 ()Ldev/kord/common/entity/optional/OptionalInt; - public final fun component14 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun component15 ()Ldev/kord/common/entity/optional/Optional; - public final fun component16 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component10 ()Ldev/kord/common/entity/DiscordIntegrationsAccount; + public final fun component11 ()Ldev/kord/common/entity/optional/Optional; + public final fun component12 ()Ldev/kord/common/entity/optional/OptionalInt; + public final fun component13 ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun component14 ()Ldev/kord/common/entity/optional/Optional; + public final fun component15 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component2 ()Ljava/lang/String; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Z - public final fun component5 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun component6 ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final fun component7 ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun component5 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component6 ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun component7 ()Ldev/kord/common/entity/optional/Optional; public final fun component8 ()Ldev/kord/common/entity/optional/Optional; public final fun component9 ()Ldev/kord/common/entity/optional/Optional; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordIntegrationsAccount;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;)Ldev/kord/common/entity/DiscordIntegration; - public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordIntegration;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordIntegrationsAccount;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordIntegration; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordIntegrationsAccount;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;)Ldev/kord/common/entity/DiscordIntegration; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordIntegration;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordIntegrationsAccount;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordIntegration; public fun equals (Ljava/lang/Object;)Z public final fun getAccount ()Ldev/kord/common/entity/DiscordIntegrationsAccount; public final fun getApplication ()Ldev/kord/common/entity/optional/Optional; @@ -4184,7 +4219,6 @@ public final class dev/kord/common/entity/DiscordIntegration { public final fun getRoleId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getSubscriberCount ()Ldev/kord/common/entity/optional/OptionalInt; public final fun getSyncedAt ()Ldev/kord/common/entity/optional/Optional; - public final fun getSyncing ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getType ()Ljava/lang/String; public final fun getUser ()Ldev/kord/common/entity/optional/Optional; public fun hashCode ()I @@ -4298,31 +4332,37 @@ public final class dev/kord/common/entity/DiscordIntegrationsAccount$Companion { public final class dev/kord/common/entity/DiscordInteraction { public static final field Companion Ldev/kord/common/entity/DiscordInteraction$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/InteractionCallbackData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/InteractionCallbackData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/InteractionCallbackData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/Map;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/InteractionCallbackData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/Map;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; - public final fun component10 ()Ljava/lang/String; - public final fun component11 ()I - public final fun component12 ()Ldev/kord/common/entity/optional/Optional; + public final fun component10 ()Ldev/kord/common/entity/optional/Optional; + public final fun component11 ()Ljava/lang/String; + public final fun component12 ()I public final fun component13 ()Ldev/kord/common/entity/optional/Optional; - public final fun component14 ()Ldev/kord/common/entity/optional/Optional; + public final fun component14 ()Ldev/kord/common/entity/Permissions; public final fun component15 ()Ldev/kord/common/entity/optional/Optional; + public final fun component16 ()Ldev/kord/common/entity/optional/Optional; + public final fun component17 ()Ljava/util/Map; + public final fun component18 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ldev/kord/common/entity/Snowflake; public final fun component3 ()Ldev/kord/common/entity/InteractionType; public final fun component4 ()Ldev/kord/common/entity/InteractionCallbackData; public final fun component5 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component6 ()Ldev/kord/common/entity/optional/Optional; - public final fun component7 ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final fun component8 ()Ldev/kord/common/entity/optional/Optional; + public final fun component7 ()Ldev/kord/common/entity/optional/Optional; + public final fun component8 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component9 ()Ldev/kord/common/entity/optional/Optional; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/InteractionCallbackData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/DiscordInteraction; - public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordInteraction;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/InteractionCallbackData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordInteraction; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/InteractionCallbackData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/Map;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/DiscordInteraction; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordInteraction;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/InteractionCallbackData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/Map;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordInteraction; public fun equals (Ljava/lang/Object;)Z - public final fun getAppPermissions ()Ldev/kord/common/entity/optional/Optional; + public final fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public final fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public final fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public final fun getChannel ()Ldev/kord/common/entity/optional/Optional; public final fun getChannelId ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun getContext ()Ldev/kord/common/entity/optional/Optional; public final fun getData ()Ldev/kord/common/entity/InteractionCallbackData; + public final fun getGuild ()Ldev/kord/common/entity/optional/Optional; public final fun getGuildId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getGuildLocale ()Ldev/kord/common/entity/optional/Optional; public final fun getId ()Ldev/kord/common/entity/Snowflake; @@ -4398,6 +4438,46 @@ public final class dev/kord/common/entity/DiscordInteractionGuildMember$Companio public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/kord/common/entity/DiscordInteractionMetadata { + public static final field Companion Ldev/kord/common/entity/DiscordInteractionMetadata$Companion; + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/DiscordUser;Ljava/util/Map;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/DiscordUser;Ljava/util/Map;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/kord/common/entity/Snowflake; + public final fun component2 ()Ldev/kord/common/entity/InteractionType; + public final fun component3 ()Ldev/kord/common/entity/DiscordUser; + public final fun component4 ()Ljava/util/Map; + public final fun component5 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component6 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component7 ()Ldev/kord/common/entity/optional/Optional; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/DiscordUser;Ljava/util/Map;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/DiscordInteractionMetadata; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordInteractionMetadata;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/common/entity/DiscordUser;Ljava/util/Map;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordInteractionMetadata; + public fun equals (Ljava/lang/Object;)Z + public final fun getAuthorizingIntegrationOwners ()Ljava/util/Map; + public final fun getId ()Ldev/kord/common/entity/Snowflake; + public final fun getInteractedMessageId ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun getOriginalResponseMessageId ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun getTriggeringInteractionMetadata ()Ldev/kord/common/entity/optional/Optional; + public final fun getType ()Ldev/kord/common/entity/InteractionType; + public final fun getUser ()Ldev/kord/common/entity/DiscordUser; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public synthetic class dev/kord/common/entity/DiscordInteractionMetadata$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/kord/common/entity/DiscordInteractionMetadata$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/kord/common/entity/DiscordInteractionMetadata; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/kord/common/entity/DiscordInteractionMetadata;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/kord/common/entity/DiscordInteractionMetadata$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + public final class dev/kord/common/entity/DiscordInvite : dev/kord/common/entity/BaseDiscordInvite { public static final field Companion Ldev/kord/common/entity/DiscordInvite$Companion; public fun (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/DiscordChannel;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V @@ -4541,8 +4621,8 @@ public final class dev/kord/common/entity/DiscordMentionedChannel$Companion { public final class dev/kord/common/entity/DiscordMessage { public static final field Companion Ldev/kord/common/entity/DiscordMessage$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/DiscordUser;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/DiscordUser;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/DiscordUser;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/DiscordUser;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;IILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; public final fun component10 ()Z public final fun component11 ()Ljava/util/List; @@ -4568,15 +4648,16 @@ public final class dev/kord/common/entity/DiscordMessage { public final fun component3 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component30 ()Ldev/kord/common/entity/optional/Optional; public final fun component31 ()Ldev/kord/common/entity/optional/Optional; - public final fun component32 ()Ldev/kord/common/entity/optional/OptionalInt; + public final fun component32 ()Ldev/kord/common/entity/optional/Optional; + public final fun component33 ()Ldev/kord/common/entity/optional/OptionalInt; public final fun component4 ()Ldev/kord/common/entity/DiscordUser; public final fun component5 ()Ldev/kord/common/entity/optional/Optional; public final fun component6 ()Ljava/lang/String; public final fun component7 ()Lkotlinx/datetime/Instant; public final fun component8 ()Lkotlinx/datetime/Instant; public final fun component9 ()Z - public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/DiscordUser;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)Ldev/kord/common/entity/DiscordMessage; - public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordMessage;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/DiscordUser;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordMessage; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/DiscordUser;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)Ldev/kord/common/entity/DiscordMessage; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordMessage;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/DiscordUser;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;IILjava/lang/Object;)Ldev/kord/common/entity/DiscordMessage; public fun equals (Ljava/lang/Object;)Z public final fun getActivity ()Ldev/kord/common/entity/optional/Optional; public final fun getApplication ()Ldev/kord/common/entity/optional/Optional; @@ -4592,6 +4673,7 @@ public final class dev/kord/common/entity/DiscordMessage { public final fun getGuildId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getId ()Ldev/kord/common/entity/Snowflake; public final fun getInteraction ()Ldev/kord/common/entity/optional/Optional; + public final fun getInteractionMetadata ()Ldev/kord/common/entity/optional/Optional; public final fun getMember ()Ldev/kord/common/entity/optional/Optional; public final fun getMentionEveryone ()Z public final fun getMentionRoles ()Ljava/util/List; @@ -5129,8 +5211,8 @@ public final class dev/kord/common/entity/DiscordPartialInvite$Companion { public final class dev/kord/common/entity/DiscordPartialMessage { public static final field Companion Ldev/kord/common/entity/DiscordPartialMessage$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; public final fun component10 ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun component11 ()Ldev/kord/common/entity/optional/Optional; @@ -5151,7 +5233,8 @@ public final class dev/kord/common/entity/DiscordPartialMessage { public final fun component25 ()Ldev/kord/common/entity/optional/Optional; public final fun component26 ()Ldev/kord/common/entity/optional/Optional; public final fun component27 ()Ldev/kord/common/entity/optional/Optional; - public final fun component28 ()Ldev/kord/common/entity/optional/OptionalInt; + public final fun component28 ()Ldev/kord/common/entity/optional/Optional; + public final fun component29 ()Ldev/kord/common/entity/optional/OptionalInt; public final fun component3 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component4 ()Ldev/kord/common/entity/optional/Optional; public final fun component5 ()Ldev/kord/common/entity/optional/Optional; @@ -5159,8 +5242,8 @@ public final class dev/kord/common/entity/DiscordPartialMessage { public final fun component7 ()Ldev/kord/common/entity/optional/Optional; public final fun component8 ()Ldev/kord/common/entity/optional/Optional; public final fun component9 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)Ldev/kord/common/entity/DiscordPartialMessage; - public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordPartialMessage;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordPartialMessage; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)Ldev/kord/common/entity/DiscordPartialMessage; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordPartialMessage;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordPartialMessage; public fun equals (Ljava/lang/Object;)Z public final fun getActivity ()Ldev/kord/common/entity/optional/Optional; public final fun getApplication ()Ldev/kord/common/entity/optional/Optional; @@ -5174,6 +5257,7 @@ public final class dev/kord/common/entity/DiscordPartialMessage { public final fun getGuildId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getId ()Ldev/kord/common/entity/Snowflake; public final fun getInteraction ()Ldev/kord/common/entity/optional/Optional; + public final fun getInteractionMetadata ()Ldev/kord/common/entity/optional/Optional; public final fun getMember ()Ldev/kord/common/entity/optional/Optional; public final fun getMentionEveryone ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getMentionRoles ()Ldev/kord/common/entity/optional/Optional; @@ -6926,6 +7010,36 @@ public final class dev/kord/common/entity/InteractionCallbackData$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public abstract class dev/kord/common/entity/InteractionContextType { + public static final field Companion Ldev/kord/common/entity/InteractionContextType$Companion; + public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun equals (Ljava/lang/Object;)Z + public final fun getValue ()I + public final fun hashCode ()I + public final fun toString ()Ljava/lang/String; +} + +public final class dev/kord/common/entity/InteractionContextType$BotDM : dev/kord/common/entity/InteractionContextType { + public static final field INSTANCE Ldev/kord/common/entity/InteractionContextType$BotDM; +} + +public final class dev/kord/common/entity/InteractionContextType$Companion { + public final fun from (I)Ldev/kord/common/entity/InteractionContextType; + public final fun getEntries ()Ljava/util/List; + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/kord/common/entity/InteractionContextType$Guild : dev/kord/common/entity/InteractionContextType { + public static final field INSTANCE Ldev/kord/common/entity/InteractionContextType$Guild; +} + +public final class dev/kord/common/entity/InteractionContextType$PrivateChannel : dev/kord/common/entity/InteractionContextType { + public static final field INSTANCE Ldev/kord/common/entity/InteractionContextType$PrivateChannel; +} + +public final class dev/kord/common/entity/InteractionContextType$Unknown : dev/kord/common/entity/InteractionContextType { +} + public abstract class dev/kord/common/entity/InteractionResponseType { public static final field Companion Ldev/kord/common/entity/InteractionResponseType$Companion; public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -7834,6 +7948,10 @@ public final class dev/kord/common/entity/Permission$Stream : dev/kord/common/en public static final field INSTANCE Ldev/kord/common/entity/Permission$Stream; } +public final class dev/kord/common/entity/Permission$USE_EXTERNAL_APPS : dev/kord/common/entity/Permission { + public static final field INSTANCE Ldev/kord/common/entity/Permission$USE_EXTERNAL_APPS; +} + public final class dev/kord/common/entity/Permission$Unknown : dev/kord/common/entity/Permission { } diff --git a/common/api/common.klib.api b/common/api/common.klib.api index 9308b8f8f82..81de4e08f45 100644 --- a/common/api/common.klib.api +++ b/common/api/common.klib.api @@ -938,8 +938,10 @@ final class dev.kord.common.entity/DiscordAddedGuildMember { // dev.kord.common. } final class dev.kord.common.entity/DiscordApplication : dev.kord.common.entity/BaseDiscordApplication { // dev.kord.common.entity/DiscordApplication|null[0] - constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String?, kotlin/String, dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean, kotlin/Boolean, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, dev.kord.common.entity/DiscordTeam?, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordApplication.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.DiscordTeam?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String?, kotlin/String, dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean, kotlin/Boolean, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, dev.kord.common.entity/DiscordTeam?, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordApplication.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.DiscordTeam?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + final val bot // dev.kord.common.entity/DiscordApplication.bot|{}bot[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.bot.|(){}[0] final val botPublic // dev.kord.common.entity/DiscordApplication.botPublic|{}botPublic[0] final fun (): kotlin/Boolean // dev.kord.common.entity/DiscordApplication.botPublic.|(){}[0] final val botRequireCodeGrant // dev.kord.common.entity/DiscordApplication.botRequireCodeGrant|{}botRequireCodeGrant[0] @@ -952,6 +954,8 @@ final class dev.kord.common.entity/DiscordApplication : dev.kord.common.entity/B final fun (): kotlin/String // dev.kord.common.entity/DiscordApplication.description.|(){}[0] final val flags // dev.kord.common.entity/DiscordApplication.flags|{}flags[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.flags.|(){}[0] + final val guild // dev.kord.common.entity/DiscordApplication.guild|{}guild[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.guild.|(){}[0] final val guildId // dev.kord.common.entity/DiscordApplication.guildId|{}guildId[0] final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordApplication.guildId.|(){}[0] final val icon // dev.kord.common.entity/DiscordApplication.icon|{}icon[0] @@ -960,6 +964,8 @@ final class dev.kord.common.entity/DiscordApplication : dev.kord.common.entity/B final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplication.id.|(){}[0] final val installParams // dev.kord.common.entity/DiscordApplication.installParams|{}installParams[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.installParams.|(){}[0] + final val integrationTypesConfig // dev.kord.common.entity/DiscordApplication.integrationTypesConfig|{}integrationTypesConfig[0] + final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.integrationTypesConfig.|(){}[0] final val name // dev.kord.common.entity/DiscordApplication.name|{}name[0] final fun (): kotlin/String // dev.kord.common.entity/DiscordApplication.name.|(){}[0] final val owner // dev.kord.common.entity/DiscordApplication.owner|{}owner[0] @@ -984,27 +990,30 @@ final class dev.kord.common.entity/DiscordApplication : dev.kord.common.entity/B final fun (): kotlin/String // dev.kord.common.entity/DiscordApplication.verifyKey.|(){}[0] final fun component1(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplication.component1|component1(){}[0] - final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component10|component10(){}[0] - final fun component11(): kotlin/String // dev.kord.common.entity/DiscordApplication.component11|component11(){}[0] - final fun component12(): dev.kord.common.entity/DiscordTeam? // dev.kord.common.entity/DiscordApplication.component12|component12(){}[0] - final fun component13(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordApplication.component13|component13(){}[0] + final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component10|component10(){}[0] + final fun component11(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component11|component11(){}[0] + final fun component12(): kotlin/String // dev.kord.common.entity/DiscordApplication.component12|component12(){}[0] + final fun component13(): dev.kord.common.entity/DiscordTeam? // dev.kord.common.entity/DiscordApplication.component13|component13(){}[0] final fun component14(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordApplication.component14|component14(){}[0] - final fun component15(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component15|component15(){}[0] - final fun component16(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component16|component16(){}[0] - final fun component17(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component17|component17(){}[0] - final fun component18(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component18|component18(){}[0] - final fun component19(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component19|component19(){}[0] + final fun component15(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component15|component15(){}[0] + final fun component16(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordApplication.component16|component16(){}[0] + final fun component17(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component17|component17(){}[0] + final fun component18(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component18|component18(){}[0] + final fun component19(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component19|component19(){}[0] final fun component2(): kotlin/String // dev.kord.common.entity/DiscordApplication.component2|component2(){}[0] - final fun component20(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component20|component20(){}[0] - final fun component21(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component21|component21(){}[0] + final fun component20(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component20|component20(){}[0] + final fun component21(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component21|component21(){}[0] + final fun component22(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component22|component22(){}[0] + final fun component23(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component23|component23(){}[0] + final fun component24(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component24|component24(){}[0] final fun component3(): kotlin/String? // dev.kord.common.entity/DiscordApplication.component3|component3(){}[0] final fun component4(): kotlin/String // dev.kord.common.entity/DiscordApplication.component4|component4(){}[0] final fun component5(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component5|component5(){}[0] final fun component6(): kotlin/Boolean // dev.kord.common.entity/DiscordApplication.component6|component6(){}[0] final fun component7(): kotlin/Boolean // dev.kord.common.entity/DiscordApplication.component7|component7(){}[0] - final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component8|component8(){}[0] + final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String? = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., dev.kord.common.entity/DiscordTeam? = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordApplication // dev.kord.common.entity/DiscordApplication.copy|copy(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.DiscordTeam?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String? = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., dev.kord.common.entity/DiscordTeam? = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordApplication // dev.kord.common.entity/DiscordApplication.copy|copy(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.DiscordTeam?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordApplication.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordApplication.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.common.entity/DiscordApplication.toString|toString(){}[0] @@ -1026,10 +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 (dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Snowflake, kotlin/String, dev.kord.common.entity.optional/Optional?> = ..., kotlin/String?, dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional> = ..., 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/Snowflake) // dev.kord.common.entity/DiscordApplicationCommand.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional?>;kotlin.String?;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional>;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.Snowflake){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Snowflake, kotlin/String, dev.kord.common.entity.optional/Optional?> = ..., kotlin/String?, dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional> = ..., 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> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity/Snowflake) // dev.kord.common.entity/DiscordApplicationCommand.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional?>;kotlin.String?;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional>;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>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.Snowflake){}[0] final val applicationId // dev.kord.common.entity/DiscordApplicationCommand.applicationId|{}applicationId[0] final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.applicationId.|(){}[0] + final val contexts // dev.kord.common.entity/DiscordApplicationCommand.contexts|{}contexts[0] + final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplicationCommand.contexts.|(){}[0] final val defaultMemberPermissions // dev.kord.common.entity/DiscordApplicationCommand.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.common.entity/DiscordApplicationCommand.defaultMemberPermissions.|(){}[0] final val defaultPermission // dev.kord.common.entity/DiscordApplicationCommand.defaultPermission|{}defaultPermission[0] @@ -1044,6 +1055,8 @@ final class dev.kord.common.entity/DiscordApplicationCommand { // dev.kord.commo final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordApplicationCommand.guildId.|(){}[0] final val id // dev.kord.common.entity/DiscordApplicationCommand.id|{}id[0] final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.id.|(){}[0] + final val integrationTypes // dev.kord.common.entity/DiscordApplicationCommand.integrationTypes|{}integrationTypes[0] + final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplicationCommand.integrationTypes.|(){}[0] final val name // dev.kord.common.entity/DiscordApplicationCommand.name|{}name[0] final fun (): kotlin/String // dev.kord.common.entity/DiscordApplicationCommand.name.|(){}[0] final val nameLocalizations // dev.kord.common.entity/DiscordApplicationCommand.nameLocalizations|{}nameLocalizations[0] @@ -1062,7 +1075,9 @@ final class dev.kord.common.entity/DiscordApplicationCommand { // dev.kord.commo final fun component11(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordApplicationCommand.component11|component11(){}[0] 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/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.component14|component14(){}[0] + final fun component14(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplicationCommand.component14|component14(){}[0] + final fun component15(): dev.kord.common.entity.optional/Optional> // 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/DiscordApplicationCommand.component2|component2(){}[0] final fun component3(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.component3|component3(){}[0] final fun component4(): kotlin/String // dev.kord.common.entity/DiscordApplicationCommand.component4|component4(){}[0] @@ -1071,7 +1086,7 @@ final class dev.kord.common.entity/DiscordApplicationCommand { // dev.kord.commo final fun component7(): dev.kord.common.entity.optional/Optional?> // 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> // 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/Snowflake = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional?> = ..., kotlin/String? = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional> = ..., 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/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.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional?>;kotlin.String?;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional>;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.Snowflake){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional?> = ..., kotlin/String? = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional> = ..., 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> = ..., dev.kord.common.entity.optional/Optional> = ..., 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.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional?>;kotlin.String?;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional>;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>;dev.kord.common.entity.optional.Optional>;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] @@ -2848,7 +2863,7 @@ final class dev.kord.common.entity/DiscordGuildWidget { // dev.kord.common.entit } final class dev.kord.common.entity/DiscordIntegration { // dev.kord.common.entity/DiscordIntegration|null[0] - constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Boolean, dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/DiscordIntegrationsAccount, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ...) // dev.kord.common.entity/DiscordIntegration.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Boolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.DiscordIntegrationsAccount;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake){}[0] + constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Boolean, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/DiscordIntegrationsAccount, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ...) // dev.kord.common.entity/DiscordIntegration.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.DiscordIntegrationsAccount;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake){}[0] final val account // dev.kord.common.entity/DiscordIntegration.account|{}account[0] final fun (): dev.kord.common.entity/DiscordIntegrationsAccount // dev.kord.common.entity/DiscordIntegration.account.|(){}[0] @@ -2876,30 +2891,27 @@ final class dev.kord.common.entity/DiscordIntegration { // dev.kord.common.entit final fun (): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordIntegration.subscriberCount.|(){}[0] final val syncedAt // dev.kord.common.entity/DiscordIntegration.syncedAt|{}syncedAt[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.syncedAt.|(){}[0] - final val syncing // dev.kord.common.entity/DiscordIntegration.syncing|{}syncing[0] - final fun (): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordIntegration.syncing.|(){}[0] final val type // dev.kord.common.entity/DiscordIntegration.type|{}type[0] final fun (): kotlin/String // dev.kord.common.entity/DiscordIntegration.type.|(){}[0] final val user // dev.kord.common.entity/DiscordIntegration.user|{}user[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.user.|(){}[0] final fun component1(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordIntegration.component1|component1(){}[0] - final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component10|component10(){}[0] - final fun component11(): dev.kord.common.entity/DiscordIntegrationsAccount // dev.kord.common.entity/DiscordIntegration.component11|component11(){}[0] - final fun component12(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component12|component12(){}[0] - final fun component13(): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordIntegration.component13|component13(){}[0] - final fun component14(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordIntegration.component14|component14(){}[0] - final fun component15(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component15|component15(){}[0] - final fun component16(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordIntegration.component16|component16(){}[0] + final fun component10(): dev.kord.common.entity/DiscordIntegrationsAccount // dev.kord.common.entity/DiscordIntegration.component10|component10(){}[0] + final fun component11(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component11|component11(){}[0] + final fun component12(): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordIntegration.component12|component12(){}[0] + final fun component13(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordIntegration.component13|component13(){}[0] + final fun component14(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component14|component14(){}[0] + final fun component15(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordIntegration.component15|component15(){}[0] final fun component2(): kotlin/String // dev.kord.common.entity/DiscordIntegration.component2|component2(){}[0] final fun component3(): kotlin/String // dev.kord.common.entity/DiscordIntegration.component3|component3(){}[0] final fun component4(): kotlin/Boolean // dev.kord.common.entity/DiscordIntegration.component4|component4(){}[0] - final fun component5(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordIntegration.component5|component5(){}[0] - final fun component6(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordIntegration.component6|component6(){}[0] - final fun component7(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordIntegration.component7|component7(){}[0] - final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component8|component8(){}[0] - final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/DiscordIntegrationsAccount = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ...): dev.kord.common.entity/DiscordIntegration // dev.kord.common.entity/DiscordIntegration.copy|copy(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Boolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.DiscordIntegrationsAccount;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake){}[0] + final fun component5(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordIntegration.component5|component5(){}[0] + final fun component6(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordIntegration.component6|component6(){}[0] + final fun component7(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component7|component7(){}[0] + final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component8|component8(){}[0] + final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordIntegration.component9|component9(){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/DiscordIntegrationsAccount = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ...): dev.kord.common.entity/DiscordIntegration // dev.kord.common.entity/DiscordIntegration.copy|copy(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.DiscordIntegrationsAccount;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordIntegration.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordIntegration.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.common.entity/DiscordIntegration.toString|toString(){}[0] @@ -3011,18 +3023,24 @@ final class dev.kord.common.entity/DiscordIntegrationsAccount { // dev.kord.comm } final class dev.kord.common.entity/DiscordInteraction { // dev.kord.common.entity/DiscordInteraction|null[0] - constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/InteractionType, dev.kord.common.entity/InteractionCallbackData, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, kotlin/Int, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordInteraction.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.InteractionCallbackData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/InteractionType, dev.kord.common.entity/InteractionCallbackData, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, kotlin/Int, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Permissions, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin.collections/Map, dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordInteraction.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.InteractionCallbackData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Permissions;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.collections.Map;dev.kord.common.entity.optional.Optional){}[0] final val appPermissions // dev.kord.common.entity/DiscordInteraction.appPermissions|{}appPermissions[0] - final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.appPermissions.|(){}[0] + final fun (): dev.kord.common.entity/Permissions // dev.kord.common.entity/DiscordInteraction.appPermissions.|(){}[0] final val applicationId // dev.kord.common.entity/DiscordInteraction.applicationId|{}applicationId[0] final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordInteraction.applicationId.|(){}[0] + final val authorizingIntegrationOwners // dev.kord.common.entity/DiscordInteraction.authorizingIntegrationOwners|{}authorizingIntegrationOwners[0] + final fun (): kotlin.collections/Map // dev.kord.common.entity/DiscordInteraction.authorizingIntegrationOwners.|(){}[0] final val channel // dev.kord.common.entity/DiscordInteraction.channel|{}channel[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.channel.|(){}[0] final val channelId // dev.kord.common.entity/DiscordInteraction.channelId|{}channelId[0] final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteraction.channelId.|(){}[0] + final val context // dev.kord.common.entity/DiscordInteraction.context|{}context[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.context.|(){}[0] final val data // dev.kord.common.entity/DiscordInteraction.data|{}data[0] final fun (): dev.kord.common.entity/InteractionCallbackData // dev.kord.common.entity/DiscordInteraction.data.|(){}[0] + final val guild // dev.kord.common.entity/DiscordInteraction.guild|{}guild[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.guild.|(){}[0] final val guildId // dev.kord.common.entity/DiscordInteraction.guildId|{}guildId[0] final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteraction.guildId.|(){}[0] final val guildLocale // dev.kord.common.entity/DiscordInteraction.guildLocale|{}guildLocale[0] @@ -3045,21 +3063,24 @@ final class dev.kord.common.entity/DiscordInteraction { // dev.kord.common.entit final fun (): kotlin/Int // dev.kord.common.entity/DiscordInteraction.version.|(){}[0] final fun component1(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordInteraction.component1|component1(){}[0] - final fun component10(): kotlin/String // dev.kord.common.entity/DiscordInteraction.component10|component10(){}[0] - final fun component11(): kotlin/Int // dev.kord.common.entity/DiscordInteraction.component11|component11(){}[0] - final fun component12(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component12|component12(){}[0] - final fun component13(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component13|component13(){}[0] - final fun component14(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component14|component14(){}[0] + final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component10|component10(){}[0] + final fun component11(): kotlin/String // dev.kord.common.entity/DiscordInteraction.component11|component11(){}[0] + final fun component12(): kotlin/Int // dev.kord.common.entity/DiscordInteraction.component12|component12(){}[0] + final fun component13(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component13|component13(){}[0] + final fun component14(): dev.kord.common.entity/Permissions // dev.kord.common.entity/DiscordInteraction.component14|component14(){}[0] final fun component15(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component15|component15(){}[0] + final fun component16(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component16|component16(){}[0] + final fun component17(): kotlin.collections/Map // dev.kord.common.entity/DiscordInteraction.component17|component17(){}[0] + final fun component18(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component18|component18(){}[0] final fun component2(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordInteraction.component2|component2(){}[0] final fun component3(): dev.kord.common.entity/InteractionType // dev.kord.common.entity/DiscordInteraction.component3|component3(){}[0] final fun component4(): dev.kord.common.entity/InteractionCallbackData // dev.kord.common.entity/DiscordInteraction.component4|component4(){}[0] final fun component5(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteraction.component5|component5(){}[0] - final fun component6(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component6|component6(){}[0] - final fun component7(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteraction.component7|component7(){}[0] - final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component8|component8(){}[0] - final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/InteractionType = ..., dev.kord.common.entity/InteractionCallbackData = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., kotlin/Int = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordInteraction // dev.kord.common.entity/DiscordInteraction.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.InteractionCallbackData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + final fun component6(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component6|component6(){}[0] + final fun component7(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component7|component7(){}[0] + final fun component8(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteraction.component8|component8(){}[0] + final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component9|component9(){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/InteractionType = ..., dev.kord.common.entity/InteractionCallbackData = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., kotlin/Int = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Permissions = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin.collections/Map = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordInteraction // dev.kord.common.entity/DiscordInteraction.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.InteractionCallbackData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Permissions;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.collections.Map;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordInteraction.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordInteraction.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.common.entity/DiscordInteraction.toString|toString(){}[0] @@ -3135,6 +3156,52 @@ final class dev.kord.common.entity/DiscordInteractionGuildMember { // dev.kord.c } } +final class dev.kord.common.entity/DiscordInteractionMetadata { // dev.kord.common.entity/DiscordInteractionMetadata|null[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/InteractionType, dev.kord.common.entity/DiscordUser, kotlin.collections/Map, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordInteractionMetadata.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.DiscordUser;kotlin.collections.Map;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional){}[0] + + final val authorizingIntegrationOwners // dev.kord.common.entity/DiscordInteractionMetadata.authorizingIntegrationOwners|{}authorizingIntegrationOwners[0] + final fun (): kotlin.collections/Map // dev.kord.common.entity/DiscordInteractionMetadata.authorizingIntegrationOwners.|(){}[0] + final val id // dev.kord.common.entity/DiscordInteractionMetadata.id|{}id[0] + final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordInteractionMetadata.id.|(){}[0] + final val interactedMessageId // dev.kord.common.entity/DiscordInteractionMetadata.interactedMessageId|{}interactedMessageId[0] + final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteractionMetadata.interactedMessageId.|(){}[0] + final val originalResponseMessageId // dev.kord.common.entity/DiscordInteractionMetadata.originalResponseMessageId|{}originalResponseMessageId[0] + final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteractionMetadata.originalResponseMessageId.|(){}[0] + final val triggeringInteractionMetadata // dev.kord.common.entity/DiscordInteractionMetadata.triggeringInteractionMetadata|{}triggeringInteractionMetadata[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteractionMetadata.triggeringInteractionMetadata.|(){}[0] + final val type // dev.kord.common.entity/DiscordInteractionMetadata.type|{}type[0] + final fun (): dev.kord.common.entity/InteractionType // dev.kord.common.entity/DiscordInteractionMetadata.type.|(){}[0] + final val user // dev.kord.common.entity/DiscordInteractionMetadata.user|{}user[0] + final fun (): dev.kord.common.entity/DiscordUser // dev.kord.common.entity/DiscordInteractionMetadata.user.|(){}[0] + + final fun component1(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordInteractionMetadata.component1|component1(){}[0] + final fun component2(): dev.kord.common.entity/InteractionType // dev.kord.common.entity/DiscordInteractionMetadata.component2|component2(){}[0] + final fun component3(): dev.kord.common.entity/DiscordUser // dev.kord.common.entity/DiscordInteractionMetadata.component3|component3(){}[0] + final fun component4(): kotlin.collections/Map // dev.kord.common.entity/DiscordInteractionMetadata.component4|component4(){}[0] + final fun component5(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteractionMetadata.component5|component5(){}[0] + final fun component6(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteractionMetadata.component6|component6(){}[0] + final fun component7(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteractionMetadata.component7|component7(){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/InteractionType = ..., dev.kord.common.entity/DiscordUser = ..., kotlin.collections/Map = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordInteractionMetadata // dev.kord.common.entity/DiscordInteractionMetadata.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.DiscordUser;kotlin.collections.Map;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional){}[0] + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordInteractionMetadata.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordInteractionMetadata.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.common.entity/DiscordInteractionMetadata.toString|toString(){}[0] + + final object $serializer : kotlinx.serialization.internal/GeneratedSerializer { // dev.kord.common.entity/DiscordInteractionMetadata.$serializer|null[0] + final val descriptor // dev.kord.common.entity/DiscordInteractionMetadata.$serializer.descriptor|{}descriptor[0] + final fun (): kotlinx.serialization.descriptors/SerialDescriptor // dev.kord.common.entity/DiscordInteractionMetadata.$serializer.descriptor.|(){}[0] + + final fun childSerializers(): kotlin/Array> // dev.kord.common.entity/DiscordInteractionMetadata.$serializer.childSerializers|childSerializers(){}[0] + final fun deserialize(kotlinx.serialization.encoding/Decoder): dev.kord.common.entity/DiscordInteractionMetadata // dev.kord.common.entity/DiscordInteractionMetadata.$serializer.deserialize|deserialize(kotlinx.serialization.encoding.Decoder){}[0] + final fun serialize(kotlinx.serialization.encoding/Encoder, dev.kord.common.entity/DiscordInteractionMetadata) // dev.kord.common.entity/DiscordInteractionMetadata.$serializer.serialize|serialize(kotlinx.serialization.encoding.Encoder;dev.kord.common.entity.DiscordInteractionMetadata){}[0] + } + + final object Companion { // dev.kord.common.entity/DiscordInteractionMetadata.Companion|null[0] + final val $childSerializers // dev.kord.common.entity/DiscordInteractionMetadata.Companion.$childSerializers|{}$childSerializers[0] + + final fun serializer(): kotlinx.serialization/KSerializer // dev.kord.common.entity/DiscordInteractionMetadata.Companion.serializer|serializer(){}[0] + } +} + final class dev.kord.common.entity/DiscordInvite : dev.kord.common.entity/BaseDiscordInvite { // dev.kord.common.entity/DiscordInvite|null[0] constructor (kotlin/String, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/DiscordChannel?, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordInvite.|(kotlin.String;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.DiscordChannel?;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] @@ -3305,7 +3372,7 @@ final class dev.kord.common.entity/DiscordMentionedChannel { // dev.kord.common. } final class dev.kord.common.entity/DiscordMessage { // dev.kord.common.entity/DiscordMessage|null[0] - constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/DiscordUser, dev.kord.common.entity.optional/Optional = ..., kotlin/String, kotlinx.datetime/Instant, kotlinx.datetime/Instant?, kotlin/Boolean, kotlin/Boolean, kotlin.collections/List, kotlin.collections/List, dev.kord.common.entity.optional/Optional> = ..., kotlin.collections/List, kotlin.collections/List, dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/MessageType, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...) // dev.kord.common.entity/DiscordMessage.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.DiscordUser;dev.kord.common.entity.optional.Optional;kotlin.String;kotlinx.datetime.Instant;kotlinx.datetime.Instant?;kotlin.Boolean;kotlin.Boolean;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.MessageType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/DiscordUser, dev.kord.common.entity.optional/Optional = ..., kotlin/String, kotlinx.datetime/Instant, kotlinx.datetime/Instant?, kotlin/Boolean, kotlin/Boolean, kotlin.collections/List, kotlin.collections/List, dev.kord.common.entity.optional/Optional> = ..., kotlin.collections/List, kotlin.collections/List, dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/MessageType, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...) // dev.kord.common.entity/DiscordMessage.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.DiscordUser;dev.kord.common.entity.optional.Optional;kotlin.String;kotlinx.datetime.Instant;kotlinx.datetime.Instant?;kotlin.Boolean;kotlin.Boolean;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.MessageType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] final val activity // dev.kord.common.entity/DiscordMessage.activity|{}activity[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.activity.|(){}[0] @@ -3335,6 +3402,8 @@ final class dev.kord.common.entity/DiscordMessage { // dev.kord.common.entity/Di final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordMessage.id.|(){}[0] final val interaction // dev.kord.common.entity/DiscordMessage.interaction|{}interaction[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.interaction.|(){}[0] + final val interactionMetadata // dev.kord.common.entity/DiscordMessage.interactionMetadata|{}interactionMetadata[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.interactionMetadata.|(){}[0] final val member // dev.kord.common.entity/DiscordMessage.member|{}member[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.member.|(){}[0] final val mentionEveryone // dev.kord.common.entity/DiscordMessage.mentionEveryone|{}mentionEveryone[0] @@ -3395,16 +3464,17 @@ final class dev.kord.common.entity/DiscordMessage { // dev.kord.common.entity/Di final fun component28(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.component28|component28(){}[0] final fun component29(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordMessage.component29|component29(){}[0] final fun component3(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordMessage.component3|component3(){}[0] - final fun component30(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.component30|component30(){}[0] - final fun component31(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.component31|component31(){}[0] - final fun component32(): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordMessage.component32|component32(){}[0] + final fun component30(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.component30|component30(){}[0] + final fun component31(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.component31|component31(){}[0] + final fun component32(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.component32|component32(){}[0] + final fun component33(): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordMessage.component33|component33(){}[0] final fun component4(): dev.kord.common.entity/DiscordUser // dev.kord.common.entity/DiscordMessage.component4|component4(){}[0] final fun component5(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordMessage.component5|component5(){}[0] final fun component6(): kotlin/String // dev.kord.common.entity/DiscordMessage.component6|component6(){}[0] final fun component7(): kotlinx.datetime/Instant // dev.kord.common.entity/DiscordMessage.component7|component7(){}[0] final fun component8(): kotlinx.datetime/Instant? // dev.kord.common.entity/DiscordMessage.component8|component8(){}[0] final fun component9(): kotlin/Boolean // dev.kord.common.entity/DiscordMessage.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/DiscordUser = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., kotlinx.datetime/Instant = ..., kotlinx.datetime/Instant? = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., kotlin.collections/List = ..., kotlin.collections/List = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin.collections/List = ..., kotlin.collections/List = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/MessageType = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...): dev.kord.common.entity/DiscordMessage // dev.kord.common.entity/DiscordMessage.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.DiscordUser;dev.kord.common.entity.optional.Optional;kotlin.String;kotlinx.datetime.Instant;kotlinx.datetime.Instant?;kotlin.Boolean;kotlin.Boolean;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.MessageType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/DiscordUser = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., kotlinx.datetime/Instant = ..., kotlinx.datetime/Instant? = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., kotlin.collections/List = ..., kotlin.collections/List = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin.collections/List = ..., kotlin.collections/List = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/MessageType = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...): dev.kord.common.entity/DiscordMessage // dev.kord.common.entity/DiscordMessage.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.DiscordUser;dev.kord.common.entity.optional.Optional;kotlin.String;kotlinx.datetime.Instant;kotlinx.datetime.Instant?;kotlin.Boolean;kotlin.Boolean;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.MessageType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordMessage.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordMessage.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.common.entity/DiscordMessage.toString|toString(){}[0] @@ -4001,7 +4071,7 @@ final class dev.kord.common.entity/DiscordPartialInvite { // dev.kord.common.ent } final class dev.kord.common.entity/DiscordPartialMessage { // dev.kord.common.entity/DiscordPartialMessage|null[0] - constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...) // dev.kord.common.entity/DiscordPartialMessage.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...) // dev.kord.common.entity/DiscordPartialMessage.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] final val activity // dev.kord.common.entity/DiscordPartialMessage.activity|{}activity[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.activity.|(){}[0] @@ -4027,6 +4097,8 @@ final class dev.kord.common.entity/DiscordPartialMessage { // dev.kord.common.en final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordPartialMessage.id.|(){}[0] final val interaction // dev.kord.common.entity/DiscordPartialMessage.interaction|{}interaction[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.interaction.|(){}[0] + final val interactionMetadata // dev.kord.common.entity/DiscordPartialMessage.interactionMetadata|{}interactionMetadata[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.interactionMetadata.|(){}[0] final val member // dev.kord.common.entity/DiscordPartialMessage.member|{}member[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.member.|(){}[0] final val mentionEveryone // dev.kord.common.entity/DiscordPartialMessage.mentionEveryone|{}mentionEveryone[0] @@ -4079,8 +4151,9 @@ final class dev.kord.common.entity/DiscordPartialMessage { // dev.kord.common.en final fun component24(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component24|component24(){}[0] final fun component25(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordPartialMessage.component25|component25(){}[0] final fun component26(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component26|component26(){}[0] - final fun component27(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component27|component27(){}[0] - final fun component28(): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordPartialMessage.component28|component28(){}[0] + final fun component27(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component27|component27(){}[0] + final fun component28(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component28|component28(){}[0] + final fun component29(): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordPartialMessage.component29|component29(){}[0] final fun component3(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordPartialMessage.component3|component3(){}[0] final fun component4(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component4|component4(){}[0] final fun component5(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component5|component5(){}[0] @@ -4088,7 +4161,7 @@ final class dev.kord.common.entity/DiscordPartialMessage { // dev.kord.common.en final fun component7(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component7|component7(){}[0] final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordPartialMessage.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.common.entity/DiscordPartialMessage.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...): dev.kord.common.entity/DiscordPartialMessage // dev.kord.common.entity/DiscordPartialMessage.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...): dev.kord.common.entity/DiscordPartialMessage // dev.kord.common.entity/DiscordPartialMessage.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordPartialMessage.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordPartialMessage.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.common.entity/DiscordPartialMessage.toString|toString(){}[0] @@ -7128,6 +7201,31 @@ sealed class dev.kord.common.entity/ApplicationFlag { // dev.kord.common.entity/ final object VerificationPendingGuildLimit : dev.kord.common.entity/ApplicationFlag // dev.kord.common.entity/ApplicationFlag.VerificationPendingGuildLimit|null[0] } +sealed class dev.kord.common.entity/ApplicationIntegrationType { // dev.kord.common.entity/ApplicationIntegrationType|null[0] + constructor (kotlin/Int) // dev.kord.common.entity/ApplicationIntegrationType.|(kotlin.Int){}[0] + + final val value // dev.kord.common.entity/ApplicationIntegrationType.value|{}value[0] + final fun (): kotlin/Int // dev.kord.common.entity/ApplicationIntegrationType.value.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/ApplicationIntegrationType.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.common.entity/ApplicationIntegrationType.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.common.entity/ApplicationIntegrationType.toString|toString(){}[0] + + final class Unknown : dev.kord.common.entity/ApplicationIntegrationType // dev.kord.common.entity/ApplicationIntegrationType.Unknown|null[0] + + final object Companion { // dev.kord.common.entity/ApplicationIntegrationType.Companion|null[0] + final val entries // dev.kord.common.entity/ApplicationIntegrationType.Companion.entries|{}entries[0] + final fun (): kotlin.collections/List // dev.kord.common.entity/ApplicationIntegrationType.Companion.entries.|(){}[0] + + final fun from(kotlin/Int): dev.kord.common.entity/ApplicationIntegrationType // dev.kord.common.entity/ApplicationIntegrationType.Companion.from|from(kotlin.Int){}[0] + final fun serializer(): kotlinx.serialization/KSerializer // dev.kord.common.entity/ApplicationIntegrationType.Companion.serializer|serializer(){}[0] + } + + final object GuildInstall : dev.kord.common.entity/ApplicationIntegrationType // dev.kord.common.entity/ApplicationIntegrationType.GuildInstall|null[0] + + final object UserInstall : dev.kord.common.entity/ApplicationIntegrationType // dev.kord.common.entity/ApplicationIntegrationType.UserInstall|null[0] +} + sealed class dev.kord.common.entity/ApplicationRoleConnectionMetadataType { // dev.kord.common.entity/ApplicationRoleConnectionMetadataType|null[0] constructor (kotlin/Int) // dev.kord.common.entity/ApplicationRoleConnectionMetadataType.|(kotlin.Int){}[0] @@ -8042,6 +8140,33 @@ sealed class dev.kord.common.entity/IntegrationExpireBehavior { // dev.kord.comm final object RemoveRole : dev.kord.common.entity/IntegrationExpireBehavior // dev.kord.common.entity/IntegrationExpireBehavior.RemoveRole|null[0] } +sealed class dev.kord.common.entity/InteractionContextType { // dev.kord.common.entity/InteractionContextType|null[0] + constructor (kotlin/Int) // dev.kord.common.entity/InteractionContextType.|(kotlin.Int){}[0] + + final val value // dev.kord.common.entity/InteractionContextType.value|{}value[0] + final fun (): kotlin/Int // dev.kord.common.entity/InteractionContextType.value.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/InteractionContextType.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.common.entity/InteractionContextType.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.common.entity/InteractionContextType.toString|toString(){}[0] + + final class Unknown : dev.kord.common.entity/InteractionContextType // dev.kord.common.entity/InteractionContextType.Unknown|null[0] + + final object BotDM : dev.kord.common.entity/InteractionContextType // dev.kord.common.entity/InteractionContextType.BotDM|null[0] + + final object Companion { // dev.kord.common.entity/InteractionContextType.Companion|null[0] + final val entries // dev.kord.common.entity/InteractionContextType.Companion.entries|{}entries[0] + final fun (): kotlin.collections/List // dev.kord.common.entity/InteractionContextType.Companion.entries.|(){}[0] + + final fun from(kotlin/Int): dev.kord.common.entity/InteractionContextType // dev.kord.common.entity/InteractionContextType.Companion.from|from(kotlin.Int){}[0] + final fun serializer(): kotlinx.serialization/KSerializer // dev.kord.common.entity/InteractionContextType.Companion.serializer|serializer(){}[0] + } + + final object Guild : dev.kord.common.entity/InteractionContextType // dev.kord.common.entity/InteractionContextType.Guild|null[0] + + final object PrivateChannel : dev.kord.common.entity/InteractionContextType // dev.kord.common.entity/InteractionContextType.PrivateChannel|null[0] +} + sealed class dev.kord.common.entity/InteractionResponseType { // dev.kord.common.entity/InteractionResponseType|null[0] constructor (kotlin/Int) // dev.kord.common.entity/InteractionResponseType.|(kotlin.Int){}[0] @@ -8557,6 +8682,8 @@ sealed class dev.kord.common.entity/Permission { // dev.kord.common.entity/Permi final object Stream : dev.kord.common.entity/Permission // dev.kord.common.entity/Permission.Stream|null[0] + final object USE_EXTERNAL_APPS : dev.kord.common.entity/Permission // dev.kord.common.entity/Permission.USE_EXTERNAL_APPS|null[0] + final object UseApplicationCommands : dev.kord.common.entity/Permission // dev.kord.common.entity/Permission.UseApplicationCommands|null[0] final object UseEmbeddedActivities : dev.kord.common.entity/Permission // dev.kord.common.entity/Permission.UseEmbeddedActivities|null[0] diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationIntegrationType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationIntegrationType.kt new file mode 100644 index 00000000000..12c5f733890 --- /dev/null +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationIntegrationType.kt @@ -0,0 +1,90 @@ +// THIS FILE IS AUTO-GENERATED, DO NOT EDIT! +@file:Suppress(names = arrayOf("IncorrectFormatting", "ReplaceArrayOfWithLiteral", + "SpellCheckingInspection", "GrazieInspection")) + +package dev.kord.common.entity + +import kotlin.LazyThreadSafetyMode.PUBLICATION +import kotlinx.serialization.KSerializer +import kotlinx.serialization.Serializable +import kotlinx.serialization.descriptors.PrimitiveKind +import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor +import kotlinx.serialization.descriptors.SerialDescriptor +import kotlinx.serialization.encoding.Decoder +import kotlinx.serialization.encoding.Encoder + +/** + * Where an app can be installed, also called its supported installation contexts + * + * See [ApplicationIntegrationType]s in the + * [Discord Developer Documentation](https://discord.com/developers/docs/resources/application#application-object-application-integration-types). + */ +@Serializable(with = ApplicationIntegrationType.Serializer::class) +public sealed class ApplicationIntegrationType( + /** + * The raw value used by Discord. + */ + public val `value`: Int, +) { + final override fun equals(other: Any?): Boolean = this === other || + (other is ApplicationIntegrationType && this.value == other.value) + + final override fun hashCode(): Int = value.hashCode() + + final override fun toString(): String = + if (this is Unknown) "ApplicationIntegrationType.Unknown(value=$value)" + else "ApplicationIntegrationType.${this::class.simpleName}" + + /** + * An unknown [ApplicationIntegrationType]. + * + * This is used as a fallback for [ApplicationIntegrationType]s that haven't been added to Kord + * yet. + */ + public class Unknown internal constructor( + `value`: Int, + ) : ApplicationIntegrationType(value) + + /** + * App is installable to servers + */ + public object GuildInstall : ApplicationIntegrationType(0) + + /** + * App is installable to users + */ + public object UserInstall : ApplicationIntegrationType(0) + + internal object Serializer : KSerializer { + override val descriptor: SerialDescriptor = + PrimitiveSerialDescriptor("dev.kord.common.entity.ApplicationIntegrationType", + PrimitiveKind.INT) + + override fun serialize(encoder: Encoder, `value`: ApplicationIntegrationType) { + encoder.encodeInt(value.value) + } + + override fun deserialize(decoder: Decoder): ApplicationIntegrationType = + from(decoder.decodeInt()) + } + + public companion object { + /** + * A [List] of all known [ApplicationIntegrationType]s. + */ + public val entries: List by lazy(mode = PUBLICATION) { + listOf( + GuildInstall, + ) + } + + /** + * Returns an instance of [ApplicationIntegrationType] with + * [ApplicationIntegrationType.value] equal to the specified [value]. + */ + public fun from(`value`: Int): ApplicationIntegrationType = when (value) { + 0 -> GuildInstall + else -> Unknown(value) + } + } +} diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionContextType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionContextType.kt new file mode 100644 index 00000000000..2460ea86bb5 --- /dev/null +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionContextType.kt @@ -0,0 +1,98 @@ +// THIS FILE IS AUTO-GENERATED, DO NOT EDIT! +@file:Suppress(names = arrayOf("IncorrectFormatting", "ReplaceArrayOfWithLiteral", + "SpellCheckingInspection", "GrazieInspection")) + +package dev.kord.common.entity + +import kotlin.LazyThreadSafetyMode.PUBLICATION +import kotlinx.serialization.KSerializer +import kotlinx.serialization.Serializable +import kotlinx.serialization.descriptors.PrimitiveKind +import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor +import kotlinx.serialization.descriptors.SerialDescriptor +import kotlinx.serialization.encoding.Decoder +import kotlinx.serialization.encoding.Encoder + +/** + * Context in Discord where an interaction can be used, or where it was triggered from. + * + * See [InteractionContextType]s in the + * [Discord Developer Documentation](https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-context-types). + */ +@Serializable(with = InteractionContextType.Serializer::class) +public sealed class InteractionContextType( + /** + * The raw value used by Discord. + */ + public val `value`: Int, +) { + final override fun equals(other: Any?): Boolean = this === other || + (other is InteractionContextType && this.value == other.value) + + final override fun hashCode(): Int = value.hashCode() + + final override fun toString(): String = + if (this is Unknown) "InteractionContextType.Unknown(value=$value)" + else "InteractionContextType.${this::class.simpleName}" + + /** + * An unknown [InteractionContextType]. + * + * This is used as a fallback for [InteractionContextType]s that haven't been added to Kord yet. + */ + public class Unknown internal constructor( + `value`: Int, + ) : InteractionContextType(value) + + /** + * Interaction can be used within servers + */ + public object Guild : InteractionContextType(0) + + /** + * Interaction can be used within DMs with the app's bot user + */ + public object BotDM : InteractionContextType(1) + + /** + * Interaction can be used within Group DMs and DMs other than the app's bot user + */ + public object PrivateChannel : InteractionContextType(2) + + internal object Serializer : KSerializer { + override val descriptor: SerialDescriptor = + PrimitiveSerialDescriptor("dev.kord.common.entity.InteractionContextType", + PrimitiveKind.INT) + + override fun serialize(encoder: Encoder, `value`: InteractionContextType) { + encoder.encodeInt(value.value) + } + + override fun deserialize(decoder: Decoder): InteractionContextType = + from(decoder.decodeInt()) + } + + public companion object { + /** + * A [List] of all known [InteractionContextType]s. + */ + public val entries: List by lazy(mode = PUBLICATION) { + listOf( + Guild, + BotDM, + PrivateChannel, + ) + } + + /** + * Returns an instance of [InteractionContextType] with [InteractionContextType.value] equal + * to the specified [value]. + */ + public fun from(`value`: Int): InteractionContextType = when (value) { + 0 -> Guild + 1 -> BotDM + 2 -> PrivateChannel + else -> Unknown(value) + } + } +} diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/Permission.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/Permission.kt index 6f76d846002..c614fb151e5 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/Permission.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/Permission.kt @@ -312,6 +312,13 @@ public sealed class Permission( */ public object SendVoiceMessages : Permission(46) + /** + * Allows user-installed apps to send public responses. When disabled, users will still be + * allowed to use their apps but the responses will be ephemeral. This only applies to apps not + * also installed to the server. + */ + public object USE_EXTERNAL_APPS : Permission(50) + public companion object { /** * A [List] of all known [Permission]s. @@ -365,6 +372,7 @@ public sealed class Permission( CreateEvents, UseExternalSounds, SendVoiceMessages, + USE_EXTERNAL_APPS, ) } @@ -422,6 +430,7 @@ public sealed class Permission( 44 -> CreateEvents 45 -> UseExternalSounds 46 -> SendVoiceMessages + 50 -> USE_EXTERNAL_APPS else -> Unknown(shift) } } diff --git a/common/src/commonMain/kotlin/entity/DiscordApplication.kt b/common/src/commonMain/kotlin/entity/DiscordApplication.kt index c0858c20956..b0eadb7a88f 100644 --- a/common/src/commonMain/kotlin/entity/DiscordApplication.kt +++ b/common/src/commonMain/kotlin/entity/DiscordApplication.kt @@ -101,6 +101,7 @@ public data class DiscordApplication( val botPublic: Boolean, @SerialName("bot_require_code_grant") val botRequireCodeGrant: Boolean, + val bot: Optional = Optional.Missing(), @SerialName("terms_of_service_url") override val termsOfServiceUrl: Optional = Optional.Missing(), @SerialName("privacy_policy_url") @@ -111,6 +112,7 @@ public data class DiscordApplication( val team: DiscordTeam?, @SerialName("guild_id") override val guildId: OptionalSnowflake = OptionalSnowflake.Missing, + val guild: Optional = Optional.Missing(), @SerialName("primary_sku_id") override val primarySkuId: OptionalSnowflake = OptionalSnowflake.Missing, override val slug: Optional = Optional.Missing(), @@ -120,6 +122,8 @@ public data class DiscordApplication( override val tags: Optional> = Optional.Missing(), @SerialName("install_params") override val installParams: Optional = Optional.Missing(), + @SerialName("integration_types_config") + val integrationTypesConfig: Optional> = Optional.Missing(), @SerialName("custom_install_url") override val customInstallUrl: Optional = Optional.Missing(), @SerialName("role_connections_verification_url") diff --git a/common/src/commonMain/kotlin/entity/DiscordIntegration.kt b/common/src/commonMain/kotlin/entity/DiscordIntegration.kt index ac89a904c5b..606926cf71f 100644 --- a/common/src/commonMain/kotlin/entity/DiscordIntegration.kt +++ b/common/src/commonMain/kotlin/entity/DiscordIntegration.kt @@ -7,6 +7,16 @@ ], ) +@file:Generate( + INT_KORD_ENUM, name = "ApplicationIntegrationType", + docUrl = "https://discord.com/developers/docs/resources/application#application-object-application-integration-types", + kDoc = "Where an app can be installed, also called its supported installation contexts", + entries = [ + Entry("GuildInstall", intValue = 0, kDoc = "App is installable to servers"), + Entry("UserInstall", intValue = 0, kDoc = "App is installable to users"), + ], +) + package dev.kord.common.entity import dev.kord.common.entity.optional.Optional @@ -27,7 +37,6 @@ public data class DiscordIntegration( val name: String, val type: String, val enabled: Boolean, - val syncing: OptionalBoolean = OptionalBoolean.Missing, @SerialName("role_id") val roleId: OptionalSnowflake = OptionalSnowflake.Missing, @SerialName("enable_emoticons") diff --git a/common/src/commonMain/kotlin/entity/DiscordMessage.kt b/common/src/commonMain/kotlin/entity/DiscordMessage.kt index 6cd1a5bc853..502c968c4ee 100644 --- a/common/src/commonMain/kotlin/entity/DiscordMessage.kt +++ b/common/src/commonMain/kotlin/entity/DiscordMessage.kt @@ -234,11 +234,39 @@ public data class DiscordMessage( * This is a list even though the docs say it's a component */ val components: Optional> = Optional.Missing(), + val interactionMetadata: Optional = Optional.Missing(), + @Deprecated("Deprecated in favor of interactionMetadata", ReplaceWith("interactionMetadata")) val interaction: Optional = Optional.Missing(), val thread: Optional = Optional.Missing(), val position: OptionalInt = OptionalInt.Missing ) +/** + * Metadata about the interaction, including the source of the interaction and relevant server and user IDs. + * + * @property id The ID of the interaction. + * @property type The type of the interaction. + * @property user The user associated with the interaction. + * @property authorizingIntegrationOwners IDs for installation context(s) related to an interaction + * @property originalResponseMessageId ID of the original response message, present only on follow-up messages + * @property interactedMessageId ID of the message that contained interactive component, present only on messages created from component interactions + * @property triggeringInteractionMetadata Metadata for the interaction that was used to open the modal, present only on modal submit interactions + */ +@Serializable +public data class DiscordInteractionMetadata( + val id: Snowflake, + val type: InteractionType, + val user: DiscordUser, + @SerialName("authorizing_integration_owners") + val authorizingIntegrationOwners: IntegrationOwners, + @SerialName("original_response_message_id") + val originalResponseMessageId: OptionalSnowflake = OptionalSnowflake.Missing, + @SerialName("interacted_message_id") + val interactedMessageId: OptionalSnowflake = OptionalSnowflake.Missing, + @SerialName("triggering_interaction_metadata") + val triggeringInteractionMetadata: Optional = Optional.Missing() +) + /** * @param id id of the sticker * @param packId id of the pack the sticker is from @@ -370,6 +398,8 @@ public data class DiscordPartialMessage( val stickers: Optional> = Optional.Missing(), @SerialName("referenced_message") val referencedMessage: Optional = Optional.Missing(), + val interactionMetadata: Optional = Optional.Missing(), + @Deprecated("Deprecated in favor of interactionMetadata") val interaction: Optional = Optional.Missing(), val position: OptionalInt = OptionalInt.Missing, ) diff --git a/common/src/commonMain/kotlin/entity/Interactions.kt b/common/src/commonMain/kotlin/entity/Interactions.kt index 906562bdc80..2a48e7e835a 100644 --- a/common/src/commonMain/kotlin/entity/Interactions.kt +++ b/common/src/commonMain/kotlin/entity/Interactions.kt @@ -54,7 +54,7 @@ Entry( "DeferredUpdateMessage", intValue = 6, kDoc = "For components, ACK an interaction and edit the original message later; the user does not see a " + - "loading state.", + "loading state.", ), Entry("UpdateMessage", intValue = 7, kDoc = "For components, edit the message the component was attached to."), Entry( @@ -75,6 +75,21 @@ ], ) +@file:Generate( + INT_KORD_ENUM, name = "InteractionContextType", + docUrl = "https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-context-types", + kDoc = "Context in Discord where an interaction can be used, or where it was triggered from.", + entries = [ + Entry("Guild", intValue = 0, kDoc = "Interaction can be used within servers"), + Entry("BotDM", intValue = 1, kDoc = "Interaction can be used within DMs with the app's bot user"), + Entry( + "PrivateChannel", + intValue = 2, + kDoc = "Interaction can be used within Group DMs and DMs other than the app's bot user\n" + ), + ] +) + package dev.kord.common.entity import dev.kord.common.Locale @@ -92,6 +107,8 @@ import kotlinx.serialization.descriptors.buildClassSerialDescriptor import kotlinx.serialization.encoding.* import kotlinx.serialization.json.* +public typealias IntegrationOwners = Map + @Serializable public data class DiscordApplicationCommand( val id: Snowflake, @@ -118,6 +135,9 @@ public data class DiscordApplicationCommand( @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'.") val defaultPermission: OptionalBoolean? = OptionalBoolean.Missing, val nsfw: OptionalBoolean = OptionalBoolean.Missing, + @SerialName("integration_types") + val integrationTypes: Optional> = Optional.Missing(), + val contexts: Optional> = Optional.Missing(), val version: Snowflake ) @@ -246,6 +266,7 @@ public data class DiscordInteraction( val data: InteractionCallbackData, @SerialName("guild_id") val guildId: OptionalSnowflake = OptionalSnowflake.Missing, + val guild: Optional = Optional.Missing(), val channel: Optional = Optional.Missing(), @SerialName("channel_id") val channelId: OptionalSnowflake = OptionalSnowflake.Missing, @@ -256,10 +277,13 @@ public data class DiscordInteraction( @Serializable(with = MaybeMessageSerializer::class) val message: Optional = Optional.Missing(), @SerialName("app_permissions") - val appPermissions: Optional = Optional.Missing(), + val appPermissions: Permissions, val locale: Optional = Optional.Missing(), @SerialName("guild_locale") val guildLocale: Optional = Optional.Missing(), + @SerialName("authorizing_integration_owners") + val authorizingIntegrationOwners: IntegrationOwners, + val context: Optional = Optional.Missing() ) { /** @@ -291,7 +315,6 @@ public data class DiscordInteraction( } } - @Serializable public data class InteractionCallbackData( val id: OptionalSnowflake = OptionalSnowflake.Missing, @@ -343,8 +366,10 @@ public sealed class Option { 2 -> jsonOptions = decodeSerializableElement(descriptor, index, JsonArray.serializer()) 3 -> type = decodeSerializableElement(descriptor, index, ApplicationCommandOptionType.serializer()) + 4 -> focused = decodeSerializableElement(descriptor, index, OptionalBoolean.serializer()) + CompositeDecoder.DECODE_DONE -> return@decodeStructure else -> throw SerializationException("unknown index: $index") } @@ -371,6 +396,7 @@ public sealed class Option { CommandGroup(name, options) } + ApplicationCommandOptionType.Boolean, ApplicationCommandOptionType.Channel, ApplicationCommandOptionType.Integer, @@ -382,6 +408,7 @@ public sealed class Option { ApplicationCommandOptionType.User -> CommandArgument.Serializer.deserialize( json, jsonValue!!, name, type!!, focused ) + is ApplicationCommandOptionType.Unknown -> error("unknown ApplicationCommandOptionType $type") } } @@ -401,6 +428,7 @@ public sealed class Option { descriptor, 3, ApplicationCommandOptionType.serializer(), value.type ) } + is SubCommand -> encoder.encodeStructure(descriptor) { encodeSerializableElement( descriptor, 0, String.serializer(), value.name @@ -550,24 +578,28 @@ public sealed class CommandArgument : Option() { Snowflake.serializer(), value.value ) + is RoleArgument -> encodeSerializableElement( descriptor, 1, Snowflake.serializer(), value.value ) + is MentionableArgument -> encodeSerializableElement( descriptor, 1, Snowflake.serializer(), value.value ) + is UserArgument -> encodeSerializableElement( descriptor, 1, Snowflake.serializer(), value.value ) + is IntegerArgument -> encodeLongElement(descriptor, 1, value.value) is NumberArgument -> encodeDoubleElement(descriptor, 1, value.value) is AttachmentArgument -> encodeSerializableElement( @@ -576,6 +608,7 @@ public sealed class CommandArgument : Option() { Snowflake.serializer(), value.value ) + is AutoCompleteArgument, is StringArgument -> encodeStringElement( descriptor, 1, @@ -603,9 +636,11 @@ public sealed class CommandArgument : Option() { ApplicationCommandOptionType.Boolean -> BooleanArgument( name, json.decodeFromJsonElement(Boolean.serializer(), element), focused ) + ApplicationCommandOptionType.String -> StringArgument( name, json.decodeFromJsonElement(String.serializer(), element), focused ) + ApplicationCommandOptionType.Integer -> IntegerArgument( name, json.decodeFromJsonElement(Long.serializer(), element), focused ) @@ -613,21 +648,27 @@ public sealed class CommandArgument : Option() { ApplicationCommandOptionType.Number -> NumberArgument( name, json.decodeFromJsonElement(Double.serializer(), element), focused ) + ApplicationCommandOptionType.Channel -> ChannelArgument( name, json.decodeFromJsonElement(Snowflake.serializer(), element), focused ) + ApplicationCommandOptionType.Mentionable -> MentionableArgument( name, json.decodeFromJsonElement(Snowflake.serializer(), element), focused ) + ApplicationCommandOptionType.Role -> RoleArgument( name, json.decodeFromJsonElement(Snowflake.serializer(), element), focused ) + ApplicationCommandOptionType.User -> UserArgument( name, json.decodeFromJsonElement(Snowflake.serializer(), element), focused ) + ApplicationCommandOptionType.Attachment -> AttachmentArgument( name, json.decodeFromJsonElement(Snowflake.serializer(), element), focused ) + ApplicationCommandOptionType.SubCommand, ApplicationCommandOptionType.SubCommandGroup, is ApplicationCommandOptionType.Unknown -> error("unknown CommandArgument type ${type.type}") diff --git a/common/src/commonMain/kotlin/entity/Permissions.kt b/common/src/commonMain/kotlin/entity/Permissions.kt index 8a6e3cefc2f..56fd3e92769 100644 --- a/common/src/commonMain/kotlin/entity/Permissions.kt +++ b/common/src/commonMain/kotlin/entity/Permissions.kt @@ -96,6 +96,11 @@ kDoc = "Allows the usage of custom soundboard sounds from other servers." ), Entry("SendVoiceMessages", shift = 46, kDoc = "Allows sending voice messages."), + Entry( + "USE_EXTERNAL_APPS", + shift = 50, + kDoc = "Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server." + ) ], ) diff --git a/core/api/core.api b/core/api/core.api index 19c163b67c2..c2bb7ee6b78 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -2560,22 +2560,25 @@ public final class dev/kord/core/cache/data/ApplicationCommandSubcommandData$Com public final class dev/kord/core/cache/data/ApplicationData : dev/kord/core/cache/data/BaseApplicationData { public static final field Companion Ldev/kord/core/cache/data/ApplicationData$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ljava/lang/String;Ldev/kord/core/cache/data/TeamData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ljava/lang/String;Ldev/kord/core/cache/data/TeamData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ljava/lang/String;Ldev/kord/core/cache/data/TeamData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ljava/lang/String;Ldev/kord/core/cache/data/TeamData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; - public final fun component10 ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final fun component11 ()Ljava/lang/String; - public final fun component12 ()Ldev/kord/core/cache/data/TeamData; - public final fun component13 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component10 ()Ldev/kord/common/entity/optional/Optional; + public final fun component11 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component12 ()Ljava/lang/String; + public final fun component13 ()Ldev/kord/core/cache/data/TeamData; public final fun component14 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component15 ()Ldev/kord/common/entity/optional/Optional; - public final fun component16 ()Ldev/kord/common/entity/optional/Optional; + public final fun component16 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component17 ()Ldev/kord/common/entity/optional/Optional; public final fun component18 ()Ldev/kord/common/entity/optional/Optional; public final fun component19 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ljava/lang/String; public final fun component20 ()Ldev/kord/common/entity/optional/Optional; public final fun component21 ()Ldev/kord/common/entity/optional/Optional; + public final fun component22 ()Ldev/kord/common/entity/optional/Optional; + public final fun component23 ()Ldev/kord/common/entity/optional/Optional; + public final fun component24 ()Ldev/kord/common/entity/optional/Optional; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ljava/lang/String; public final fun component5 ()Ldev/kord/common/entity/optional/Optional; @@ -2583,19 +2586,22 @@ public final class dev/kord/core/cache/data/ApplicationData : dev/kord/core/cach public final fun component7 ()Z public final fun component8 ()Ldev/kord/common/entity/optional/Optional; public final fun component9 ()Ldev/kord/common/entity/optional/Optional; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ljava/lang/String;Ldev/kord/core/cache/data/TeamData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/core/cache/data/ApplicationData; - public static synthetic fun copy$default (Ldev/kord/core/cache/data/ApplicationData;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ljava/lang/String;Ldev/kord/core/cache/data/TeamData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/core/cache/data/ApplicationData; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ljava/lang/String;Ldev/kord/core/cache/data/TeamData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/core/cache/data/ApplicationData; + public static synthetic fun copy$default (Ldev/kord/core/cache/data/ApplicationData;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ljava/lang/String;Ldev/kord/core/cache/data/TeamData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/core/cache/data/ApplicationData; public fun equals (Ljava/lang/Object;)Z + public final fun getBot ()Ldev/kord/common/entity/optional/Optional; public final fun getBotPublic ()Z public final fun getBotRequireCodeGrant ()Z public fun getCoverImage ()Ldev/kord/common/entity/optional/Optional; public fun getCustomInstallUrl ()Ldev/kord/common/entity/optional/Optional; public fun getDescription ()Ljava/lang/String; public fun getFlags ()Ldev/kord/common/entity/optional/Optional; + public final fun getGuild ()Ldev/kord/common/entity/optional/Optional; public fun getGuildId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public fun getIcon ()Ljava/lang/String; public fun getId ()Ldev/kord/common/entity/Snowflake; public fun getInstallParams ()Ldev/kord/common/entity/optional/Optional; + public final fun getIntegrationTypesConfig ()Ldev/kord/common/entity/optional/Optional; public fun getName ()Ljava/lang/String; public fun getOwnerId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public fun getPrimarySkuId ()Ldev/kord/common/entity/optional/OptionalSnowflake; @@ -3819,26 +3825,25 @@ public final class dev/kord/core/cache/data/GuildWidgetData$Companion { public final class dev/kord/core/cache/data/IntegrationData { public static final field Companion Ldev/kord/core/cache/data/IntegrationData$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/core/cache/data/IntegrationsAccountData;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/core/cache/data/IntegrationsAccountData;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/core/cache/data/IntegrationsAccountData;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/core/cache/data/IntegrationsAccountData;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; public final fun component10 ()Ldev/kord/common/entity/optional/Optional; - public final fun component11 ()Ldev/kord/common/entity/optional/Optional; - public final fun component12 ()Ldev/kord/core/cache/data/IntegrationsAccountData; - public final fun component13 ()Ldev/kord/common/entity/optional/Optional; - public final fun component14 ()Ldev/kord/common/entity/optional/OptionalInt; - public final fun component15 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun component16 ()Ldev/kord/common/entity/optional/Optional; + public final fun component11 ()Ldev/kord/core/cache/data/IntegrationsAccountData; + public final fun component12 ()Ldev/kord/common/entity/optional/Optional; + public final fun component13 ()Ldev/kord/common/entity/optional/OptionalInt; + public final fun component14 ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun component15 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ldev/kord/common/entity/Snowflake; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ljava/lang/String; public final fun component5 ()Z - public final fun component6 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun component7 ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final fun component8 ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun component6 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component7 ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun component8 ()Ldev/kord/common/entity/optional/Optional; public final fun component9 ()Ldev/kord/common/entity/optional/Optional; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/core/cache/data/IntegrationsAccountData;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/core/cache/data/IntegrationData; - public static synthetic fun copy$default (Ldev/kord/core/cache/data/IntegrationData;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/core/cache/data/IntegrationsAccountData;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/core/cache/data/IntegrationData; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/core/cache/data/IntegrationsAccountData;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/core/cache/data/IntegrationData; + public static synthetic fun copy$default (Ldev/kord/core/cache/data/IntegrationData;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/core/cache/data/IntegrationsAccountData;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/core/cache/data/IntegrationData; public fun equals (Ljava/lang/Object;)Z public final fun getAccount ()Ldev/kord/core/cache/data/IntegrationsAccountData; public final fun getApplication ()Ldev/kord/common/entity/optional/Optional; @@ -3853,7 +3858,6 @@ public final class dev/kord/core/cache/data/IntegrationData { public final fun getRoleId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getSubscriberCount ()Ldev/kord/common/entity/optional/OptionalInt; public final fun getSyncedAt ()Ldev/kord/common/entity/optional/Optional; - public final fun getSyncing ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getType ()Ljava/lang/String; public final fun getUser ()Ldev/kord/common/entity/optional/Optional; public fun hashCode ()I @@ -3908,16 +3912,18 @@ public final class dev/kord/core/cache/data/IntegrationsAccountData$Companion { public final class dev/kord/core/cache/data/InteractionData { public static final field Companion Ldev/kord/core/cache/data/InteractionData$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/ApplicationInteractionData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/ApplicationInteractionData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/ApplicationInteractionData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/Map;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/ApplicationInteractionData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/Map;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; public final fun component10 ()Ljava/lang/String; public final fun component11 ()Ldev/kord/common/entity/optional/Optional; public final fun component12 ()I public final fun component13 ()Ldev/kord/common/entity/optional/Optional; - public final fun component14 ()Ldev/kord/common/entity/optional/Optional; + public final fun component14 ()Ldev/kord/common/entity/Permissions; public final fun component15 ()Ldev/kord/common/entity/optional/Optional; public final fun component16 ()Ldev/kord/common/entity/optional/Optional; + public final fun component17 ()Ljava/util/Map; + public final fun component18 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ldev/kord/common/entity/Snowflake; public final fun component3 ()Ldev/kord/common/entity/InteractionType; public final fun component4 ()Ldev/kord/core/cache/data/ApplicationInteractionData; @@ -3926,13 +3932,15 @@ public final class dev/kord/core/cache/data/InteractionData { public final fun component7 ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun component8 ()Ldev/kord/common/entity/optional/Optional; public final fun component9 ()Ldev/kord/common/entity/optional/Optional; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/ApplicationInteractionData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/core/cache/data/InteractionData; - public static synthetic fun copy$default (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/ApplicationInteractionData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/core/cache/data/InteractionData; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/ApplicationInteractionData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/Map;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/core/cache/data/InteractionData; + public static synthetic fun copy$default (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/ApplicationInteractionData;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/Map;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/core/cache/data/InteractionData; public fun equals (Ljava/lang/Object;)Z - public final fun getAppPermissions ()Ldev/kord/common/entity/optional/Optional; + public final fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public final fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public final fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public final fun getChannel ()Ldev/kord/common/entity/optional/Optional; public final fun getChannelId ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun getContext ()Ldev/kord/common/entity/optional/Optional; public final fun getData ()Ldev/kord/core/cache/data/ApplicationInteractionData; public final fun getGuildId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getGuildLocale ()Ldev/kord/common/entity/optional/Optional; @@ -3965,6 +3973,47 @@ public final class dev/kord/core/cache/data/InteractionData$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/kord/core/cache/data/InteractionMetadataData { + public static final field Companion Ldev/kord/core/cache/data/InteractionMetadataData$Companion; + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/UserData;Ljava/util/Map;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/UserData;Ljava/util/Map;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/kord/common/entity/Snowflake; + public final fun component2 ()Ldev/kord/common/entity/InteractionType; + public final fun component3 ()Ldev/kord/core/cache/data/UserData; + public final fun component4 ()Ljava/util/Map; + public final fun component5 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component6 ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun component7 ()Ldev/kord/common/entity/optional/Optional; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/UserData;Ljava/util/Map;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/core/cache/data/InteractionMetadataData; + public static synthetic fun copy$default (Ldev/kord/core/cache/data/InteractionMetadataData;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/InteractionType;Ldev/kord/core/cache/data/UserData;Ljava/util/Map;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/core/cache/data/InteractionMetadataData; + public fun equals (Ljava/lang/Object;)Z + public final fun getAuthorizingIntegrationOwners ()Ljava/util/Map; + public final fun getId ()Ldev/kord/common/entity/Snowflake; + public final fun getInteractedMessageId ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun getOriginalResponseMessageId ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final fun getTriggeringInteractionMetadata ()Ldev/kord/common/entity/optional/Optional; + public final fun getType ()Ldev/kord/common/entity/InteractionType; + public final fun getUser ()Ldev/kord/core/cache/data/UserData; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public synthetic class dev/kord/core/cache/data/InteractionMetadataData$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/kord/core/cache/data/InteractionMetadataData$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/kord/core/cache/data/InteractionMetadataData; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/kord/core/cache/data/InteractionMetadataData;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/kord/core/cache/data/InteractionMetadataData$Companion { + public final fun from (Ldev/kord/common/entity/DiscordInteractionMetadata;)Ldev/kord/core/cache/data/InteractionMetadataData; + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + public final class dev/kord/core/cache/data/InviteCreateData { public static final field Companion Ldev/kord/core/cache/data/InviteCreateData$Companion; public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlinx/datetime/Instant;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;JILdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;ZIILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -4260,8 +4309,8 @@ public final class dev/kord/core/cache/data/MembersChunkData$Companion { public final class dev/kord/core/cache/data/MessageData { public static final field Companion Ldev/kord/core/cache/data/MessageData$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/core/cache/data/UserData;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/core/cache/data/UserData;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/core/cache/data/UserData;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/core/cache/data/UserData;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; public final fun component10 ()Ljava/util/List; public final fun component11 ()Ljava/util/List; @@ -4285,15 +4334,16 @@ public final class dev/kord/core/cache/data/MessageData { public final fun component28 ()Ldev/kord/common/entity/optional/Optional; public final fun component29 ()Ldev/kord/common/entity/optional/Optional; public final fun component3 ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final fun component30 ()Ldev/kord/common/entity/optional/OptionalInt; + public final fun component30 ()Ldev/kord/common/entity/optional/Optional; + public final fun component31 ()Ldev/kord/common/entity/optional/OptionalInt; public final fun component4 ()Ldev/kord/core/cache/data/UserData; public final fun component5 ()Ljava/lang/String; public final fun component6 ()Lkotlinx/datetime/Instant; public final fun component7 ()Lkotlinx/datetime/Instant; public final fun component8 ()Z public final fun component9 ()Z - public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/core/cache/data/UserData;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)Ldev/kord/core/cache/data/MessageData; - public static synthetic fun copy$default (Ldev/kord/core/cache/data/MessageData;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/core/cache/data/UserData;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILjava/lang/Object;)Ldev/kord/core/cache/data/MessageData; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/core/cache/data/UserData;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;)Ldev/kord/core/cache/data/MessageData; + public static synthetic fun copy$default (Ldev/kord/core/cache/data/MessageData;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/core/cache/data/UserData;Ljava/lang/String;Lkotlinx/datetime/Instant;Lkotlinx/datetime/Instant;ZZLjava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Ljava/util/List;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ZLdev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/MessageType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;ILjava/lang/Object;)Ldev/kord/core/cache/data/MessageData; public fun equals (Ljava/lang/Object;)Z public final fun getActivity ()Ldev/kord/common/entity/optional/Optional; public final fun getApplication ()Ldev/kord/common/entity/optional/Optional; @@ -4309,6 +4359,7 @@ public final class dev/kord/core/cache/data/MessageData { public final fun getGuildId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getId ()Ldev/kord/common/entity/Snowflake; public final fun getInteraction ()Ldev/kord/common/entity/optional/Optional; + public final fun getInteractionMetadata ()Ldev/kord/common/entity/optional/Optional; public final fun getMentionEveryone ()Z public final fun getMentionRoles ()Ljava/util/List; public final fun getMentionedChannels ()Ldev/kord/common/entity/optional/Optional; @@ -5700,8 +5751,12 @@ public final class dev/kord/core/entity/Activity$Secrets { public final class dev/kord/core/entity/Application : dev/kord/core/entity/BaseApplication { public fun (Ldev/kord/core/cache/data/ApplicationData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V public synthetic fun (Ldev/kord/core/cache/data/ApplicationData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun getBot ()Ldev/kord/core/entity/User; public fun getData ()Ldev/kord/core/cache/data/ApplicationData; public synthetic fun getData ()Ldev/kord/core/cache/data/BaseApplicationData; + public synthetic fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; + public fun getGuild ()Ldev/kord/core/entity/PartialGuild; + public final fun getIntegrationTypesConfig ()Ljava/util/Map; public final fun getRequireCodeGrant ()Z public final fun getTeam ()Ldev/kord/core/entity/Team; public final fun getTeamId ()Ldev/kord/common/entity/Snowflake; @@ -5834,7 +5889,7 @@ public abstract class dev/kord/core/entity/BaseApplication : dev/kord/core/entit public abstract fun getData ()Ldev/kord/core/cache/data/BaseApplicationData; public final fun getDescription ()Ljava/lang/String; public final fun getFlags ()Ldev/kord/common/entity/ApplicationFlags; - public final fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; + public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public final fun getGuildId ()Ldev/kord/common/entity/Snowflake; public final fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getIcon ()Ldev/kord/core/entity/Asset; @@ -6423,7 +6478,6 @@ public final class dev/kord/core/entity/Integration : dev/kord/core/entity/KordE public final fun getUserId ()Ldev/kord/common/entity/Snowflake; public fun hashCode ()I public final fun isEnabled ()Z - public final fun isSyncing ()Ljava/lang/Boolean; public final fun sync (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Integration; @@ -6572,6 +6626,7 @@ public final class dev/kord/core/entity/Message : dev/kord/core/behavior/Message public final fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getId ()Ldev/kord/common/entity/Snowflake; public final fun getInteraction ()Ldev/kord/core/entity/Message$Interaction; + public final fun getInteractionMetadata ()Ldev/kord/core/entity/Message$InteractionMetadata; public fun getKord ()Ldev/kord/core/Kord; public final fun getMentionedChannelBehaviors ()Ljava/util/Set; public final fun getMentionedChannelIds ()Ljava/util/Set; @@ -6623,6 +6678,24 @@ public final class dev/kord/core/entity/Message$Interaction : dev/kord/core/enti public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Strategizable; } +public final class dev/kord/core/entity/Message$InteractionMetadata : dev/kord/core/entity/KordEntity, dev/kord/core/entity/Strategizable { + public fun (Ldev/kord/core/cache/data/InteractionMetadataData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V + public synthetic fun (Ldev/kord/core/cache/data/InteractionMetadataData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun compareTo (Ldev/kord/core/entity/Entity;)I + public synthetic fun compareTo (Ljava/lang/Object;)I + public final fun getAuthorizingIntegrationOwners ()Ljava/util/Map; + public final fun getData ()Ldev/kord/core/cache/data/InteractionMetadataData; + public fun getId ()Ldev/kord/common/entity/Snowflake; + public final fun getInteractedMessageId ()Ldev/kord/common/entity/Snowflake; + public fun getKord ()Ldev/kord/core/Kord; + public final fun getOriginalResponseMessageId ()Ldev/kord/common/entity/Snowflake; + public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; + public final fun getTriggeringInteractionMetadata ()Ldev/kord/common/entity/DiscordInteractionMetadata; + public final fun getType ()Ldev/kord/common/entity/InteractionType; + public final fun getUser ()Ldev/kord/core/entity/User; + public fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Strategizable; +} + public final class dev/kord/core/entity/MessageReference : dev/kord/core/KordObject { public fun (Ldev/kord/core/cache/data/MessageReferenceData;Ldev/kord/core/Kord;)V public final fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; @@ -9105,10 +9178,12 @@ public final class dev/kord/core/entity/interaction/ActionInteraction$DefaultImp public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/ActionInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/ActionInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/ActionInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/ActionInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/ActionInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/ActionInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/ActionInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/ActionInteraction;)Ldev/kord/common/Locale; @@ -9135,10 +9210,12 @@ public final class dev/kord/core/entity/interaction/ApplicationCommandInteractio public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getInvokedCommandGuildId (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; @@ -9180,11 +9257,13 @@ public abstract interface class dev/kord/core/entity/interaction/AutoCompleteInt public final class dev/kord/core/entity/interaction/AutoCompleteInteraction$DefaultImpls { public static fun compareTo (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;Ldev/kord/core/entity/Entity;)I public static fun getApplicationId (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getCommand (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/core/entity/interaction/InteractionCommand; + public static fun getContext (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getFocusedOption (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/core/entity/interaction/StringOptionValue; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/common/entity/Snowflake; @@ -9216,6 +9295,7 @@ public final class dev/kord/core/entity/interaction/ButtonInteraction$DefaultImp public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/common/entity/Snowflake; @@ -9223,6 +9303,7 @@ public final class dev/kord/core/entity/interaction/ButtonInteraction$DefaultImp public static fun getComponent (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/core/entity/component/ButtonComponent; public static fun getComponentId (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ljava/lang/String; public static fun getComponentType (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/common/entity/ComponentType; + public static fun getContext (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/common/Locale; @@ -9256,11 +9337,13 @@ public final class dev/kord/core/entity/interaction/ChatInputCommandInteraction$ public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getCommand (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/core/entity/interaction/InteractionCommand; + public static fun getContext (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getInvokedCommandGuildId (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/common/entity/Snowflake; @@ -9293,12 +9376,14 @@ public final class dev/kord/core/entity/interaction/ComponentInteraction$Default public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getComponentId (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ljava/lang/String; public static fun getComponentType (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/common/entity/ComponentType; + public static fun getContext (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/common/Locale; @@ -9322,10 +9407,12 @@ public abstract interface class dev/kord/core/entity/interaction/DataInteraction public final class dev/kord/core/entity/interaction/DataInteraction$DefaultImpls { public static fun compareTo (Ldev/kord/core/entity/interaction/DataInteraction;Ldev/kord/core/entity/Entity;)I public static fun getApplicationId (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/DataInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/DataInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/DataInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/common/Locale; @@ -9345,10 +9432,12 @@ public final class dev/kord/core/entity/interaction/GlobalApplicationCommandInte public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getInvokedCommandGuildId (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; @@ -9373,11 +9462,13 @@ public final class dev/kord/core/entity/interaction/GlobalAutoCompleteInteractio public synthetic fun compareTo (Ljava/lang/Object;)I public fun equals (Ljava/lang/Object;)Z public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getCommand ()Ldev/kord/core/entity/interaction/InteractionCommand; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getFocusedOption ()Ldev/kord/core/entity/interaction/StringOptionValue; public fun getGuildLocale ()Ldev/kord/common/Locale; @@ -9415,6 +9506,7 @@ public final class dev/kord/core/entity/interaction/GlobalButtonInteraction : de public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun equals (Ljava/lang/Object;)Z public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; @@ -9423,6 +9515,7 @@ public final class dev/kord/core/entity/interaction/GlobalButtonInteraction : de public synthetic fun getComponent ()Ldev/kord/core/entity/component/Component; public fun getComponentId ()Ljava/lang/String; public fun getComponentType ()Ldev/kord/common/entity/ComponentType; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getId ()Ldev/kord/common/entity/Snowflake; @@ -9463,11 +9556,13 @@ public final class dev/kord/core/entity/interaction/GlobalChatInputCommandIntera public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun equals (Ljava/lang/Object;)Z public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getCommand ()Ldev/kord/core/entity/interaction/InteractionCommand; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getId ()Ldev/kord/common/entity/Snowflake; @@ -9515,12 +9610,14 @@ public final class dev/kord/core/entity/interaction/GlobalComponentInteraction$D public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getComponentId (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ljava/lang/String; public static fun getComponentType (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/common/entity/ComponentType; + public static fun getContext (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/common/Locale; @@ -9541,10 +9638,12 @@ public abstract interface class dev/kord/core/entity/interaction/GlobalInteracti public final class dev/kord/core/entity/interaction/GlobalInteraction$DefaultImpls { public static fun compareTo (Ldev/kord/core/entity/interaction/GlobalInteraction;Ldev/kord/core/entity/Entity;)I public static fun getApplicationId (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/GlobalInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/GlobalInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/common/Locale; @@ -9564,10 +9663,12 @@ public final class dev/kord/core/entity/interaction/GlobalMessageCommandInteract public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun equals (Ljava/lang/Object;)Z public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getId ()Ldev/kord/common/entity/Snowflake; @@ -9621,10 +9722,12 @@ public final class dev/kord/core/entity/interaction/GlobalModalSubmitInteraction public fun equals (Ljava/lang/Object;)Z public fun getActionRows ()Ljava/util/List; public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getId ()Ldev/kord/common/entity/Snowflake; @@ -9666,6 +9769,7 @@ public final class dev/kord/core/entity/interaction/GlobalSelectMenuInteraction public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun equals (Ljava/lang/Object;)Z public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; @@ -9674,6 +9778,7 @@ public final class dev/kord/core/entity/interaction/GlobalSelectMenuInteraction public fun getComponent ()Ldev/kord/core/entity/component/SelectMenuComponent; public fun getComponentId ()Ljava/lang/String; public fun getComponentType ()Ldev/kord/common/entity/ComponentType; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getId ()Ldev/kord/common/entity/Snowflake; @@ -9716,10 +9821,12 @@ public final class dev/kord/core/entity/interaction/GlobalUserCommandInteraction public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun equals (Ljava/lang/Object;)Z public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getId ()Ldev/kord/common/entity/Snowflake; @@ -9793,10 +9900,12 @@ public final class dev/kord/core/entity/interaction/GuildApplicationCommandInter public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getAppPermissions (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/common/entity/Permissions; public static fun getApplicationId (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuild (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuild (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getGuildId (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; @@ -9827,12 +9936,14 @@ public final class dev/kord/core/entity/interaction/GuildAutoCompleteInteraction public fun equals (Ljava/lang/Object;)Z public fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public synthetic fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getCommand ()Ldev/kord/core/entity/interaction/InteractionCommand; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getFocusedOption ()Ldev/kord/core/entity/interaction/StringOptionValue; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; @@ -9877,6 +9988,7 @@ public final class dev/kord/core/entity/interaction/GuildButtonInteraction : dev public fun equals (Ljava/lang/Object;)Z public fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public synthetic fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9886,6 +9998,7 @@ public final class dev/kord/core/entity/interaction/GuildButtonInteraction : dev public synthetic fun getComponent ()Ldev/kord/core/entity/component/Component; public fun getComponentId ()Ljava/lang/String; public fun getComponentType ()Ldev/kord/common/entity/ComponentType; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9933,12 +10046,14 @@ public final class dev/kord/core/entity/interaction/GuildChatInputCommandInterac public fun equals (Ljava/lang/Object;)Z public fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public synthetic fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getCommand ()Ldev/kord/core/entity/interaction/InteractionCommand; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9993,12 +10108,14 @@ public final class dev/kord/core/entity/interaction/GuildComponentInteraction$De public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getAppPermissions (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/Permissions; public static fun getApplicationId (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getComponentId (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ljava/lang/String; public static fun getComponentType (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/ComponentType; + public static fun getContext (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuild (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuild (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getGuildId (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/Snowflake; @@ -10028,10 +10145,12 @@ public final class dev/kord/core/entity/interaction/GuildInteraction$DefaultImpl public static fun compareTo (Ldev/kord/core/entity/interaction/GuildInteraction;Ldev/kord/core/entity/Entity;)I public static fun getAppPermissions (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/entity/Permissions; public static fun getApplicationId (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/GuildInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/GuildInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/GuildInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuild (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuild (Ldev/kord/core/entity/interaction/GuildInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getGuildId (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/entity/Snowflake; @@ -10057,11 +10176,13 @@ public final class dev/kord/core/entity/interaction/GuildMessageCommandInteracti public fun equals (Ljava/lang/Object;)Z public fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public synthetic fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10122,11 +10243,13 @@ public final class dev/kord/core/entity/interaction/GuildModalSubmitInteraction public fun getActionRows ()Ljava/util/List; public fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public synthetic fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10175,6 +10298,7 @@ public final class dev/kord/core/entity/interaction/GuildSelectMenuInteraction : public fun equals (Ljava/lang/Object;)Z public fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public synthetic fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10184,6 +10308,7 @@ public final class dev/kord/core/entity/interaction/GuildSelectMenuInteraction : public fun getComponent ()Ldev/kord/core/entity/component/SelectMenuComponent; public fun getComponentId ()Ljava/lang/String; public fun getComponentType ()Ldev/kord/common/entity/ComponentType; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10233,11 +10358,13 @@ public final class dev/kord/core/entity/interaction/GuildUserCommandInteraction public fun equals (Ljava/lang/Object;)Z public fun getAppPermissions ()Ldev/kord/common/entity/Permissions; public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public fun getChannel ()Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; public synthetic fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; public fun getData ()Ldev/kord/core/cache/data/InteractionData; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10294,7 +10421,9 @@ public final class dev/kord/core/entity/interaction/IntegerOptionValue : dev/kor public abstract interface class dev/kord/core/entity/interaction/Interaction : dev/kord/core/behavior/interaction/InteractionBehavior { public static final field Companion Ldev/kord/core/entity/interaction/Interaction$Companion; public abstract fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public abstract fun getAuthorizingIntegrationOwners ()Ljava/util/Map; public abstract fun getChannelId ()Ldev/kord/common/entity/Snowflake; + public abstract fun getContext ()Ldev/kord/common/entity/InteractionContextType; public abstract fun getData ()Ldev/kord/core/cache/data/InteractionData; public abstract fun getGuildLocale ()Ldev/kord/common/Locale; public abstract fun getId ()Ldev/kord/common/entity/Snowflake; @@ -10314,10 +10443,12 @@ public final class dev/kord/core/entity/interaction/Interaction$Companion { public final class dev/kord/core/entity/interaction/Interaction$DefaultImpls { public static fun compareTo (Ldev/kord/core/entity/interaction/Interaction;Ldev/kord/core/entity/Entity;)I public static fun getApplicationId (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/Interaction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/Interaction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/Interaction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/common/Locale; @@ -10397,10 +10528,12 @@ public final class dev/kord/core/entity/interaction/MessageCommandInteraction$De public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getInvokedCommandGuildId (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/common/entity/Snowflake; @@ -10439,10 +10572,12 @@ public final class dev/kord/core/entity/interaction/ModalSubmitInteraction$Defau public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getActionRows (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ljava/util/List; public static fun getApplicationId (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ldev/kord/common/Locale; @@ -10542,6 +10677,7 @@ public final class dev/kord/core/entity/interaction/SelectMenuInteraction$Defaul public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/common/entity/Snowflake; @@ -10549,6 +10685,7 @@ public final class dev/kord/core/entity/interaction/SelectMenuInteraction$Defaul public static fun getComponent (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/core/entity/component/SelectMenuComponent; public static fun getComponentId (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ljava/lang/String; public static fun getComponentType (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/common/entity/ComponentType; + public static fun getContext (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getLocale (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/common/Locale; @@ -10607,10 +10744,12 @@ public final class dev/kord/core/entity/interaction/UserCommandInteraction$Defau public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getApplicationId (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ljava/util/Map; public static fun getChannel (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelId (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/common/entity/InteractionContextType; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/common/Locale; public static fun getId (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getInvokedCommandGuildId (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/common/entity/Snowflake; diff --git a/core/api/core.klib.api b/core/api/core.klib.api index 1d39196ab5f..e21edfbc60e 100644 --- a/core/api/core.klib.api +++ b/core/api/core.klib.api @@ -1352,8 +1352,12 @@ sealed interface dev.kord.core.entity.interaction/Interaction : dev.kord.core.be abstract fun (): dev.kord.core.entity/User // dev.kord.core.entity.interaction/Interaction.user.|(){}[0] open val applicationId // dev.kord.core.entity.interaction/Interaction.applicationId|{}applicationId[0] open fun (): dev.kord.common.entity/Snowflake // dev.kord.core.entity.interaction/Interaction.applicationId.|(){}[0] + open val authorizingIntegrationOwners // dev.kord.core.entity.interaction/Interaction.authorizingIntegrationOwners|{}authorizingIntegrationOwners[0] + open fun (): kotlin.collections/Map // dev.kord.core.entity.interaction/Interaction.authorizingIntegrationOwners.|(){}[0] open val channelId // dev.kord.core.entity.interaction/Interaction.channelId|{}channelId[0] open fun (): dev.kord.common.entity/Snowflake // dev.kord.core.entity.interaction/Interaction.channelId.|(){}[0] + open val context // dev.kord.core.entity.interaction/Interaction.context|{}context[0] + open fun (): dev.kord.common.entity/InteractionContextType? // dev.kord.core.entity.interaction/Interaction.context.|(){}[0] open val guildLocale // dev.kord.core.entity.interaction/Interaction.guildLocale|{}guildLocale[0] open fun (): dev.kord.common/Locale? // dev.kord.core.entity.interaction/Interaction.guildLocale.|(){}[0] open val id // dev.kord.core.entity.interaction/Interaction.id|{}id[0] @@ -2081,8 +2085,10 @@ final class dev.kord.core.cache.data/ApplicationCommandSubcommandData { // dev.k } final class dev.kord.core.cache.data/ApplicationData : dev.kord.core.cache.data/BaseApplicationData { // dev.kord.core.cache.data/ApplicationData|null[0] - constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String?, kotlin/String, dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean, kotlin/Boolean, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., kotlin/String, dev.kord.core.cache.data/TeamData?, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.core.cache.data/ApplicationData.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;kotlin.String;dev.kord.core.cache.data.TeamData?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String?, kotlin/String, dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean, kotlin/Boolean, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., kotlin/String, dev.kord.core.cache.data/TeamData?, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.core.cache.data/ApplicationData.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;kotlin.String;dev.kord.core.cache.data.TeamData?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + final val bot // dev.kord.core.cache.data/ApplicationData.bot|{}bot[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.bot.|(){}[0] final val botPublic // dev.kord.core.cache.data/ApplicationData.botPublic|{}botPublic[0] final fun (): kotlin/Boolean // dev.kord.core.cache.data/ApplicationData.botPublic.|(){}[0] final val botRequireCodeGrant // dev.kord.core.cache.data/ApplicationData.botRequireCodeGrant|{}botRequireCodeGrant[0] @@ -2095,6 +2101,8 @@ final class dev.kord.core.cache.data/ApplicationData : dev.kord.core.cache.data/ final fun (): kotlin/String // dev.kord.core.cache.data/ApplicationData.description.|(){}[0] final val flags // dev.kord.core.cache.data/ApplicationData.flags|{}flags[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.flags.|(){}[0] + final val guild // dev.kord.core.cache.data/ApplicationData.guild|{}guild[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.guild.|(){}[0] final val guildId // dev.kord.core.cache.data/ApplicationData.guildId|{}guildId[0] final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/ApplicationData.guildId.|(){}[0] final val icon // dev.kord.core.cache.data/ApplicationData.icon|{}icon[0] @@ -2103,6 +2111,8 @@ final class dev.kord.core.cache.data/ApplicationData : dev.kord.core.cache.data/ final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/ApplicationData.id.|(){}[0] final val installParams // dev.kord.core.cache.data/ApplicationData.installParams|{}installParams[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.installParams.|(){}[0] + final val integrationTypesConfig // dev.kord.core.cache.data/ApplicationData.integrationTypesConfig|{}integrationTypesConfig[0] + final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.core.cache.data/ApplicationData.integrationTypesConfig.|(){}[0] final val name // dev.kord.core.cache.data/ApplicationData.name|{}name[0] final fun (): kotlin/String // dev.kord.core.cache.data/ApplicationData.name.|(){}[0] final val ownerId // dev.kord.core.cache.data/ApplicationData.ownerId|{}ownerId[0] @@ -2127,27 +2137,30 @@ final class dev.kord.core.cache.data/ApplicationData : dev.kord.core.cache.data/ final fun (): kotlin/String // dev.kord.core.cache.data/ApplicationData.verifyKey.|(){}[0] final fun component1(): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/ApplicationData.component1|component1(){}[0] - final fun component10(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/ApplicationData.component10|component10(){}[0] - final fun component11(): kotlin/String // dev.kord.core.cache.data/ApplicationData.component11|component11(){}[0] - final fun component12(): dev.kord.core.cache.data/TeamData? // dev.kord.core.cache.data/ApplicationData.component12|component12(){}[0] - final fun component13(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/ApplicationData.component13|component13(){}[0] + final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component10|component10(){}[0] + final fun component11(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/ApplicationData.component11|component11(){}[0] + final fun component12(): kotlin/String // dev.kord.core.cache.data/ApplicationData.component12|component12(){}[0] + final fun component13(): dev.kord.core.cache.data/TeamData? // dev.kord.core.cache.data/ApplicationData.component13|component13(){}[0] final fun component14(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/ApplicationData.component14|component14(){}[0] - final fun component15(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component15|component15(){}[0] - final fun component16(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component16|component16(){}[0] - final fun component17(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component17|component17(){}[0] - final fun component18(): dev.kord.common.entity.optional/Optional> // dev.kord.core.cache.data/ApplicationData.component18|component18(){}[0] - final fun component19(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component19|component19(){}[0] + final fun component15(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component15|component15(){}[0] + final fun component16(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/ApplicationData.component16|component16(){}[0] + final fun component17(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component17|component17(){}[0] + final fun component18(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component18|component18(){}[0] + final fun component19(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component19|component19(){}[0] final fun component2(): kotlin/String // dev.kord.core.cache.data/ApplicationData.component2|component2(){}[0] - final fun component20(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component20|component20(){}[0] - final fun component21(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component21|component21(){}[0] + final fun component20(): dev.kord.common.entity.optional/Optional> // dev.kord.core.cache.data/ApplicationData.component20|component20(){}[0] + final fun component21(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component21|component21(){}[0] + final fun component22(): dev.kord.common.entity.optional/Optional> // dev.kord.core.cache.data/ApplicationData.component22|component22(){}[0] + final fun component23(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component23|component23(){}[0] + final fun component24(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component24|component24(){}[0] final fun component3(): kotlin/String? // dev.kord.core.cache.data/ApplicationData.component3|component3(){}[0] final fun component4(): kotlin/String // dev.kord.core.cache.data/ApplicationData.component4|component4(){}[0] final fun component5(): dev.kord.common.entity.optional/Optional> // dev.kord.core.cache.data/ApplicationData.component5|component5(){}[0] final fun component6(): kotlin/Boolean // dev.kord.core.cache.data/ApplicationData.component6|component6(){}[0] final fun component7(): kotlin/Boolean // dev.kord.core.cache.data/ApplicationData.component7|component7(){}[0] - final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component8|component8(){}[0] + final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/ApplicationData.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String? = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., kotlin/String = ..., dev.kord.core.cache.data/TeamData? = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.core.cache.data/ApplicationData // dev.kord.core.cache.data/ApplicationData.copy|copy(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;kotlin.String;dev.kord.core.cache.data.TeamData?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String? = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., kotlin/String = ..., dev.kord.core.cache.data/TeamData? = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.core.cache.data/ApplicationData // dev.kord.core.cache.data/ApplicationData.copy|copy(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;kotlin.String;dev.kord.core.cache.data.TeamData?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.core.cache.data/ApplicationData.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.core.cache.data/ApplicationData.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.core.cache.data/ApplicationData.toString|toString(){}[0] @@ -3489,7 +3502,7 @@ final class dev.kord.core.cache.data/GuildWidgetData { // dev.kord.core.cache.da } final class dev.kord.core.cache.data/IntegrationData { // dev.kord.core.cache.data/IntegrationData|null[0] - constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Boolean, dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.core.cache.data/IntegrationsAccountData, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.core.cache.data/IntegrationData.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Boolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.core.cache.data.IntegrationsAccountData;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Boolean, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.core.cache.data/IntegrationsAccountData, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.core.cache.data/IntegrationData.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.core.cache.data.IntegrationsAccountData;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional){}[0] final val account // dev.kord.core.cache.data/IntegrationData.account|{}account[0] final fun (): dev.kord.core.cache.data/IntegrationsAccountData // dev.kord.core.cache.data/IntegrationData.account.|(){}[0] @@ -3517,30 +3530,27 @@ final class dev.kord.core.cache.data/IntegrationData { // dev.kord.core.cache.da final fun (): dev.kord.common.entity.optional/OptionalInt // dev.kord.core.cache.data/IntegrationData.subscriberCount.|(){}[0] final val syncedAt // dev.kord.core.cache.data/IntegrationData.syncedAt|{}syncedAt[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.syncedAt.|(){}[0] - final val syncing // dev.kord.core.cache.data/IntegrationData.syncing|{}syncing[0] - final fun (): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.core.cache.data/IntegrationData.syncing.|(){}[0] final val type // dev.kord.core.cache.data/IntegrationData.type|{}type[0] final fun (): kotlin/String // dev.kord.core.cache.data/IntegrationData.type.|(){}[0] final val user // dev.kord.core.cache.data/IntegrationData.user|{}user[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.user.|(){}[0] final fun component1(): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/IntegrationData.component1|component1(){}[0] - final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component10|component10(){}[0] - final fun component11(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component11|component11(){}[0] - final fun component12(): dev.kord.core.cache.data/IntegrationsAccountData // dev.kord.core.cache.data/IntegrationData.component12|component12(){}[0] - final fun component13(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component13|component13(){}[0] - final fun component14(): dev.kord.common.entity.optional/OptionalInt // dev.kord.core.cache.data/IntegrationData.component14|component14(){}[0] - final fun component15(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.core.cache.data/IntegrationData.component15|component15(){}[0] - final fun component16(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component16|component16(){}[0] + final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component10|component10(){}[0] + final fun component11(): dev.kord.core.cache.data/IntegrationsAccountData // dev.kord.core.cache.data/IntegrationData.component11|component11(){}[0] + final fun component12(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component12|component12(){}[0] + final fun component13(): dev.kord.common.entity.optional/OptionalInt // dev.kord.core.cache.data/IntegrationData.component13|component13(){}[0] + final fun component14(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.core.cache.data/IntegrationData.component14|component14(){}[0] + final fun component15(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component15|component15(){}[0] final fun component2(): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/IntegrationData.component2|component2(){}[0] final fun component3(): kotlin/String // dev.kord.core.cache.data/IntegrationData.component3|component3(){}[0] final fun component4(): kotlin/String // dev.kord.core.cache.data/IntegrationData.component4|component4(){}[0] final fun component5(): kotlin/Boolean // dev.kord.core.cache.data/IntegrationData.component5|component5(){}[0] - final fun component6(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.core.cache.data/IntegrationData.component6|component6(){}[0] - final fun component7(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/IntegrationData.component7|component7(){}[0] - final fun component8(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.core.cache.data/IntegrationData.component8|component8(){}[0] - final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.core.cache.data/IntegrationsAccountData = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.core.cache.data/IntegrationData // dev.kord.core.cache.data/IntegrationData.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Boolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.core.cache.data.IntegrationsAccountData;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional){}[0] + final fun component6(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/IntegrationData.component6|component6(){}[0] + final fun component7(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.core.cache.data/IntegrationData.component7|component7(){}[0] + final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component8|component8(){}[0] + final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/IntegrationData.component9|component9(){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.core.cache.data/IntegrationsAccountData = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.core.cache.data/IntegrationData // dev.kord.core.cache.data/IntegrationData.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.core.cache.data.IntegrationsAccountData;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.core.cache.data/IntegrationData.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.core.cache.data/IntegrationData.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.core.cache.data/IntegrationData.toString|toString(){}[0] @@ -3593,16 +3603,20 @@ final class dev.kord.core.cache.data/IntegrationsAccountData { // dev.kord.core. } final class dev.kord.core.cache.data/InteractionData { // dev.kord.core.cache.data/InteractionData|null[0] - constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/InteractionType, dev.kord.core.cache.data/ApplicationInteractionData, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, dev.kord.common.entity.optional/Optional = ..., kotlin/Int, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.core.cache.data/InteractionData.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.core.cache.data.ApplicationInteractionData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.optional.Optional;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/InteractionType, dev.kord.core.cache.data/ApplicationInteractionData, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, dev.kord.common.entity.optional/Optional = ..., kotlin/Int, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Permissions, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin.collections/Map, dev.kord.common.entity.optional/Optional = ...) // dev.kord.core.cache.data/InteractionData.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.core.cache.data.ApplicationInteractionData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.optional.Optional;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Permissions;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.collections.Map;dev.kord.common.entity.optional.Optional){}[0] final val appPermissions // dev.kord.core.cache.data/InteractionData.appPermissions|{}appPermissions[0] - final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.appPermissions.|(){}[0] + final fun (): dev.kord.common.entity/Permissions // dev.kord.core.cache.data/InteractionData.appPermissions.|(){}[0] final val applicationId // dev.kord.core.cache.data/InteractionData.applicationId|{}applicationId[0] final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/InteractionData.applicationId.|(){}[0] + final val authorizingIntegrationOwners // dev.kord.core.cache.data/InteractionData.authorizingIntegrationOwners|{}authorizingIntegrationOwners[0] + final fun (): kotlin.collections/Map // dev.kord.core.cache.data/InteractionData.authorizingIntegrationOwners.|(){}[0] final val channel // dev.kord.core.cache.data/InteractionData.channel|{}channel[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.channel.|(){}[0] final val channelId // dev.kord.core.cache.data/InteractionData.channelId|{}channelId[0] final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/InteractionData.channelId.|(){}[0] + final val context // dev.kord.core.cache.data/InteractionData.context|{}context[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.context.|(){}[0] final val data // dev.kord.core.cache.data/InteractionData.data|{}data[0] final fun (): dev.kord.core.cache.data/ApplicationInteractionData // dev.kord.core.cache.data/InteractionData.data.|(){}[0] final val guildId // dev.kord.core.cache.data/InteractionData.guildId|{}guildId[0] @@ -3633,9 +3647,11 @@ final class dev.kord.core.cache.data/InteractionData { // dev.kord.core.cache.da final fun component11(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.component11|component11(){}[0] final fun component12(): kotlin/Int // dev.kord.core.cache.data/InteractionData.component12|component12(){}[0] final fun component13(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.component13|component13(){}[0] - final fun component14(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.component14|component14(){}[0] + final fun component14(): dev.kord.common.entity/Permissions // dev.kord.core.cache.data/InteractionData.component14|component14(){}[0] final fun component15(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.component15|component15(){}[0] final fun component16(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.component16|component16(){}[0] + final fun component17(): kotlin.collections/Map // dev.kord.core.cache.data/InteractionData.component17|component17(){}[0] + final fun component18(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.component18|component18(){}[0] final fun component2(): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/InteractionData.component2|component2(){}[0] final fun component3(): dev.kord.common.entity/InteractionType // dev.kord.core.cache.data/InteractionData.component3|component3(){}[0] final fun component4(): dev.kord.core.cache.data/ApplicationInteractionData // dev.kord.core.cache.data/InteractionData.component4|component4(){}[0] @@ -3644,7 +3660,7 @@ final class dev.kord.core.cache.data/InteractionData { // dev.kord.core.cache.da final fun component7(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/InteractionData.component7|component7(){}[0] final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionData.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/InteractionType = ..., dev.kord.core.cache.data/ApplicationInteractionData = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Int = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.core.cache.data/InteractionData // dev.kord.core.cache.data/InteractionData.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.core.cache.data.ApplicationInteractionData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.optional.Optional;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/InteractionType = ..., dev.kord.core.cache.data/ApplicationInteractionData = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Int = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Permissions = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin.collections/Map = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.core.cache.data/InteractionData // dev.kord.core.cache.data/InteractionData.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.core.cache.data.ApplicationInteractionData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.optional.Optional;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Permissions;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.collections.Map;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.core.cache.data/InteractionData.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.core.cache.data/InteractionData.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.core.cache.data/InteractionData.toString|toString(){}[0] @@ -3666,6 +3682,53 @@ final class dev.kord.core.cache.data/InteractionData { // dev.kord.core.cache.da } } +final class dev.kord.core.cache.data/InteractionMetadataData { // dev.kord.core.cache.data/InteractionMetadataData|null[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/InteractionType, dev.kord.core.cache.data/UserData, kotlin.collections/Map, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.core.cache.data/InteractionMetadataData.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.core.cache.data.UserData;kotlin.collections.Map;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional){}[0] + + final val authorizingIntegrationOwners // dev.kord.core.cache.data/InteractionMetadataData.authorizingIntegrationOwners|{}authorizingIntegrationOwners[0] + final fun (): kotlin.collections/Map // dev.kord.core.cache.data/InteractionMetadataData.authorizingIntegrationOwners.|(){}[0] + final val id // dev.kord.core.cache.data/InteractionMetadataData.id|{}id[0] + final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/InteractionMetadataData.id.|(){}[0] + final val interactedMessageId // dev.kord.core.cache.data/InteractionMetadataData.interactedMessageId|{}interactedMessageId[0] + final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/InteractionMetadataData.interactedMessageId.|(){}[0] + final val originalResponseMessageId // dev.kord.core.cache.data/InteractionMetadataData.originalResponseMessageId|{}originalResponseMessageId[0] + final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/InteractionMetadataData.originalResponseMessageId.|(){}[0] + final val triggeringInteractionMetadata // dev.kord.core.cache.data/InteractionMetadataData.triggeringInteractionMetadata|{}triggeringInteractionMetadata[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionMetadataData.triggeringInteractionMetadata.|(){}[0] + final val type // dev.kord.core.cache.data/InteractionMetadataData.type|{}type[0] + final fun (): dev.kord.common.entity/InteractionType // dev.kord.core.cache.data/InteractionMetadataData.type.|(){}[0] + final val user // dev.kord.core.cache.data/InteractionMetadataData.user|{}user[0] + final fun (): dev.kord.core.cache.data/UserData // dev.kord.core.cache.data/InteractionMetadataData.user.|(){}[0] + + final fun component1(): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/InteractionMetadataData.component1|component1(){}[0] + final fun component2(): dev.kord.common.entity/InteractionType // dev.kord.core.cache.data/InteractionMetadataData.component2|component2(){}[0] + final fun component3(): dev.kord.core.cache.data/UserData // dev.kord.core.cache.data/InteractionMetadataData.component3|component3(){}[0] + final fun component4(): kotlin.collections/Map // dev.kord.core.cache.data/InteractionMetadataData.component4|component4(){}[0] + final fun component5(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/InteractionMetadataData.component5|component5(){}[0] + final fun component6(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/InteractionMetadataData.component6|component6(){}[0] + final fun component7(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/InteractionMetadataData.component7|component7(){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/InteractionType = ..., dev.kord.core.cache.data/UserData = ..., kotlin.collections/Map = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.core.cache.data/InteractionMetadataData // dev.kord.core.cache.data/InteractionMetadataData.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.core.cache.data.UserData;kotlin.collections.Map;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional){}[0] + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.core.cache.data/InteractionMetadataData.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.core.cache.data/InteractionMetadataData.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.core.cache.data/InteractionMetadataData.toString|toString(){}[0] + + final object $serializer : kotlinx.serialization.internal/GeneratedSerializer { // dev.kord.core.cache.data/InteractionMetadataData.$serializer|null[0] + final val descriptor // dev.kord.core.cache.data/InteractionMetadataData.$serializer.descriptor|{}descriptor[0] + final fun (): kotlinx.serialization.descriptors/SerialDescriptor // dev.kord.core.cache.data/InteractionMetadataData.$serializer.descriptor.|(){}[0] + + final fun childSerializers(): kotlin/Array> // dev.kord.core.cache.data/InteractionMetadataData.$serializer.childSerializers|childSerializers(){}[0] + final fun deserialize(kotlinx.serialization.encoding/Decoder): dev.kord.core.cache.data/InteractionMetadataData // dev.kord.core.cache.data/InteractionMetadataData.$serializer.deserialize|deserialize(kotlinx.serialization.encoding.Decoder){}[0] + final fun serialize(kotlinx.serialization.encoding/Encoder, dev.kord.core.cache.data/InteractionMetadataData) // dev.kord.core.cache.data/InteractionMetadataData.$serializer.serialize|serialize(kotlinx.serialization.encoding.Encoder;dev.kord.core.cache.data.InteractionMetadataData){}[0] + } + + final object Companion { // dev.kord.core.cache.data/InteractionMetadataData.Companion|null[0] + final val $childSerializers // dev.kord.core.cache.data/InteractionMetadataData.Companion.$childSerializers|{}$childSerializers[0] + + final fun from(dev.kord.common.entity/DiscordInteractionMetadata): dev.kord.core.cache.data/InteractionMetadataData // dev.kord.core.cache.data/InteractionMetadataData.Companion.from|from(dev.kord.common.entity.DiscordInteractionMetadata){}[0] + final fun serializer(): kotlinx.serialization/KSerializer // dev.kord.core.cache.data/InteractionMetadataData.Companion.serializer|serializer(){}[0] + } +} + final class dev.kord.core.cache.data/InviteCreateData { // dev.kord.core.cache.data/InviteCreateData|null[0] constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlinx.datetime/Instant, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., kotlin.time/Duration, kotlin/Int, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean, kotlin/Int) // dev.kord.core.cache.data/InviteCreateData.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlinx.datetime.Instant;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.OptionalSnowflake;kotlin.time.Duration;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;kotlin.Boolean;kotlin.Int){}[0] @@ -4009,7 +4072,7 @@ final class dev.kord.core.cache.data/MembersChunkData { // dev.kord.core.cache.d } final class dev.kord.core.cache.data/MessageData { // dev.kord.core.cache.data/MessageData|null[0] - constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.core.cache.data/UserData, kotlin/String, kotlinx.datetime/Instant, kotlinx.datetime/Instant? = ..., kotlin/Boolean, kotlin/Boolean, kotlin.collections/List, kotlin.collections/List, dev.kord.common.entity.optional/Optional> = ..., kotlin.collections/List, kotlin.collections/List, dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/MessageType, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...) // dev.kord.core.cache.data/MessageData.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.core.cache.data.UserData;kotlin.String;kotlinx.datetime.Instant;kotlinx.datetime.Instant?;kotlin.Boolean;kotlin.Boolean;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.MessageType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.core.cache.data/UserData, kotlin/String, kotlinx.datetime/Instant, kotlinx.datetime/Instant? = ..., kotlin/Boolean, kotlin/Boolean, kotlin.collections/List, kotlin.collections/List, dev.kord.common.entity.optional/Optional> = ..., kotlin.collections/List, kotlin.collections/List, dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/MessageType, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...) // dev.kord.core.cache.data/MessageData.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.core.cache.data.UserData;kotlin.String;kotlinx.datetime.Instant;kotlinx.datetime.Instant?;kotlin.Boolean;kotlin.Boolean;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.MessageType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] final val activity // dev.kord.core.cache.data/MessageData.activity|{}activity[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.activity.|(){}[0] @@ -4039,6 +4102,8 @@ final class dev.kord.core.cache.data/MessageData { // dev.kord.core.cache.data/M final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.cache.data/MessageData.id.|(){}[0] final val interaction // dev.kord.core.cache.data/MessageData.interaction|{}interaction[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.interaction.|(){}[0] + final val interactionMetadata // dev.kord.core.cache.data/MessageData.interactionMetadata|{}interactionMetadata[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.interactionMetadata.|(){}[0] final val mentionEveryone // dev.kord.core.cache.data/MessageData.mentionEveryone|{}mentionEveryone[0] final fun (): kotlin/Boolean // dev.kord.core.cache.data/MessageData.mentionEveryone.|(){}[0] final val mentionRoles // dev.kord.core.cache.data/MessageData.mentionRoles|{}mentionRoles[0] @@ -4091,18 +4156,19 @@ final class dev.kord.core.cache.data/MessageData { // dev.kord.core.cache.data/M final fun component24(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.component24|component24(){}[0] final fun component25(): dev.kord.common.entity.optional/Optional> // dev.kord.core.cache.data/MessageData.component25|component25(){}[0] final fun component26(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.component26|component26(){}[0] - final fun component27(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.component27|component27(){}[0] - final fun component28(): dev.kord.common.entity.optional/Optional> // dev.kord.core.cache.data/MessageData.component28|component28(){}[0] - final fun component29(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.component29|component29(){}[0] + final fun component27(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.component27|component27(){}[0] + final fun component28(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.component28|component28(){}[0] + final fun component29(): dev.kord.common.entity.optional/Optional> // dev.kord.core.cache.data/MessageData.component29|component29(){}[0] final fun component3(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.core.cache.data/MessageData.component3|component3(){}[0] - final fun component30(): dev.kord.common.entity.optional/OptionalInt // dev.kord.core.cache.data/MessageData.component30|component30(){}[0] + final fun component30(): dev.kord.common.entity.optional/Optional // dev.kord.core.cache.data/MessageData.component30|component30(){}[0] + final fun component31(): dev.kord.common.entity.optional/OptionalInt // dev.kord.core.cache.data/MessageData.component31|component31(){}[0] final fun component4(): dev.kord.core.cache.data/UserData // dev.kord.core.cache.data/MessageData.component4|component4(){}[0] final fun component5(): kotlin/String // dev.kord.core.cache.data/MessageData.component5|component5(){}[0] final fun component6(): kotlinx.datetime/Instant // dev.kord.core.cache.data/MessageData.component6|component6(){}[0] final fun component7(): kotlinx.datetime/Instant? // dev.kord.core.cache.data/MessageData.component7|component7(){}[0] final fun component8(): kotlin/Boolean // dev.kord.core.cache.data/MessageData.component8|component8(){}[0] final fun component9(): kotlin/Boolean // dev.kord.core.cache.data/MessageData.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.core.cache.data/UserData = ..., kotlin/String = ..., kotlinx.datetime/Instant = ..., kotlinx.datetime/Instant? = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., kotlin.collections/List = ..., kotlin.collections/List = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin.collections/List = ..., kotlin.collections/List = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/MessageType = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...): dev.kord.core.cache.data/MessageData // dev.kord.core.cache.data/MessageData.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.core.cache.data.UserData;kotlin.String;kotlinx.datetime.Instant;kotlinx.datetime.Instant?;kotlin.Boolean;kotlin.Boolean;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.MessageType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.core.cache.data/UserData = ..., kotlin/String = ..., kotlinx.datetime/Instant = ..., kotlinx.datetime/Instant? = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., kotlin.collections/List = ..., kotlin.collections/List = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin.collections/List = ..., kotlin.collections/List = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity/MessageType = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ...): dev.kord.core.cache.data/MessageData // dev.kord.core.cache.data/MessageData.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.core.cache.data.UserData;kotlin.String;kotlinx.datetime.Instant;kotlinx.datetime.Instant?;kotlin.Boolean;kotlin.Boolean;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;kotlin.collections.List;kotlin.collections.List;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;kotlin.Boolean;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.MessageType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.core.cache.data/MessageData.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.core.cache.data/MessageData.hashCode|hashCode(){}[0] final fun plus(dev.kord.common.entity/DiscordPartialMessage): dev.kord.core.cache.data/MessageData // dev.kord.core.cache.data/MessageData.plus|plus(dev.kord.common.entity.DiscordPartialMessage){}[0] @@ -6908,8 +6974,14 @@ final class dev.kord.core.entity/Activity { // dev.kord.core.entity/Activity|nul final class dev.kord.core.entity/Application : dev.kord.core.entity/BaseApplication { // dev.kord.core.entity/Application|null[0] constructor (dev.kord.core.cache.data/ApplicationData, dev.kord.core/Kord, dev.kord.core.supplier/EntitySupplier = ...) // dev.kord.core.entity/Application.|(dev.kord.core.cache.data.ApplicationData;dev.kord.core.Kord;dev.kord.core.supplier.EntitySupplier){}[0] + final val bot // dev.kord.core.entity/Application.bot|{}bot[0] + final fun (): dev.kord.core.entity/User? // dev.kord.core.entity/Application.bot.|(){}[0] final val data // dev.kord.core.entity/Application.data|{}data[0] final fun (): dev.kord.core.cache.data/ApplicationData // dev.kord.core.entity/Application.data.|(){}[0] + final val guild // dev.kord.core.entity/Application.guild|{}guild[0] + final fun (): dev.kord.core.entity/PartialGuild? // dev.kord.core.entity/Application.guild.|(){}[0] + final val integrationTypesConfig // dev.kord.core.entity/Application.integrationTypesConfig|{}integrationTypesConfig[0] + final fun (): kotlin.collections/Map? // dev.kord.core.entity/Application.integrationTypesConfig.|(){}[0] final val isPublic // dev.kord.core.entity/Application.isPublic|{}isPublic[0] final fun (): kotlin/Boolean // dev.kord.core.entity/Application.isPublic.|(){}[0] final val requireCodeGrant // dev.kord.core.entity/Application.requireCodeGrant|{}requireCodeGrant[0] @@ -7758,8 +7830,6 @@ final class dev.kord.core.entity/Integration : dev.kord.core.entity/KordEntity, final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.entity/Integration.id.|(){}[0] final val isEnabled // dev.kord.core.entity/Integration.isEnabled|{}isEnabled[0] final fun (): kotlin/Boolean // dev.kord.core.entity/Integration.isEnabled.|(){}[0] - final val isSyncing // dev.kord.core.entity/Integration.isSyncing|{}isSyncing[0] - final fun (): kotlin/Boolean? // dev.kord.core.entity/Integration.isSyncing.|(){}[0] final val kord // dev.kord.core.entity/Integration.kord|{}kord[0] final fun (): dev.kord.core/Kord // dev.kord.core.entity/Integration.kord.|(){}[0] final val name // dev.kord.core.entity/Integration.name|{}name[0] @@ -7886,6 +7956,8 @@ final class dev.kord.core.entity/Message : dev.kord.core.behavior/MessageBehavio final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.entity/Message.id.|(){}[0] final val interaction // dev.kord.core.entity/Message.interaction|{}interaction[0] final fun (): dev.kord.core.entity/Message.Interaction? // dev.kord.core.entity/Message.interaction.|(){}[0] + final val interactionMetadata // dev.kord.core.entity/Message.interactionMetadata|{}interactionMetadata[0] + final fun (): dev.kord.core.entity/Message.InteractionMetadata? // dev.kord.core.entity/Message.interactionMetadata.|(){}[0] final val isPinned // dev.kord.core.entity/Message.isPinned|{}isPinned[0] final fun (): kotlin/Boolean // dev.kord.core.entity/Message.isPinned.|(){}[0] final val kord // dev.kord.core.entity/Message.kord|{}kord[0] @@ -7964,6 +8036,33 @@ final class dev.kord.core.entity/Message : dev.kord.core.behavior/MessageBehavio final suspend fun getUser(): dev.kord.core.entity/User // dev.kord.core.entity/Message.Interaction.getUser|getUser(){}[0] final suspend fun getUserOrNull(): dev.kord.core.entity/User? // dev.kord.core.entity/Message.Interaction.getUserOrNull|getUserOrNull(){}[0] } + + final class InteractionMetadata : dev.kord.core.entity/KordEntity, dev.kord.core.entity/Strategizable { // dev.kord.core.entity/Message.InteractionMetadata|null[0] + constructor (dev.kord.core.cache.data/InteractionMetadataData, dev.kord.core/Kord, dev.kord.core.supplier/EntitySupplier = ...) // dev.kord.core.entity/Message.InteractionMetadata.|(dev.kord.core.cache.data.InteractionMetadataData;dev.kord.core.Kord;dev.kord.core.supplier.EntitySupplier){}[0] + + final val authorizingIntegrationOwners // dev.kord.core.entity/Message.InteractionMetadata.authorizingIntegrationOwners|{}authorizingIntegrationOwners[0] + final fun (): kotlin.collections/Map // dev.kord.core.entity/Message.InteractionMetadata.authorizingIntegrationOwners.|(){}[0] + final val data // dev.kord.core.entity/Message.InteractionMetadata.data|{}data[0] + final fun (): dev.kord.core.cache.data/InteractionMetadataData // dev.kord.core.entity/Message.InteractionMetadata.data.|(){}[0] + final val id // dev.kord.core.entity/Message.InteractionMetadata.id|{}id[0] + final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.entity/Message.InteractionMetadata.id.|(){}[0] + final val interactedMessageId // dev.kord.core.entity/Message.InteractionMetadata.interactedMessageId|{}interactedMessageId[0] + final fun (): dev.kord.common.entity/Snowflake? // dev.kord.core.entity/Message.InteractionMetadata.interactedMessageId.|(){}[0] + final val kord // dev.kord.core.entity/Message.InteractionMetadata.kord|{}kord[0] + final fun (): dev.kord.core/Kord // dev.kord.core.entity/Message.InteractionMetadata.kord.|(){}[0] + final val originalResponseMessageId // dev.kord.core.entity/Message.InteractionMetadata.originalResponseMessageId|{}originalResponseMessageId[0] + final fun (): dev.kord.common.entity/Snowflake? // dev.kord.core.entity/Message.InteractionMetadata.originalResponseMessageId.|(){}[0] + final val supplier // dev.kord.core.entity/Message.InteractionMetadata.supplier|{}supplier[0] + final fun (): dev.kord.core.supplier/EntitySupplier // dev.kord.core.entity/Message.InteractionMetadata.supplier.|(){}[0] + final val triggeringInteractionMetadata // dev.kord.core.entity/Message.InteractionMetadata.triggeringInteractionMetadata|{}triggeringInteractionMetadata[0] + final fun (): dev.kord.common.entity/DiscordInteractionMetadata? // dev.kord.core.entity/Message.InteractionMetadata.triggeringInteractionMetadata.|(){}[0] + final val type // dev.kord.core.entity/Message.InteractionMetadata.type|{}type[0] + final fun (): dev.kord.common.entity/InteractionType // dev.kord.core.entity/Message.InteractionMetadata.type.|(){}[0] + final val user // dev.kord.core.entity/Message.InteractionMetadata.user|{}user[0] + final fun (): dev.kord.core.entity/User // dev.kord.core.entity/Message.InteractionMetadata.user.|(){}[0] + + final fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.entity/Strategizable // dev.kord.core.entity/Message.InteractionMetadata.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] + } } final class dev.kord.core.entity/MessageReference : dev.kord.core/KordObject { // dev.kord.core.entity/MessageReference|null[0] @@ -11730,8 +11829,6 @@ sealed class dev.kord.core.entity/BaseApplication : dev.kord.core.entity/KordEnt final fun (): kotlin/String // dev.kord.core.entity/BaseApplication.description.|(){}[0] final val flags // dev.kord.core.entity/BaseApplication.flags|{}flags[0] final fun (): dev.kord.common.entity/ApplicationFlags? // dev.kord.core.entity/BaseApplication.flags.|(){}[0] - final val guild // dev.kord.core.entity/BaseApplication.guild|{}guild[0] - final fun (): dev.kord.core.behavior/GuildBehavior? // dev.kord.core.entity/BaseApplication.guild.|(){}[0] final val guildId // dev.kord.core.entity/BaseApplication.guildId|{}guildId[0] final fun (): dev.kord.common.entity/Snowflake? // dev.kord.core.entity/BaseApplication.guildId.|(){}[0] final val icon // dev.kord.core.entity/BaseApplication.icon|{}icon[0] @@ -11768,6 +11865,8 @@ sealed class dev.kord.core.entity/BaseApplication : dev.kord.core.entity/KordEnt final fun (): kotlin/String? // dev.kord.core.entity/BaseApplication.termsOfServiceUrl.|(){}[0] final val verifyKey // dev.kord.core.entity/BaseApplication.verifyKey|{}verifyKey[0] final fun (): kotlin/String // dev.kord.core.entity/BaseApplication.verifyKey.|(){}[0] + open val guild // dev.kord.core.entity/BaseApplication.guild|{}guild[0] + open fun (): dev.kord.core.behavior/GuildBehavior? // dev.kord.core.entity/BaseApplication.guild.|(){}[0] abstract fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.entity/BaseApplication // dev.kord.core.entity/BaseApplication.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.core.entity/BaseApplication.equals|equals(kotlin.Any?){}[0] diff --git a/core/src/commonMain/kotlin/cache/data/ApplicationData.kt b/core/src/commonMain/kotlin/cache/data/ApplicationData.kt index 8510247e18d..3ee338f3d73 100644 --- a/core/src/commonMain/kotlin/cache/data/ApplicationData.kt +++ b/core/src/commonMain/kotlin/cache/data/ApplicationData.kt @@ -3,7 +3,10 @@ package dev.kord.core.cache.data import dev.kord.common.entity.* import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.OptionalSnowflake +import dev.kord.common.entity.optional.map +import dev.kord.common.entity.optional.mapNullable import dev.kord.common.entity.optional.mapSnowflake +import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable public sealed interface BaseApplicationData { @@ -36,18 +39,21 @@ public data class ApplicationData( override val rpcOrigins: Optional> = Optional.Missing(), val botPublic: Boolean, val botRequireCodeGrant: Boolean, + val bot: Optional = Optional.Missing(), override val termsOfServiceUrl: Optional = Optional.Missing(), override val privacyPolicyUrl: Optional = Optional.Missing(), override val ownerId: OptionalSnowflake = OptionalSnowflake.Missing, override val verifyKey: String, val team: TeamData?, override val guildId: OptionalSnowflake = OptionalSnowflake.Missing, + val guild: Optional = Optional.Missing(), override val primarySkuId: OptionalSnowflake = OptionalSnowflake.Missing, override val slug: Optional = Optional.Missing(), override val coverImage: Optional = Optional.Missing(), override val flags: Optional = Optional.Missing(), override val tags: Optional> = Optional.Missing(), override val installParams: Optional = Optional.Missing(), + val integrationTypesConfig: Optional> = Optional.Missing(), override val customInstallUrl: Optional = Optional.Missing(), override val roleConnectionsVerificationUrl: Optional = Optional.Missing(), ) : BaseApplicationData { @@ -62,18 +68,21 @@ public data class ApplicationData( rpcOrigins, botPublic, botRequireCodeGrant, + bot.map { UserData.from(it) }, termsOfServiceUrl, privacyPolicyUrl, owner.mapSnowflake { it.id }, verifyKey, team?.let { TeamData.from(it) }, guildId, + guild.map { PartialGuildData.from(it) }, primarySkuId, slug, coverImage, flags, tags, installParams, + integrationTypesConfig, customInstallUrl, roleConnectionsVerificationUrl, ) diff --git a/core/src/commonMain/kotlin/cache/data/IntegrationData.kt b/core/src/commonMain/kotlin/cache/data/IntegrationData.kt index c3d43c10414..f9041a7cc77 100644 --- a/core/src/commonMain/kotlin/cache/data/IntegrationData.kt +++ b/core/src/commonMain/kotlin/cache/data/IntegrationData.kt @@ -16,7 +16,6 @@ public data class IntegrationData( val name: String, val type: String, val enabled: Boolean, - val syncing: OptionalBoolean = OptionalBoolean.Missing, val roleId: OptionalSnowflake = OptionalSnowflake.Missing, val enableEmoticons: OptionalBoolean = OptionalBoolean.Missing, val expireBehavior: Optional = Optional.Missing(), @@ -38,7 +37,6 @@ public data class IntegrationData( name, type, enabled, - syncing, roleId, enableEmoticons, expireBehavior, diff --git a/core/src/commonMain/kotlin/cache/data/InteractionData.kt b/core/src/commonMain/kotlin/cache/data/InteractionData.kt index c162309d023..60b21a84b5b 100644 --- a/core/src/commonMain/kotlin/cache/data/InteractionData.kt +++ b/core/src/commonMain/kotlin/cache/data/InteractionData.kt @@ -26,9 +26,11 @@ public data class InteractionData( val permissions: Optional = Optional.Missing(), val version: Int, val message: Optional = Optional.Missing(), - val appPermissions: Optional = Optional.Missing(), + val appPermissions: Permissions, val locale: Optional = Optional.Missing(), - val guildLocale: Optional = Optional.Missing() + val guildLocale: Optional = Optional.Missing(), + val authorizingIntegrationOwners: Map, + val context: Optional = Optional.Missing() ) { public companion object { public fun from(interaction: DiscordInteraction): InteractionData { @@ -52,7 +54,9 @@ public data class InteractionData( }, appPermissions, locale, - guildLocale + guildLocale, + authorizingIntegrationOwners, + context ) } } diff --git a/core/src/commonMain/kotlin/cache/data/MessageData.kt b/core/src/commonMain/kotlin/cache/data/MessageData.kt index 6883ae3d39a..94896349022 100644 --- a/core/src/commonMain/kotlin/cache/data/MessageData.kt +++ b/core/src/commonMain/kotlin/cache/data/MessageData.kt @@ -35,6 +35,8 @@ public data class MessageData( val flags: Optional = Optional.Missing(), val stickers: Optional> = Optional.Missing(), val referencedMessage: Optional = Optional.Missing(), + val interactionMetadata: Optional = Optional.Missing(), + @Deprecated("Deprecated in favor of interactionMetadata", ReplaceWith("interactionMetadata")) val interaction: Optional = Optional.Missing(), val components: Optional> = Optional.Missing(), val roleSubscriptionData: Optional = Optional.Missing(), @@ -75,8 +77,13 @@ public data class MessageData( .coerceToMissing() val stickers = partialMessage.stickers.mapList { StickerItemData.from(it) }.switchOnMissing(this.stickers) val referencedMessage = partialMessage.referencedMessage.mapNullable { it?.toData() ?: referencedMessage.value } + + @Suppress("DEPRECATION") val interaction = partialMessage.interaction.map { MessageInteractionData.from(it) }.switchOnMissing(interaction) + val interactionMetadata = + partialMessage.interactionMetadata.map { InteractionMetadataData.from(it) } + .switchOnMissing(interactionMetadata) return MessageData( id, @@ -106,6 +113,7 @@ public data class MessageData( stickers = stickers, referencedMessage = referencedMessage, interaction = interaction, + interactionMetadata = interactionMetadata, components = components, roleSubscriptionData = roleSubscriptionData, position = position, @@ -116,6 +124,7 @@ public data class MessageData( public val description: DataDescription = description(MessageData::id) public fun from(entity: DiscordMessage): MessageData = with(entity) { + @Suppress("DEPRECATION") MessageData( id, channelId, @@ -143,6 +152,7 @@ public data class MessageData( flags, stickers.mapList { StickerItemData.from(it) }, referencedMessage.mapNotNull { from(it) }, + interactionMetadata.map { InteractionMetadataData.from(it) }, interaction.map { MessageInteractionData.from(it) }, components = components.mapList { ComponentData.from(it) }, roleSubscriptionData = roleSubscriptionData, diff --git a/core/src/commonMain/kotlin/cache/data/MessageInteractionData.kt b/core/src/commonMain/kotlin/cache/data/MessageInteractionData.kt index 2b5e3a29b86..26ea9127684 100644 --- a/core/src/commonMain/kotlin/cache/data/MessageInteractionData.kt +++ b/core/src/commonMain/kotlin/cache/data/MessageInteractionData.kt @@ -1,8 +1,14 @@ package dev.kord.core.cache.data +import dev.kord.common.entity.DiscordInteractionMetadata import dev.kord.common.entity.DiscordMessageInteraction +import dev.kord.common.entity.DiscordUser +import dev.kord.common.entity.IntegrationOwners import dev.kord.common.entity.InteractionType import dev.kord.common.entity.Snowflake +import dev.kord.common.entity.optional.Optional +import dev.kord.common.entity.optional.Optional.Missing.Companion.invoke +import dev.kord.common.entity.optional.OptionalSnowflake import kotlinx.serialization.Serializable @Serializable @@ -18,3 +24,28 @@ public data class MessageInteractionData( } } } + +@Serializable +public data class InteractionMetadataData( + val id: Snowflake, + val type: InteractionType, + val user: UserData, + val authorizingIntegrationOwners: IntegrationOwners, + val originalResponseMessageId: OptionalSnowflake = OptionalSnowflake.Missing, + val interactedMessageId: OptionalSnowflake = OptionalSnowflake.Missing, + val triggeringInteractionMetadata: Optional = Optional.Missing() +) { + public companion object { + public fun from(entity: DiscordInteractionMetadata): InteractionMetadataData = with(entity) { + InteractionMetadataData( + id, + type, + UserData.from(entity.user), + authorizingIntegrationOwners, + originalResponseMessageId, + interactedMessageId, + triggeringInteractionMetadata + ) + } + } +} diff --git a/core/src/commonMain/kotlin/entity/Application.kt b/core/src/commonMain/kotlin/entity/Application.kt index 7bbbc522aa8..b61f763d42f 100644 --- a/core/src/commonMain/kotlin/entity/Application.kt +++ b/core/src/commonMain/kotlin/entity/Application.kt @@ -1,9 +1,11 @@ package dev.kord.core.entity import dev.kord.common.entity.ApplicationFlags +import dev.kord.common.entity.ApplicationIntegrationType import dev.kord.common.entity.InstallParams import dev.kord.common.entity.Snowflake import dev.kord.common.entity.optional.orEmpty +import dev.kord.common.entity.optional.unwrap import dev.kord.core.Kord import dev.kord.core.behavior.GuildBehavior import dev.kord.core.behavior.UserBehavior @@ -11,9 +13,9 @@ import dev.kord.core.cache.data.ApplicationData import dev.kord.core.cache.data.BaseApplicationData import dev.kord.core.cache.data.PartialApplicationData import dev.kord.core.event.guild.InviteCreateEvent +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.core.hash public sealed class BaseApplication( final override val kord: Kord, @@ -48,7 +50,7 @@ public sealed class BaseApplication( public val guildId: Snowflake? get() = data.guildId.value - public val guild: GuildBehavior? get() = guildId?.let { GuildBehavior(it, kord) } + public open val guild: GuildBehavior? get() = guildId?.let { GuildBehavior(it, kord) } public val primarySkuId: Snowflake? get() = data.primarySkuId.value @@ -108,6 +110,12 @@ public class Application( public val team: Team? get() = data.team?.let { Team(it, kord) } + public val bot: User? get() = data.bot.unwrap { User(it, kord, supplier) } + + public override val guild: PartialGuild? get() = data.guild.unwrap { PartialGuild(it, kord, supplier) } + + public val integrationTypesConfig: Map? get() = data.integrationTypesConfig.value + /** * Returns a new [Application] with the given [strategy]. */ diff --git a/core/src/commonMain/kotlin/entity/Integration.kt b/core/src/commonMain/kotlin/entity/Integration.kt index 3eef0926bf8..6227a3b1091 100644 --- a/core/src/commonMain/kotlin/entity/Integration.kt +++ b/core/src/commonMain/kotlin/entity/Integration.kt @@ -50,12 +50,6 @@ public class Integration( public val isEnabled: Boolean get() = data.enabled - /** - * Whether this integrations is syncing. - */ - public val isSyncing: Boolean? - get() = data.syncing.value - /** * The id of the [guild][Guild] this integration is tied to. */ diff --git a/core/src/commonMain/kotlin/entity/Message.kt b/core/src/commonMain/kotlin/entity/Message.kt index 3669a148878..1d5bd653462 100644 --- a/core/src/commonMain/kotlin/entity/Message.kt +++ b/core/src/commonMain/kotlin/entity/Message.kt @@ -12,6 +12,7 @@ import dev.kord.core.behavior.MessageBehavior import dev.kord.core.behavior.UserBehavior import dev.kord.core.behavior.channel.ChannelBehavior import dev.kord.core.behavior.interaction.response.InteractionResponseBehavior +import dev.kord.core.cache.data.InteractionMetadataData import dev.kord.core.cache.data.MessageData import dev.kord.core.cache.data.MessageInteractionData import dev.kord.core.entity.application.ApplicationCommand @@ -23,13 +24,13 @@ import dev.kord.core.entity.component.ActionRowComponent import dev.kord.core.entity.interaction.ActionInteraction import dev.kord.core.entity.interaction.followup.FollowupMessage import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.core.supplier.getChannelOf import dev.kord.core.supplier.getChannelOfOrNull import kotlinx.coroutines.flow.* import kotlinx.datetime.Instant -import dev.kord.core.hash /** * An instance of a [Discord Message][https://discord.com/developers/docs/resources/channel#message-object]. @@ -40,11 +41,33 @@ public class Message( override val supplier: EntitySupplier = kord.defaultSupplier, ) : MessageBehavior { + /** + * An instance of [InteractionMetadata](https://discord.com/developers/docs/resources/message#message-interaction-metadata-object) + */ + public class InteractionMetadata( + public val data: InteractionMetadataData, + override val kord: Kord, + override val supplier: EntitySupplier = kord.defaultSupplier, + ) : KordEntity, Strategizable { + override val id: Snowflake get() = data.id + public val type: InteractionType get() = data.type + public val user: User get() = User(data.user, kord, supplier) + + public val authorizingIntegrationOwners: IntegrationOwners get() = data.authorizingIntegrationOwners + public val originalResponseMessageId: Snowflake? get() = data.originalResponseMessageId.value + public val interactedMessageId: Snowflake? get() = data.interactedMessageId.value + public val triggeringInteractionMetadata: DiscordInteractionMetadata? get() = data.triggeringInteractionMetadata.value + + override fun withStrategy(strategy: EntitySupplyStrategy<*>): Strategizable = + InteractionMetadata(data, kord, strategy.supply(kord)) + } + /** * An instance of [MessageInteraction](https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object) * * This is sent on the [Message] object when the message is a response to an [ActionInteraction]. */ + @Deprecated("Deprecated in favor of InteractionMetadata") public class Interaction( public val data: MessageInteractionData, override val kord: Kord, @@ -82,6 +105,7 @@ public class Message( */ public suspend fun getUserOrNull(): User? = supplier.getUserOrNull(user.id) + @Suppress("DEPRECATION") override fun withStrategy(strategy: EntitySupplyStrategy<*>): Interaction = Interaction(data, kord, strategy.supply(kord)) } @@ -181,7 +205,13 @@ public class Message( * so its state is unknown. * If the field exists but is null, the referenced message was deleted. */ - public val messageReference: MessageReference? get() = data.messageReference.value?.let { MessageReference(it, kord) } + public val messageReference: MessageReference? + get() = data.messageReference.value?.let { + MessageReference( + it, + kord + ) + } /** * The [Channels][Channel] specifically mentioned in this message. @@ -238,8 +268,16 @@ public class Message( /** * The [Message.Interaction] sent on this message object when it is a response to an [ActionInteraction]. */ + @Deprecated("Deprecated in favor of interactionMetadata", ReplaceWith("interactionMetadata")) + @Suppress("DEPRECATION") public val interaction: Interaction? get() = data.interaction.mapNullable { Interaction(it, kord) }.value + /** + * The [Message.Interaction] sent on this message object when it is a response to an [ActionInteraction]. + */ + public val interactionMetadata: InteractionMetadata? + get() = data.interactionMetadata.mapNullable { InteractionMetadata(it, kord) }.value + /** * The [users][User] mentioned in this message. * diff --git a/core/src/commonMain/kotlin/entity/interaction/GuildInteraction.kt b/core/src/commonMain/kotlin/entity/interaction/GuildInteraction.kt index ad68b1e4051..672433ce228 100644 --- a/core/src/commonMain/kotlin/entity/interaction/GuildInteraction.kt +++ b/core/src/commonMain/kotlin/entity/interaction/GuildInteraction.kt @@ -25,7 +25,7 @@ public sealed interface GuildInteraction : Interaction, GuildInteractionBehavior * [Permissions] the [application][applicationId] has within the [channel][GuildInteractionBehavior.channel] the * interaction was sent from. */ - public val appPermissions: Permissions get() = data.appPermissions.value!! + public val appPermissions: Permissions get() = data.appPermissions override fun withStrategy(strategy: EntitySupplyStrategy<*>): GuildInteraction } diff --git a/core/src/commonMain/kotlin/entity/interaction/Interaction.kt b/core/src/commonMain/kotlin/entity/interaction/Interaction.kt index b61dcad5167..88a8909ee9a 100644 --- a/core/src/commonMain/kotlin/entity/interaction/Interaction.kt +++ b/core/src/commonMain/kotlin/entity/interaction/Interaction.kt @@ -1,6 +1,8 @@ package dev.kord.core.entity.interaction import dev.kord.common.Locale +import dev.kord.common.entity.ApplicationIntegrationType +import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.InteractionType import dev.kord.common.entity.Snowflake import dev.kord.common.entity.optional.OptionalSnowflake @@ -53,6 +55,24 @@ public sealed interface Interaction : InteractionBehavior { */ public val version: Int get() = data.version + /** + * Map of the authorizing users id by [type][ApplicationIntegrationType]. + * + * For [ApplicationIntegrationType.GuildInstall] this will be: + * - the guildId, if it's on a guild + * - `0` if it is from a user DM + * + * For [ApplicationIntegrationType.UserInstall] this will be: + * - The id of the authorizing user + */ + public val authorizingIntegrationOwners: Map + get() = data.authorizingIntegrationOwners + + /** + * [Context][InteractionContextType] where the interaction was triggered from. + */ + public val context: InteractionContextType? get() = data.context.value + override fun withStrategy(strategy: EntitySupplyStrategy<*>): Interaction public companion object { @@ -71,6 +91,7 @@ public sealed interface Interaction : InteractionBehavior { GlobalApplicationCommandInteraction(data, kord, strategy.supply(kord)) } } + InteractionType.Ping, is InteractionType.Unknown -> error("Unsupported interaction type: $type") } } diff --git a/core/src/commonMain/kotlin/gateway/handler/MessageEventHandler.kt b/core/src/commonMain/kotlin/gateway/handler/MessageEventHandler.kt index dc4f333a4ba..2dbdf073ec3 100644 --- a/core/src/commonMain/kotlin/gateway/handler/MessageEventHandler.kt +++ b/core/src/commonMain/kotlin/gateway/handler/MessageEventHandler.kt @@ -63,6 +63,7 @@ internal class MessageEventHandler : BaseGatewayEventHandler() { Member(memberData, userData, kord) } else null + @Suppress("DEPRECATION") //cache interaction user if present. if (interaction is Optional.Value) { val interactionUserData = UserData.from(interaction.value!!.user) diff --git a/rest/api/rest.api b/rest/api/rest.api index 91bf1d6b21b..fef3709807d 100644 --- a/rest/api/rest.api +++ b/rest/api/rest.api @@ -1420,18 +1420,26 @@ public final class dev/kord/rest/builder/integration/IntegrationModifyBuilder : public abstract interface class dev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder : dev/kord/rest/builder/RequestBuilder, dev/kord/rest/builder/interaction/LocalizedNameCreateBuilder { public abstract fun disableCommandInGuilds ()V + public abstract fun getContexts ()Ljava/util/List; public abstract fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public abstract fun getDefaultPermission ()Ljava/lang/Boolean; + public abstract fun getIntegrationTypes ()Ljava/util/List; public abstract fun getNsfw ()Ljava/lang/Boolean; public abstract fun getType ()Ldev/kord/common/entity/ApplicationCommandType; + public abstract fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public abstract fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public abstract fun setContexts (Ljava/util/List;)V public abstract fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public abstract fun setDefaultPermission (Ljava/lang/Boolean;)V + public abstract fun setIntegrationTypes (Ljava/util/List;)V public abstract fun setNsfw (Ljava/lang/Boolean;)V } public final class dev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder$DefaultImpls { public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder;)V public static fun name (Ldev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public abstract interface class dev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder : dev/kord/rest/builder/RequestBuilder, dev/kord/rest/builder/interaction/LocalizedNameModifyBuilder { @@ -1494,28 +1502,36 @@ public final class dev/kord/rest/builder/interaction/ChatInputCreateBuilder$Defa public static fun description (Ldev/kord/rest/builder/interaction/ChatInputCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/ChatInputCreateBuilder;)V public static fun name (Ldev/kord/rest/builder/interaction/ChatInputCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/ChatInputCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/ChatInputCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/ChatInputCreateBuilderImpl : dev/kord/rest/builder/interaction/GlobalChatInputCreateBuilder { public fun (Ljava/lang/String;Ljava/lang/String;)V public fun description (Ldev/kord/common/Locale;Ljava/lang/String;)V public fun disableCommandInGuilds ()V + public fun getContexts ()Ljava/util/List; public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public fun getDefaultPermission ()Ljava/lang/Boolean; public fun getDescription ()Ljava/lang/String; public fun getDescriptionLocalizations ()Ljava/util/Map; public fun getDmPermission ()Ljava/lang/Boolean; + public fun getIntegrationTypes ()Ljava/util/List; public fun getName ()Ljava/lang/String; public fun getNameLocalizations ()Ljava/util/Map; public fun getNsfw ()Ljava/lang/Boolean; public fun getOptions ()Ljava/util/List; public fun getType ()Ldev/kord/common/entity/ApplicationCommandType; public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public fun setContexts (Ljava/util/List;)V public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public fun setDefaultPermission (Ljava/lang/Boolean;)V public fun setDescription (Ljava/lang/String;)V public fun setDescriptionLocalizations (Ljava/util/Map;)V public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setIntegrationTypes (Ljava/util/List;)V public fun setName (Ljava/lang/String;)V public fun setNameLocalizations (Ljava/util/Map;)V public fun setNsfw (Ljava/lang/Boolean;)V @@ -1577,6 +1593,8 @@ public abstract interface class dev/kord/rest/builder/interaction/GlobalApplicat public final class dev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder$DefaultImpls { public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder;)V public static fun name (Ldev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public abstract interface class dev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder : dev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder { @@ -1595,6 +1613,8 @@ public final class dev/kord/rest/builder/interaction/GlobalChatInputCreateBuilde public static fun description (Ldev/kord/rest/builder/interaction/GlobalChatInputCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/GlobalChatInputCreateBuilder;)V public static fun name (Ldev/kord/rest/builder/interaction/GlobalChatInputCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalChatInputCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalChatInputCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public abstract interface class dev/kord/rest/builder/interaction/GlobalChatInputModifyBuilder : dev/kord/rest/builder/interaction/ChatInputModifyBuilder, dev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder { @@ -1611,6 +1631,8 @@ public abstract interface class dev/kord/rest/builder/interaction/GlobalMessageC public final class dev/kord/rest/builder/interaction/GlobalMessageCommandCreateBuilder$DefaultImpls { public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/GlobalMessageCommandCreateBuilder;)V public static fun name (Ldev/kord/rest/builder/interaction/GlobalMessageCommandCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalMessageCommandCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalMessageCommandCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public abstract interface class dev/kord/rest/builder/interaction/GlobalMessageCommandModifyBuilder : dev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder, dev/kord/rest/builder/interaction/MessageCommandModifyBuilder { @@ -1636,6 +1658,8 @@ public abstract interface class dev/kord/rest/builder/interaction/GlobalUserComm public final class dev/kord/rest/builder/interaction/GlobalUserCommandCreateBuilder$DefaultImpls { public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/GlobalUserCommandCreateBuilder;)V public static fun name (Ldev/kord/rest/builder/interaction/GlobalUserCommandCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalUserCommandCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalUserCommandCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public abstract interface class dev/kord/rest/builder/interaction/GlobalUserCommandModifyBuilder : dev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder, dev/kord/rest/builder/interaction/UserCommandModifyBuilder { @@ -1759,22 +1783,30 @@ public abstract interface class dev/kord/rest/builder/interaction/MessageCommand public final class dev/kord/rest/builder/interaction/MessageCommandCreateBuilder$DefaultImpls { public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/MessageCommandCreateBuilder;)V public static fun name (Ldev/kord/rest/builder/interaction/MessageCommandCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/MessageCommandCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/MessageCommandCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/MessageCommandCreateBuilderImpl : dev/kord/rest/builder/interaction/GlobalMessageCommandCreateBuilder { public fun (Ljava/lang/String;)V public fun disableCommandInGuilds ()V + public fun getContexts ()Ljava/util/List; public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public fun getDefaultPermission ()Ljava/lang/Boolean; public fun getDmPermission ()Ljava/lang/Boolean; + public fun getIntegrationTypes ()Ljava/util/List; public fun getName ()Ljava/lang/String; public fun getNameLocalizations ()Ljava/util/Map; public fun getNsfw ()Ljava/lang/Boolean; public fun getType ()Ldev/kord/common/entity/ApplicationCommandType; public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public fun setContexts (Ljava/util/List;)V public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public fun setDefaultPermission (Ljava/lang/Boolean;)V public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setIntegrationTypes (Ljava/util/List;)V public fun setName (Ljava/lang/String;)V public fun setNameLocalizations (Ljava/util/Map;)V public fun setNsfw (Ljava/lang/Boolean;)V @@ -1906,22 +1938,30 @@ public abstract interface class dev/kord/rest/builder/interaction/UserCommandCre public final class dev/kord/rest/builder/interaction/UserCommandCreateBuilder$DefaultImpls { public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/UserCommandCreateBuilder;)V public static fun name (Ldev/kord/rest/builder/interaction/UserCommandCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/UserCommandCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/UserCommandCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/UserCommandCreateBuilderImpl : dev/kord/rest/builder/interaction/GlobalUserCommandCreateBuilder { public fun (Ljava/lang/String;)V public fun disableCommandInGuilds ()V + public fun getContexts ()Ljava/util/List; public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public fun getDefaultPermission ()Ljava/lang/Boolean; public fun getDmPermission ()Ljava/lang/Boolean; + public fun getIntegrationTypes ()Ljava/util/List; public fun getName ()Ljava/lang/String; public fun getNameLocalizations ()Ljava/util/Map; public fun getNsfw ()Ljava/lang/Boolean; public fun getType ()Ldev/kord/common/entity/ApplicationCommandType; public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public fun setContexts (Ljava/util/List;)V public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public fun setDefaultPermission (Ljava/lang/Boolean;)V public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setIntegrationTypes (Ljava/util/List;)V public fun setName (Ljava/lang/String;)V public fun setNameLocalizations (Ljava/util/Map;)V public fun setNsfw (Ljava/lang/Boolean;)V diff --git a/rest/api/rest.klib.api b/rest/api/rest.klib.api index 569a77c7fb9..8f13adadefb 100644 --- a/rest/api/rest.klib.api +++ b/rest/api/rest.klib.api @@ -249,17 +249,25 @@ abstract interface dev.kord.rest.builder.interaction/ApplicationCommandCreateBui abstract val type // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.type|{}type[0] abstract fun (): dev.kord.common.entity/ApplicationCommandType // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.type.|(){}[0] + abstract var contexts // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.contexts|{}contexts[0] + abstract fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.contexts.|(){}[0] + abstract fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.contexts.|(kotlin.collections.MutableList?){}[0] abstract var defaultMemberPermissions // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.defaultMemberPermissions|{}defaultMemberPermissions[0] abstract fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.defaultMemberPermissions.|(){}[0] abstract fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] abstract var defaultPermission // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.defaultPermission|{}defaultPermission[0] abstract fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.defaultPermission.|(){}[0] abstract fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.defaultPermission.|(kotlin.Boolean?){}[0] + abstract var integrationTypes // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.integrationTypes|{}integrationTypes[0] + abstract fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.integrationTypes.|(){}[0] + abstract fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.integrationTypes.|(kotlin.collections.MutableList?){}[0] abstract var nsfw // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.nsfw|{}nsfw[0] abstract fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.nsfw.|(){}[0] abstract fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.nsfw.|(kotlin.Boolean?){}[0] open fun disableCommandInGuilds() // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.disableCommandInGuilds|disableCommandInGuilds(){}[0] + open fun requireContext(kotlin/Array...) // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.requireContext|requireContext(kotlin.Array...){}[0] + open fun requireIntegrationTypes(kotlin/Array...) // dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder.requireIntegrationTypes|requireIntegrationTypes(kotlin.Array...){}[0] } abstract interface dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder : dev.kord.rest.builder.interaction/LocalizedNameModifyBuilder, dev.kord.rest.builder/RequestBuilder { // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder|null[0] @@ -2123,6 +2131,9 @@ final class dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl : dev.k final val type // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.type|{}type[0] final fun (): dev.kord.common.entity/ApplicationCommandType // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.type.|(){}[0] + final var contexts // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.contexts|{}contexts[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.contexts.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.contexts.|(kotlin.collections.MutableList?){}[0] final var defaultMemberPermissions // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.defaultMemberPermissions.|(){}[0] final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] @@ -2138,6 +2149,9 @@ final class dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl : dev.k final var dmPermission // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.dmPermission|{}dmPermission[0] final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.dmPermission.|(){}[0] final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var integrationTypes // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.integrationTypes|{}integrationTypes[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.integrationTypes.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.integrationTypes.|(kotlin.collections.MutableList?){}[0] final var name // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.name|{}name[0] final fun (): kotlin/String // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.name.|(){}[0] final fun (kotlin/String) // dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl.name.|(kotlin.String){}[0] @@ -2240,6 +2254,9 @@ final class dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl : final val type // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.type|{}type[0] final fun (): dev.kord.common.entity/ApplicationCommandType // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.type.|(){}[0] + final var contexts // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.contexts|{}contexts[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.contexts.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.contexts.|(kotlin.collections.MutableList?){}[0] final var defaultMemberPermissions // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.defaultMemberPermissions.|(){}[0] final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] @@ -2249,6 +2266,9 @@ final class dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl : final var dmPermission // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.dmPermission|{}dmPermission[0] final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.dmPermission.|(){}[0] final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var integrationTypes // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.integrationTypes|{}integrationTypes[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.integrationTypes.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.integrationTypes.|(kotlin.collections.MutableList?){}[0] final var name // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.name|{}name[0] final fun (): kotlin/String // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.name.|(){}[0] final fun (kotlin/String) // dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl.name.|(kotlin.String){}[0] @@ -2342,6 +2362,9 @@ final class dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl : dev final val type // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.type|{}type[0] final fun (): dev.kord.common.entity/ApplicationCommandType // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.type.|(){}[0] + final var contexts // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.contexts|{}contexts[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.contexts.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.contexts.|(kotlin.collections.MutableList?){}[0] final var defaultMemberPermissions // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.defaultMemberPermissions.|(){}[0] final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] @@ -2351,6 +2374,9 @@ final class dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl : dev final var dmPermission // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.dmPermission|{}dmPermission[0] final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.dmPermission.|(){}[0] final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var integrationTypes // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.integrationTypes|{}integrationTypes[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.integrationTypes.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.integrationTypes.|(kotlin.collections.MutableList?){}[0] final var name // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.name|{}name[0] final fun (): kotlin/String // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.name.|(){}[0] final fun (kotlin/String) // dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl.name.|(kotlin.String){}[0] diff --git a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandBuilders.kt index ce01d46a1c1..15f83e14c88 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandBuilders.kt @@ -2,6 +2,8 @@ package dev.kord.rest.builder.interaction import dev.kord.common.annotation.KordDsl import dev.kord.common.entity.ApplicationCommandType +import dev.kord.common.entity.ApplicationIntegrationType +import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.rest.builder.RequestBuilder import dev.kord.rest.json.request.ApplicationCommandCreateRequest @@ -15,6 +17,8 @@ public interface ApplicationCommandCreateBuilder : LocalizedNameCreateBuilder, @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") public var defaultPermission: Boolean? + public var integrationTypes: MutableList? + public var contexts: MutableList? public val type: ApplicationCommandType /** @@ -26,17 +30,33 @@ public interface ApplicationCommandCreateBuilder : LocalizedNameCreateBuilder, defaultMemberPermissions = Permissions() } + /** + * Requires this command to be executed in a specific [installation context][ApplicationIntegrationType]. + */ + public fun requireIntegrationTypes(vararg types: ApplicationIntegrationType) { + integrationTypes?.addAll(types) ?: run { integrationTypes = types.toMutableList() } + } + + /** + * Requires this command to be executed in a specific [interaction context][InteractionContextType]. + */ + public fun requireContext(vararg types: InteractionContextType) { + contexts?.addAll(types) ?: run { contexts = types.toMutableList() } + } + /** Indicates whether the command is age-restricted. Defaults to `false`. */ public var nsfw: Boolean? } @KordDsl public interface GlobalApplicationCommandCreateBuilder : ApplicationCommandCreateBuilder { + @Deprecated("Deprecated in favor of contexts", ReplaceWith("requireContext(InteractionContextType.Guild)")) public var dmPermission: Boolean? } @KordDsl public interface GlobalApplicationCommandModifyBuilder : ApplicationCommandModifyBuilder { + @Deprecated("Deprecated in favor of contexts", ReplaceWith("requireContext(InteractionContextType.Guild)")) public var dmPermission: Boolean? } diff --git a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt index 211491d7b07..6359879468e 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt @@ -1,6 +1,8 @@ package dev.kord.rest.builder.interaction import dev.kord.common.Locale +import dev.kord.common.entity.ApplicationIntegrationType +import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.OptionalBoolean @@ -23,6 +25,8 @@ internal class ApplicationCommandModifyStateHolder { var defaultMemberPermissions: Optional = Optional.Missing() var dmPermission: OptionalBoolean? = OptionalBoolean.Missing + var integrationTypes: Optional> = Optional.Missing() + var contexts: Optional> = Optional.Missing() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") diff --git a/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt index dbd3c150f5c..f6b0f7151e3 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt @@ -3,6 +3,8 @@ package dev.kord.rest.builder.interaction import dev.kord.common.Locale import dev.kord.common.annotation.KordDsl import dev.kord.common.entity.ApplicationCommandType +import dev.kord.common.entity.ApplicationIntegrationType +import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.delegate.delegate @@ -147,7 +149,11 @@ internal class ChatInputCreateBuilderImpl( override var options: MutableList? by state::options.delegate() override var defaultMemberPermissions: Permissions? by state::defaultMemberPermissions.delegate() + + @Suppress("OVERRIDE_DEPRECATION") override var dmPermission: Boolean? by state::dmPermission.delegate() + override var integrationTypes: MutableList? by state::integrationTypes.delegate() + override var contexts: MutableList? by state::contexts.delegate() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") override var defaultPermission: Boolean? by @Suppress("DEPRECATION") state::defaultPermission.delegate() @@ -192,6 +198,7 @@ internal class ChatInputModifyBuilderImpl : GlobalChatInputModifyBuilder { override var options: MutableList? by state::options.delegate() override var defaultMemberPermissions: Permissions? by state::defaultMemberPermissions.delegate() + @Suppress("OVERRIDE_DEPRECATION") override var dmPermission: Boolean? by state::dmPermission.delegate() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") diff --git a/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt index 70b2676b48c..89bcacef64c 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt @@ -3,6 +3,8 @@ package dev.kord.rest.builder.interaction import dev.kord.common.Locale import dev.kord.common.annotation.KordDsl import dev.kord.common.entity.ApplicationCommandType +import dev.kord.common.entity.ApplicationIntegrationType +import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.delegate.delegate import dev.kord.rest.json.request.ApplicationCommandCreateRequest @@ -24,6 +26,7 @@ internal class MessageCommandModifyBuilderImpl : GlobalMessageCommandModifyBuild override var nameLocalizations: MutableMap? by state::nameLocalizations.delegate() override var defaultMemberPermissions: Permissions? by state::defaultMemberPermissions.delegate() + @Suppress("OVERRIDE_DEPRECATION") override var dmPermission: Boolean? by state::dmPermission.delegate() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") @@ -62,7 +65,10 @@ internal class MessageCommandCreateBuilderImpl(override var name: String) : Glob override var nameLocalizations: MutableMap? by state::nameLocalizations.delegate() override var defaultMemberPermissions: Permissions? by state::defaultMemberPermissions.delegate() + @Suppress("OVERRIDE_DEPRECATION") override var dmPermission: Boolean? by state::dmPermission.delegate() + override var integrationTypes: MutableList? by state::integrationTypes.delegate() + override var contexts: MutableList? by state::contexts.delegate() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") override var defaultPermission: Boolean? by @Suppress("DEPRECATION") state::defaultPermission.delegate() diff --git a/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt index 12a7383749b..ccf956cecfa 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt @@ -3,6 +3,8 @@ package dev.kord.rest.builder.interaction import dev.kord.common.Locale import dev.kord.common.annotation.KordDsl import dev.kord.common.entity.ApplicationCommandType +import dev.kord.common.entity.ApplicationIntegrationType +import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.delegate.delegate import dev.kord.rest.json.request.ApplicationCommandCreateRequest @@ -23,6 +25,7 @@ internal class UserCommandModifyBuilderImpl : GlobalUserCommandModifyBuilder { override var nameLocalizations: MutableMap? by state::nameLocalizations.delegate() override var defaultMemberPermissions: Permissions? by state::defaultMemberPermissions.delegate() + @Suppress("OVERRIDE_DEPRECATION") override var dmPermission: Boolean? by state::dmPermission.delegate() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") @@ -57,7 +60,10 @@ internal class UserCommandCreateBuilderImpl(override var name: String) : GlobalU override var nameLocalizations: MutableMap? by state::nameLocalizations.delegate() override var defaultMemberPermissions: Permissions? by state::defaultMemberPermissions.delegate() + @Suppress("OVERRIDE_DEPRECATION") override var dmPermission: Boolean? by state::dmPermission.delegate() + override var integrationTypes: MutableList? by state::integrationTypes.delegate() + override var contexts: MutableList? by state::contexts.delegate() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") override var defaultPermission: Boolean? by @Suppress("DEPRECATION") state::defaultPermission.delegate() From d567e98ac26afc413570f84296bb9b8fa2acedd7 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 25 Aug 2024 12:39:35 +0200 Subject: [PATCH 02/22] Fix failing tests --- .../resources/json/interaction/groupsubcommand.json | 3 ++- .../commonTest/resources/json/interaction/rootcommand.json | 3 ++- .../src/commonTest/resources/json/interaction/selectmenu.json | 3 ++- .../src/commonTest/resources/json/interaction/subcommand.json | 3 ++- .../kotlin/json/DispatchEventDeserializationTest.kt | 4 +++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/common/src/commonTest/resources/json/interaction/groupsubcommand.json b/common/src/commonTest/resources/json/interaction/groupsubcommand.json index 1e27103d55d..c7ed5b536c0 100644 --- a/common/src/commonTest/resources/json/interaction/groupsubcommand.json +++ b/common/src/commonTest/resources/json/interaction/groupsubcommand.json @@ -54,5 +54,6 @@ "application_id": "297153970613387264", "app_permissions": "2147483647", "locale": "de", - "guild_locale": "en-US" + "guild_locale": "en-US", + "authorizing_integration_owners": {"0": "0"} } diff --git a/common/src/commonTest/resources/json/interaction/rootcommand.json b/common/src/commonTest/resources/json/interaction/rootcommand.json index 9424de1ccbc..115402d881a 100644 --- a/common/src/commonTest/resources/json/interaction/rootcommand.json +++ b/common/src/commonTest/resources/json/interaction/rootcommand.json @@ -42,5 +42,6 @@ "application_id": "297153970613387264", "app_permissions": "2147483647", "locale": "de", - "guild_locale": "en-US" + "guild_locale": "en-US", + "authorizing_integration_owners": {"0": "0"} } diff --git a/common/src/commonTest/resources/json/interaction/selectmenu.json b/common/src/commonTest/resources/json/interaction/selectmenu.json index de514c5202d..b7fa443b0d2 100644 --- a/common/src/commonTest/resources/json/interaction/selectmenu.json +++ b/common/src/commonTest/resources/json/interaction/selectmenu.json @@ -122,5 +122,6 @@ }, "token": "UNIQUE_TOKEN", "type": 3, - "version": 1 + "version": 1, + "authorizing_integration_owners": {"0": "0"} } diff --git a/common/src/commonTest/resources/json/interaction/subcommand.json b/common/src/commonTest/resources/json/interaction/subcommand.json index 7165eb0220e..8198eb8dd7f 100644 --- a/common/src/commonTest/resources/json/interaction/subcommand.json +++ b/common/src/commonTest/resources/json/interaction/subcommand.json @@ -48,5 +48,6 @@ "application_id": "297153970613387264", "app_permissions": "2147483647", "locale": "de", - "guild_locale": "en-US" + "guild_locale": "en-US", + "authorizing_integration_owners": {"0": "0"} } diff --git a/gateway/src/commonTest/kotlin/json/DispatchEventDeserializationTest.kt b/gateway/src/commonTest/kotlin/json/DispatchEventDeserializationTest.kt index ae7ab0cd696..1d73f840b34 100644 --- a/gateway/src/commonTest/kotlin/json/DispatchEventDeserializationTest.kt +++ b/gateway/src/commonTest/kotlin/json/DispatchEventDeserializationTest.kt @@ -548,9 +548,11 @@ class DispatchEventDeserializationTest { type = InteractionType.Ping, data = InteractionCallbackData(), token = "hunter2", + appPermissions = Permissions(), + authorizingIntegrationOwners = mapOf(ApplicationIntegrationType.GuildInstall to Snowflake.min), version = 1, ), - json = """{"id":"0","application_id":"0","type":1,"data":{},"token":"hunter2","version":1}""", + json = """{"id":"0","application_id":"0","type":1,"data":{},"token":"hunter2","version":1, "app_permissions":"0", "authorizing_integration_owners": {"0": 0}}""", ) @Test From 366a1a7c85941f4c0ad80e55b29dfed7d78bce48 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 25 Aug 2024 13:22:05 +0200 Subject: [PATCH 03/22] Make contexts nullable --- common/api/common.klib.api | 8 ++++---- common/src/commonMain/kotlin/entity/Interactions.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/api/common.klib.api b/common/api/common.klib.api index 81de4e08f45..375ac4c9aeb 100644 --- a/common/api/common.klib.api +++ b/common/api/common.klib.api @@ -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 (dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Snowflake, kotlin/String, dev.kord.common.entity.optional/Optional?> = ..., kotlin/String?, dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional> = ..., 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> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity/Snowflake) // dev.kord.common.entity/DiscordApplicationCommand.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional?>;kotlin.String?;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional>;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>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.Snowflake){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Snowflake, kotlin/String, dev.kord.common.entity.optional/Optional?> = ..., kotlin/String?, dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional> = ..., 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> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/Snowflake) // dev.kord.common.entity/DiscordApplicationCommand.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional?>;kotlin.String?;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional>;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>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.Snowflake){}[0] final val applicationId // dev.kord.common.entity/DiscordApplicationCommand.applicationId|{}applicationId[0] final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.applicationId.|(){}[0] final val contexts // dev.kord.common.entity/DiscordApplicationCommand.contexts|{}contexts[0] - final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplicationCommand.contexts.|(){}[0] + final fun (): dev.kord.common.entity.optional/Optional?> // dev.kord.common.entity/DiscordApplicationCommand.contexts.|(){}[0] final val defaultMemberPermissions // dev.kord.common.entity/DiscordApplicationCommand.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.common.entity/DiscordApplicationCommand.defaultMemberPermissions.|(){}[0] final val defaultPermission // dev.kord.common.entity/DiscordApplicationCommand.defaultPermission|{}defaultPermission[0] @@ -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> // dev.kord.common.entity/DiscordApplicationCommand.component14|component14(){}[0] - final fun component15(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplicationCommand.component15|component15(){}[0] + final fun component15(): dev.kord.common.entity.optional/Optional?> // 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/DiscordApplicationCommand.component2|component2(){}[0] final fun component3(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordApplicationCommand.component3|component3(){}[0] @@ -1086,7 +1086,7 @@ final class dev.kord.common.entity/DiscordApplicationCommand { // dev.kord.commo final fun component7(): dev.kord.common.entity.optional/Optional?> // 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> // 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/Snowflake = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional?> = ..., kotlin/String? = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional> = ..., 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> = ..., dev.kord.common.entity.optional/Optional> = ..., 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.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional?>;kotlin.String?;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional>;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>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.Snowflake){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional?> = ..., kotlin/String? = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional> = ..., 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> = ..., dev.kord.common.entity.optional/Optional?> = ..., 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.Snowflake;kotlin.String;dev.kord.common.entity.optional.Optional?>;kotlin.String?;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional>;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>;dev.kord.common.entity.optional.Optional?>;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] diff --git a/common/src/commonMain/kotlin/entity/Interactions.kt b/common/src/commonMain/kotlin/entity/Interactions.kt index 2a48e7e835a..ef4e1e4be13 100644 --- a/common/src/commonMain/kotlin/entity/Interactions.kt +++ b/common/src/commonMain/kotlin/entity/Interactions.kt @@ -137,7 +137,7 @@ public data class DiscordApplicationCommand( val nsfw: OptionalBoolean = OptionalBoolean.Missing, @SerialName("integration_types") val integrationTypes: Optional> = Optional.Missing(), - val contexts: Optional> = Optional.Missing(), + val contexts: Optional?> = Optional.Missing(), val version: Snowflake ) From 041a4051ef8194a2e219f6e88e4a02ee721f501c Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 25 Aug 2024 17:08:59 +0200 Subject: [PATCH 04/22] Add count approximations --- common/src/commonMain/kotlin/entity/DiscordApplication.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/src/commonMain/kotlin/entity/DiscordApplication.kt b/common/src/commonMain/kotlin/entity/DiscordApplication.kt index b0eadb7a88f..147c923a78e 100644 --- a/common/src/commonMain/kotlin/entity/DiscordApplication.kt +++ b/common/src/commonMain/kotlin/entity/DiscordApplication.kt @@ -57,6 +57,7 @@ package dev.kord.common.entity import dev.kord.common.entity.optional.Optional +import dev.kord.common.entity.optional.OptionalInt import dev.kord.common.entity.optional.OptionalSnowflake import dev.kord.ksp.Generate import dev.kord.ksp.Generate.EntityType.INT_FLAGS @@ -119,6 +120,10 @@ public data class DiscordApplication( @SerialName("cover_image") override val coverImage: Optional = Optional.Missing(), override val flags: Optional = Optional.Missing(), + @SerialName("approximate_guild_count") + val approximateGuildCount: OptionalInt = OptionalInt.Missing, + @SerialName("approximate_user_install_count") + val approximateUserInstallCount: OptionalInt = OptionalInt.Missing, override val tags: Optional> = Optional.Missing(), @SerialName("install_params") override val installParams: Optional = Optional.Missing(), From 97594ea2a2ccd61d9ab377e9334074b93204d3ef Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Mon, 26 Aug 2024 00:56:43 +0200 Subject: [PATCH 05/22] Fix Serialization of interactions --- common/api/common.api | 47 ++++++++++++-- common/api/common.klib.api | 62 +++++++++++++++---- .../commonMain/kotlin/entity/Interactions.kt | 5 +- 3 files changed, 96 insertions(+), 18 deletions(-) diff --git a/common/api/common.api b/common/api/common.api index f109f644eec..8e382735e92 100644 --- a/common/api/common.api +++ b/common/api/common.api @@ -2489,8 +2489,8 @@ public final class dev/kord/common/entity/DiscordAddedGuildMember$Companion { public final class dev/kord/common/entity/DiscordApplication : dev/kord/common/entity/BaseDiscordApplication { public static final field Companion Ldev/kord/common/entity/DiscordApplication$Companion; - public fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V - public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/Snowflake; public final fun component10 ()Ldev/kord/common/entity/optional/Optional; public final fun component11 ()Ldev/kord/common/entity/optional/Optional; @@ -2503,11 +2503,13 @@ public final class dev/kord/common/entity/DiscordApplication : dev/kord/common/e public final fun component18 ()Ldev/kord/common/entity/optional/Optional; public final fun component19 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ljava/lang/String; - public final fun component20 ()Ldev/kord/common/entity/optional/Optional; - public final fun component21 ()Ldev/kord/common/entity/optional/Optional; + public final fun component20 ()Ldev/kord/common/entity/optional/OptionalInt; + public final fun component21 ()Ldev/kord/common/entity/optional/OptionalInt; public final fun component22 ()Ldev/kord/common/entity/optional/Optional; public final fun component23 ()Ldev/kord/common/entity/optional/Optional; public final fun component24 ()Ldev/kord/common/entity/optional/Optional; + public final fun component25 ()Ldev/kord/common/entity/optional/Optional; + public final fun component26 ()Ldev/kord/common/entity/optional/Optional; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ljava/lang/String; public final fun component5 ()Ldev/kord/common/entity/optional/Optional; @@ -2515,9 +2517,11 @@ public final class dev/kord/common/entity/DiscordApplication : dev/kord/common/e public final fun component7 ()Z public final fun component8 ()Ldev/kord/common/entity/optional/Optional; public final fun component9 ()Ldev/kord/common/entity/optional/Optional; - public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/DiscordApplication; - public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordApplication;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordApplication; + public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/DiscordApplication; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordApplication;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/lang/String;Ldev/kord/common/entity/DiscordTeam;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordApplication; public fun equals (Ljava/lang/Object;)Z + public final fun getApproximateGuildCount ()Ldev/kord/common/entity/optional/OptionalInt; + public final fun getApproximateUserInstallCount ()Ldev/kord/common/entity/optional/OptionalInt; public final fun getBot ()Ldev/kord/common/entity/optional/Optional; public final fun getBotPublic ()Z public final fun getBotRequireCodeGrant ()Z @@ -4392,6 +4396,37 @@ public final class dev/kord/common/entity/DiscordInteraction$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/kord/common/entity/DiscordInteraction$Guild { + public static final field Companion Ldev/kord/common/entity/DiscordInteraction$Guild$Companion; + public fun (Ldev/kord/common/Locale;Ldev/kord/common/entity/Snowflake;Ljava/util/List;)V + public final fun component1 ()Ldev/kord/common/Locale; + public final fun component2 ()Ldev/kord/common/entity/Snowflake; + public final fun component3 ()Ljava/util/List; + public final fun copy (Ldev/kord/common/Locale;Ldev/kord/common/entity/Snowflake;Ljava/util/List;)Ldev/kord/common/entity/DiscordInteraction$Guild; + public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordInteraction$Guild;Ldev/kord/common/Locale;Ldev/kord/common/entity/Snowflake;Ljava/util/List;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordInteraction$Guild; + public fun equals (Ljava/lang/Object;)Z + public final fun getFeatures ()Ljava/util/List; + public final fun getId ()Ldev/kord/common/entity/Snowflake; + public final fun getLocale ()Ldev/kord/common/Locale; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public synthetic class dev/kord/common/entity/DiscordInteraction$Guild$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/kord/common/entity/DiscordInteraction$Guild$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/kord/common/entity/DiscordInteraction$Guild; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/kord/common/entity/DiscordInteraction$Guild;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/kord/common/entity/DiscordInteraction$Guild$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + public final class dev/kord/common/entity/DiscordInteractionGuildMember { public static final field Companion Ldev/kord/common/entity/DiscordInteractionGuildMember$Companion; public fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ljava/util/List;Lkotlinx/datetime/Instant;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/Permissions;Ldev/kord/common/entity/GuildMemberFlags;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V diff --git a/common/api/common.klib.api b/common/api/common.klib.api index 375ac4c9aeb..a96e50bcc33 100644 --- a/common/api/common.klib.api +++ b/common/api/common.klib.api @@ -938,8 +938,12 @@ final class dev.kord.common.entity/DiscordAddedGuildMember { // dev.kord.common. } final class dev.kord.common.entity/DiscordApplication : dev.kord.common.entity/BaseDiscordApplication { // dev.kord.common.entity/DiscordApplication|null[0] - constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String?, kotlin/String, dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean, kotlin/Boolean, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, dev.kord.common.entity/DiscordTeam?, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordApplication.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.DiscordTeam?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + constructor (dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String?, kotlin/String, dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean, kotlin/Boolean, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, dev.kord.common.entity/DiscordTeam?, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordApplication.|(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.DiscordTeam?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + final val approximateGuildCount // dev.kord.common.entity/DiscordApplication.approximateGuildCount|{}approximateGuildCount[0] + final fun (): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordApplication.approximateGuildCount.|(){}[0] + final val approximateUserInstallCount // dev.kord.common.entity/DiscordApplication.approximateUserInstallCount|{}approximateUserInstallCount[0] + final fun (): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordApplication.approximateUserInstallCount.|(){}[0] final val bot // dev.kord.common.entity/DiscordApplication.bot|{}bot[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.bot.|(){}[0] final val botPublic // dev.kord.common.entity/DiscordApplication.botPublic|{}botPublic[0] @@ -1001,11 +1005,13 @@ final class dev.kord.common.entity/DiscordApplication : dev.kord.common.entity/B final fun component18(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component18|component18(){}[0] final fun component19(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component19|component19(){}[0] final fun component2(): kotlin/String // dev.kord.common.entity/DiscordApplication.component2|component2(){}[0] - final fun component20(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component20|component20(){}[0] - final fun component21(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component21|component21(){}[0] - final fun component22(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component22|component22(){}[0] - final fun component23(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component23|component23(){}[0] - final fun component24(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component24|component24(){}[0] + final fun component20(): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordApplication.component20|component20(){}[0] + final fun component21(): dev.kord.common.entity.optional/OptionalInt // dev.kord.common.entity/DiscordApplication.component21|component21(){}[0] + final fun component22(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component22|component22(){}[0] + final fun component23(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component23|component23(){}[0] + final fun component24(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component24|component24(){}[0] + final fun component25(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component25|component25(){}[0] + final fun component26(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component26|component26(){}[0] final fun component3(): kotlin/String? // dev.kord.common.entity/DiscordApplication.component3|component3(){}[0] final fun component4(): kotlin/String // dev.kord.common.entity/DiscordApplication.component4|component4(){}[0] final fun component5(): dev.kord.common.entity.optional/Optional> // dev.kord.common.entity/DiscordApplication.component5|component5(){}[0] @@ -1013,7 +1019,7 @@ final class dev.kord.common.entity/DiscordApplication : dev.kord.common.entity/B final fun component7(): kotlin/Boolean // dev.kord.common.entity/DiscordApplication.component7|component7(){}[0] final fun component8(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordApplication.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String? = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., dev.kord.common.entity/DiscordTeam? = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordApplication // dev.kord.common.entity/DiscordApplication.copy|copy(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.DiscordTeam?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., kotlin/String = ..., kotlin/String? = ..., kotlin/String = ..., dev.kord.common.entity.optional/Optional> = ..., kotlin/Boolean = ..., kotlin/Boolean = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., dev.kord.common.entity/DiscordTeam? = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/OptionalInt = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordApplication // dev.kord.common.entity/DiscordApplication.copy|copy(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String?;kotlin.String;dev.kord.common.entity.optional.Optional>;kotlin.Boolean;kotlin.Boolean;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;dev.kord.common.entity.DiscordTeam?;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.OptionalInt;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordApplication.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordApplication.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.common.entity/DiscordApplication.toString|toString(){}[0] @@ -3023,7 +3029,7 @@ final class dev.kord.common.entity/DiscordIntegrationsAccount { // dev.kord.comm } final class dev.kord.common.entity/DiscordInteraction { // dev.kord.common.entity/DiscordInteraction|null[0] - constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/InteractionType, dev.kord.common.entity/InteractionCallbackData, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, kotlin/Int, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Permissions, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin.collections/Map, dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordInteraction.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.InteractionCallbackData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Permissions;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.collections.Map;dev.kord.common.entity.optional.Optional){}[0] + constructor (dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/InteractionType, dev.kord.common.entity/InteractionCallbackData, dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String, kotlin/Int, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Permissions, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin.collections/Map, dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/DiscordInteraction.|(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.InteractionCallbackData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Permissions;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.collections.Map;dev.kord.common.entity.optional.Optional){}[0] final val appPermissions // dev.kord.common.entity/DiscordInteraction.appPermissions|{}appPermissions[0] final fun (): dev.kord.common.entity/Permissions // dev.kord.common.entity/DiscordInteraction.appPermissions.|(){}[0] @@ -3040,7 +3046,7 @@ final class dev.kord.common.entity/DiscordInteraction { // dev.kord.common.entit final val data // dev.kord.common.entity/DiscordInteraction.data|{}data[0] final fun (): dev.kord.common.entity/InteractionCallbackData // dev.kord.common.entity/DiscordInteraction.data.|(){}[0] final val guild // dev.kord.common.entity/DiscordInteraction.guild|{}guild[0] - final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.guild.|(){}[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.guild.|(){}[0] final val guildId // dev.kord.common.entity/DiscordInteraction.guildId|{}guildId[0] final fun (): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteraction.guildId.|(){}[0] final val guildLocale // dev.kord.common.entity/DiscordInteraction.guildLocale|{}guildLocale[0] @@ -3076,15 +3082,49 @@ final class dev.kord.common.entity/DiscordInteraction { // dev.kord.common.entit final fun component3(): dev.kord.common.entity/InteractionType // dev.kord.common.entity/DiscordInteraction.component3|component3(){}[0] final fun component4(): dev.kord.common.entity/InteractionCallbackData // dev.kord.common.entity/DiscordInteraction.component4|component4(){}[0] final fun component5(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteraction.component5|component5(){}[0] - final fun component6(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component6|component6(){}[0] + final fun component6(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component6|component6(){}[0] final fun component7(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component7|component7(){}[0] final fun component8(): dev.kord.common.entity.optional/OptionalSnowflake // dev.kord.common.entity/DiscordInteraction.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/DiscordInteraction.component9|component9(){}[0] - final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/InteractionType = ..., dev.kord.common.entity/InteractionCallbackData = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., kotlin/Int = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Permissions = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin.collections/Map = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordInteraction // dev.kord.common.entity/DiscordInteraction.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.InteractionCallbackData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Permissions;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.collections.Map;dev.kord.common.entity.optional.Optional){}[0] + final fun copy(dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/Snowflake = ..., dev.kord.common.entity/InteractionType = ..., dev.kord.common.entity/InteractionCallbackData = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalSnowflake = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin/String = ..., kotlin/Int = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity/Permissions = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional = ..., kotlin.collections/Map = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/DiscordInteraction // dev.kord.common.entity/DiscordInteraction.copy|copy(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.InteractionType;dev.kord.common.entity.InteractionCallbackData;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalSnowflake;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.String;kotlin.Int;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.Permissions;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional;kotlin.collections.Map;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordInteraction.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordInteraction.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.common.entity/DiscordInteraction.toString|toString(){}[0] + final class Guild { // dev.kord.common.entity/DiscordInteraction.Guild|null[0] + constructor (dev.kord.common/Locale, dev.kord.common.entity/Snowflake, kotlin.collections/List) // dev.kord.common.entity/DiscordInteraction.Guild.|(dev.kord.common.Locale;dev.kord.common.entity.Snowflake;kotlin.collections.List){}[0] + + final val features // dev.kord.common.entity/DiscordInteraction.Guild.features|{}features[0] + final fun (): kotlin.collections/List // dev.kord.common.entity/DiscordInteraction.Guild.features.|(){}[0] + final val id // dev.kord.common.entity/DiscordInteraction.Guild.id|{}id[0] + final fun (): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordInteraction.Guild.id.|(){}[0] + final val locale // dev.kord.common.entity/DiscordInteraction.Guild.locale|{}locale[0] + final fun (): dev.kord.common/Locale // dev.kord.common.entity/DiscordInteraction.Guild.locale.|(){}[0] + + final fun component1(): dev.kord.common/Locale // dev.kord.common.entity/DiscordInteraction.Guild.component1|component1(){}[0] + final fun component2(): dev.kord.common.entity/Snowflake // dev.kord.common.entity/DiscordInteraction.Guild.component2|component2(){}[0] + final fun component3(): kotlin.collections/List // dev.kord.common.entity/DiscordInteraction.Guild.component3|component3(){}[0] + final fun copy(dev.kord.common/Locale = ..., dev.kord.common.entity/Snowflake = ..., kotlin.collections/List = ...): dev.kord.common.entity/DiscordInteraction.Guild // dev.kord.common.entity/DiscordInteraction.Guild.copy|copy(dev.kord.common.Locale;dev.kord.common.entity.Snowflake;kotlin.collections.List){}[0] + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/DiscordInteraction.Guild.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.common.entity/DiscordInteraction.Guild.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.common.entity/DiscordInteraction.Guild.toString|toString(){}[0] + + final object $serializer : kotlinx.serialization.internal/GeneratedSerializer { // dev.kord.common.entity/DiscordInteraction.Guild.$serializer|null[0] + final val descriptor // dev.kord.common.entity/DiscordInteraction.Guild.$serializer.descriptor|{}descriptor[0] + final fun (): kotlinx.serialization.descriptors/SerialDescriptor // dev.kord.common.entity/DiscordInteraction.Guild.$serializer.descriptor.|(){}[0] + + final fun childSerializers(): kotlin/Array> // dev.kord.common.entity/DiscordInteraction.Guild.$serializer.childSerializers|childSerializers(){}[0] + final fun deserialize(kotlinx.serialization.encoding/Decoder): dev.kord.common.entity/DiscordInteraction.Guild // dev.kord.common.entity/DiscordInteraction.Guild.$serializer.deserialize|deserialize(kotlinx.serialization.encoding.Decoder){}[0] + final fun serialize(kotlinx.serialization.encoding/Encoder, dev.kord.common.entity/DiscordInteraction.Guild) // dev.kord.common.entity/DiscordInteraction.Guild.$serializer.serialize|serialize(kotlinx.serialization.encoding.Encoder;dev.kord.common.entity.DiscordInteraction.Guild){}[0] + } + + final object Companion { // dev.kord.common.entity/DiscordInteraction.Guild.Companion|null[0] + final val $childSerializers // dev.kord.common.entity/DiscordInteraction.Guild.Companion.$childSerializers|{}$childSerializers[0] + + final fun serializer(): kotlinx.serialization/KSerializer // dev.kord.common.entity/DiscordInteraction.Guild.Companion.serializer|serializer(){}[0] + } + } + final object $serializer : kotlinx.serialization.internal/GeneratedSerializer { // dev.kord.common.entity/DiscordInteraction.$serializer|null[0] final val descriptor // dev.kord.common.entity/DiscordInteraction.$serializer.descriptor|{}descriptor[0] final fun (): kotlinx.serialization.descriptors/SerialDescriptor // dev.kord.common.entity/DiscordInteraction.$serializer.descriptor.|(){}[0] diff --git a/common/src/commonMain/kotlin/entity/Interactions.kt b/common/src/commonMain/kotlin/entity/Interactions.kt index ef4e1e4be13..634cd508adb 100644 --- a/common/src/commonMain/kotlin/entity/Interactions.kt +++ b/common/src/commonMain/kotlin/entity/Interactions.kt @@ -266,7 +266,7 @@ public data class DiscordInteraction( val data: InteractionCallbackData, @SerialName("guild_id") val guildId: OptionalSnowflake = OptionalSnowflake.Missing, - val guild: Optional = Optional.Missing(), + val guild: Optional = Optional.Missing(), val channel: Optional = Optional.Missing(), @SerialName("channel_id") val channelId: OptionalSnowflake = OptionalSnowflake.Missing, @@ -286,6 +286,9 @@ public data class DiscordInteraction( val context: Optional = Optional.Missing() ) { + @Serializable + public data class Guild(val locale: Locale, val id: Snowflake, val features: List) + /** * Serializer that handles incomplete messages in [DiscordInteraction.message]. Discards * any incomplete messages as missing optionals. From 60548fcd8e2107559e191f13d4e064474a729b6f Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Mon, 26 Aug 2024 01:31:50 +0200 Subject: [PATCH 06/22] Fix Invalid serialization of ApplicationIntegrationType --- common/src/commonMain/kotlin/entity/DiscordIntegration.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/commonMain/kotlin/entity/DiscordIntegration.kt b/common/src/commonMain/kotlin/entity/DiscordIntegration.kt index 606926cf71f..310c4d24dbe 100644 --- a/common/src/commonMain/kotlin/entity/DiscordIntegration.kt +++ b/common/src/commonMain/kotlin/entity/DiscordIntegration.kt @@ -13,7 +13,7 @@ kDoc = "Where an app can be installed, also called its supported installation contexts", entries = [ Entry("GuildInstall", intValue = 0, kDoc = "App is installable to servers"), - Entry("UserInstall", intValue = 0, kDoc = "App is installable to users"), + Entry("UserInstall", intValue = 1, kDoc = "App is installable to users"), ], ) From 718228845031990381f35bb3c6b2583c820cb577 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Wed, 25 Sep 2024 21:05:35 +0200 Subject: [PATCH 07/22] Fix serialization of DiscordApplication.kt --- .../src/commonMain/kotlin/entity/DiscordApplication.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/src/commonMain/kotlin/entity/DiscordApplication.kt b/common/src/commonMain/kotlin/entity/DiscordApplication.kt index 147c923a78e..784a5ecdbb5 100644 --- a/common/src/commonMain/kotlin/entity/DiscordApplication.kt +++ b/common/src/commonMain/kotlin/entity/DiscordApplication.kt @@ -128,7 +128,7 @@ public data class DiscordApplication( @SerialName("install_params") override val installParams: Optional = Optional.Missing(), @SerialName("integration_types_config") - val integrationTypesConfig: Optional> = Optional.Missing(), + val integrationTypesConfig: Optional> = Optional.Missing(), @SerialName("custom_install_url") override val customInstallUrl: Optional = Optional.Missing(), @SerialName("role_connections_verification_url") @@ -179,3 +179,10 @@ public data class InstallParams( /** The permissions to request for the bot role. */ val permissions: Permissions, ) + +@Serializable +public data class ApplicationIntegrationTypeConfig( + /** Install params for each installation context's default in-app authorization link */ + @SerialName("oauth2_install_params") + val oauth2InstallParams: InstallParams +) From 61206eab904e673e57d97fc1db9a2bfa707c3d0d Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Wed, 25 Sep 2024 21:17:23 +0200 Subject: [PATCH 08/22] Optimize imports --- common/src/commonMain/kotlin/entity/Snowflake.kt | 1 - common/src/commonTest/kotlin/entity/MessageFlagTest.kt | 1 - common/src/commonTest/kotlin/entity/PermissionTest.kt | 1 - .../commonTest/kotlin/entity/optional/OptionalBooleanTest.kt | 1 - .../src/commonTest/kotlin/entity/optional/OptionalIntTest.kt | 1 - .../src/commonTest/kotlin/entity/optional/OptionalLongTest.kt | 1 - .../kotlin/entity/optional/OptionalSnowflakeTest.kt | 1 - common/src/commonTest/kotlin/entity/optional/OptionalTest.kt | 1 - common/src/commonTest/kotlin/json/ChannelTest.kt | 2 +- common/src/jvmTest/kotlin/ColorTestsJvm.kt | 3 +-- .../src/commonTest/kotlin/regression/CacheMissRegression.kt | 1 - core/src/commonMain/kotlin/behavior/GuildEmojiBehavior.kt | 2 +- core/src/commonMain/kotlin/behavior/MessageBehavior.kt | 3 +-- core/src/commonMain/kotlin/behavior/TemplateBehavior.kt | 2 +- core/src/commonMain/kotlin/behavior/UserBehavior.kt | 2 +- core/src/commonMain/kotlin/behavior/WebhookBehavior.kt | 2 +- .../kotlin/behavior/channel/CategorizableChannelBehavior.kt | 2 +- .../src/commonMain/kotlin/behavior/channel/ChannelBehavior.kt | 2 +- .../kotlin/behavior/channel/GuildChannelBehavior.kt | 2 +- .../kotlin/behavior/channel/MessageChannelBehavior.kt | 1 - .../commonMain/kotlin/behavior/channel/NewsChannelBehavior.kt | 1 - .../kotlin/behavior/channel/TopGuildChannelBehavior.kt | 2 +- .../kotlin/behavior/channel/VoiceChannelBehavior.kt | 2 +- .../behavior/channel/threads/ThreadParentChannelBehavior.kt | 4 ++-- .../kotlin/behavior/interaction/ActionInteractionBehavior.kt | 1 - .../behavior/interaction/ComponentInteractionBehavior.kt | 1 - .../response/DeferredEphemeralMessageInteractionBehavior.kt | 1 - .../response/EphemeralMessageInteractionResponseBehavior.kt | 1 - .../response/FollowupPermittingInteractionResponseBehavior.kt | 1 - core/src/commonMain/kotlin/builder/kord/KordProxyBuilder.kt | 1 - .../src/commonMain/kotlin/builder/kord/KordRestOnlyBuilder.kt | 1 - core/src/commonMain/kotlin/cache/data/ApplicationData.kt | 2 -- .../commonMain/kotlin/cache/data/MessageInteractionData.kt | 1 - .../commonMain/kotlin/cache/data/PermissionOverwriteData.kt | 2 +- core/src/commonMain/kotlin/entity/Emoji.kt | 2 +- core/src/commonMain/kotlin/entity/Integration.kt | 1 - core/src/commonMain/kotlin/entity/Member.kt | 2 +- core/src/commonMain/kotlin/entity/Role.kt | 2 +- core/src/commonMain/kotlin/entity/RoleTags.kt | 4 ++-- core/src/commonMain/kotlin/entity/VoiceState.kt | 1 - core/src/commonMain/kotlin/entity/Webhook.kt | 2 +- core/src/commonMain/kotlin/entity/channel/Category.kt | 2 +- core/src/commonMain/kotlin/entity/channel/NewsChannel.kt | 4 ++-- .../src/commonMain/kotlin/entity/channel/StageVoiceChannel.kt | 2 +- core/src/commonMain/kotlin/entity/channel/TextChannel.kt | 2 +- .../commonMain/kotlin/entity/interaction/ResolvedObjects.kt | 2 +- core/src/commonMain/kotlin/supplier/EntitySupplyStrategy.kt | 1 - core/src/jvmTest/kotlin/entity/IntegrationTest.kt | 2 +- core/src/jvmTest/kotlin/entity/MemberTest.kt | 2 +- .../commonMain/kotlin/builder/RequestGuildMembersBuilder.kt | 1 - .../commonMain/kotlin/builder/channel/InviteCreateBuilder.kt | 1 - .../src/commonMain/kotlin/builder/guild/EmojiModifyBuilder.kt | 2 +- .../commonMain/kotlin/builder/guild/StickerModifyBuilder.kt | 2 +- rest/src/commonMain/kotlin/builder/role/RoleCreateBuilder.kt | 1 - rest/src/commonMain/kotlin/builder/role/RoleModifyBuilder.kt | 1 - .../kotlin/builder/role/RolePositionsModifyBuilder.kt | 2 +- rest/src/commonMain/kotlin/request/KtorRequestHandler.kt | 1 - voice/src/main/java/com/iwebpp/crypto/TweetNaclFast.java | 1 - 58 files changed, 32 insertions(+), 64 deletions(-) diff --git a/common/src/commonMain/kotlin/entity/Snowflake.kt b/common/src/commonMain/kotlin/entity/Snowflake.kt index 1fcc7af932b..16f42ac8573 100644 --- a/common/src/commonMain/kotlin/entity/Snowflake.kt +++ b/common/src/commonMain/kotlin/entity/Snowflake.kt @@ -1,6 +1,5 @@ package dev.kord.common.entity -import dev.kord.common.entity.Snowflake.Companion.validValues import kotlinx.datetime.Clock import kotlinx.datetime.Instant import kotlinx.serialization.KSerializer diff --git a/common/src/commonTest/kotlin/entity/MessageFlagTest.kt b/common/src/commonTest/kotlin/entity/MessageFlagTest.kt index 75ae4296efa..d6ec3629231 100644 --- a/common/src/commonTest/kotlin/entity/MessageFlagTest.kt +++ b/common/src/commonTest/kotlin/entity/MessageFlagTest.kt @@ -1,6 +1,5 @@ package dev.kord.common.entity -import dev.kord.ksp.Generate.EntityType.INT_FLAGS import kotlin.random.Random import kotlin.random.nextInt import kotlin.test.Test diff --git a/common/src/commonTest/kotlin/entity/PermissionTest.kt b/common/src/commonTest/kotlin/entity/PermissionTest.kt index 1eed68d0a19..87f872cc0f6 100644 --- a/common/src/commonTest/kotlin/entity/PermissionTest.kt +++ b/common/src/commonTest/kotlin/entity/PermissionTest.kt @@ -1,6 +1,5 @@ package dev.kord.common.entity -import dev.kord.ksp.Generate.EntityType.BIT_SET_FLAGS import kotlin.random.Random import kotlin.random.nextInt import kotlin.test.* diff --git a/common/src/commonTest/kotlin/entity/optional/OptionalBooleanTest.kt b/common/src/commonTest/kotlin/entity/optional/OptionalBooleanTest.kt index 687a8656944..f14aa16f53d 100644 --- a/common/src/commonTest/kotlin/entity/optional/OptionalBooleanTest.kt +++ b/common/src/commonTest/kotlin/entity/optional/OptionalBooleanTest.kt @@ -2,7 +2,6 @@ package dev.kord.common.entity.optional import kotlinx.serialization.Serializable import kotlinx.serialization.SerializationException -import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json import kotlin.js.JsName import kotlin.test.Test diff --git a/common/src/commonTest/kotlin/entity/optional/OptionalIntTest.kt b/common/src/commonTest/kotlin/entity/optional/OptionalIntTest.kt index fcd994c462e..21416bffc2f 100644 --- a/common/src/commonTest/kotlin/entity/optional/OptionalIntTest.kt +++ b/common/src/commonTest/kotlin/entity/optional/OptionalIntTest.kt @@ -2,7 +2,6 @@ package dev.kord.common.entity.optional import kotlinx.serialization.Serializable import kotlinx.serialization.SerializationException -import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json import kotlin.js.JsName import kotlin.test.* diff --git a/common/src/commonTest/kotlin/entity/optional/OptionalLongTest.kt b/common/src/commonTest/kotlin/entity/optional/OptionalLongTest.kt index f576edae6e3..4cabd5dacfe 100644 --- a/common/src/commonTest/kotlin/entity/optional/OptionalLongTest.kt +++ b/common/src/commonTest/kotlin/entity/optional/OptionalLongTest.kt @@ -2,7 +2,6 @@ package dev.kord.common.entity.optional import kotlinx.serialization.Serializable import kotlinx.serialization.SerializationException -import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json import kotlin.js.JsName import kotlin.test.* diff --git a/common/src/commonTest/kotlin/entity/optional/OptionalSnowflakeTest.kt b/common/src/commonTest/kotlin/entity/optional/OptionalSnowflakeTest.kt index 2ff3cf3a409..c2768b198cf 100644 --- a/common/src/commonTest/kotlin/entity/optional/OptionalSnowflakeTest.kt +++ b/common/src/commonTest/kotlin/entity/optional/OptionalSnowflakeTest.kt @@ -3,7 +3,6 @@ package dev.kord.common.entity.optional import dev.kord.common.entity.Snowflake import kotlinx.serialization.Serializable import kotlinx.serialization.SerializationException -import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json import kotlin.js.JsName import kotlin.test.* diff --git a/common/src/commonTest/kotlin/entity/optional/OptionalTest.kt b/common/src/commonTest/kotlin/entity/optional/OptionalTest.kt index 25879bfaff6..18fbffeff22 100644 --- a/common/src/commonTest/kotlin/entity/optional/OptionalTest.kt +++ b/common/src/commonTest/kotlin/entity/optional/OptionalTest.kt @@ -2,7 +2,6 @@ package dev.kord.common.entity.optional import kotlinx.serialization.Serializable import kotlinx.serialization.SerializationException -import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json import kotlin.js.JsName import kotlin.test.Test diff --git a/common/src/commonTest/kotlin/json/ChannelTest.kt b/common/src/commonTest/kotlin/json/ChannelTest.kt index 9851007c24d..325f3260222 100644 --- a/common/src/commonTest/kotlin/json/ChannelTest.kt +++ b/common/src/commonTest/kotlin/json/ChannelTest.kt @@ -6,8 +6,8 @@ import dev.kord.common.readFile import kotlinx.coroutines.test.runTest import kotlinx.serialization.json.Json import kotlin.js.JsName -import kotlin.time.Duration.Companion.seconds import kotlin.test.Test +import kotlin.time.Duration.Companion.seconds private suspend fun file(name: String): String = readFile("channel", name) diff --git a/common/src/jvmTest/kotlin/ColorTestsJvm.kt b/common/src/jvmTest/kotlin/ColorTestsJvm.kt index c5e15b31c54..8a81fd5fec8 100644 --- a/common/src/jvmTest/kotlin/ColorTestsJvm.kt +++ b/common/src/jvmTest/kotlin/ColorTestsJvm.kt @@ -1,8 +1,7 @@ package dev.kord.common -import kotlin.test.assertEquals - import kotlin.test.Test +import kotlin.test.assertEquals class ColorTestsJvm { @Test diff --git a/core/live-tests/src/commonTest/kotlin/regression/CacheMissRegression.kt b/core/live-tests/src/commonTest/kotlin/regression/CacheMissRegression.kt index ae948c06fbb..620431632c4 100644 --- a/core/live-tests/src/commonTest/kotlin/regression/CacheMissRegression.kt +++ b/core/live-tests/src/commonTest/kotlin/regression/CacheMissRegression.kt @@ -18,7 +18,6 @@ import io.ktor.client.* import io.ktor.client.request.* import io.ktor.client.request.forms.* import io.ktor.client.statement.* -import io.ktor.content.* import io.ktor.http.* import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.SupervisorJob diff --git a/core/src/commonMain/kotlin/behavior/GuildEmojiBehavior.kt b/core/src/commonMain/kotlin/behavior/GuildEmojiBehavior.kt index d71f3aa431b..95b400432d2 100644 --- a/core/src/commonMain/kotlin/behavior/GuildEmojiBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/GuildEmojiBehavior.kt @@ -3,8 +3,8 @@ package dev.kord.core.behavior import dev.kord.common.entity.Snowflake import dev.kord.core.Kord import dev.kord.core.cache.data.EmojiData -import dev.kord.core.entity.KordEntity import dev.kord.core.entity.GuildEmoji +import dev.kord.core.entity.KordEntity import dev.kord.core.entity.Strategizable import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier diff --git a/core/src/commonMain/kotlin/behavior/MessageBehavior.kt b/core/src/commonMain/kotlin/behavior/MessageBehavior.kt index fbf1b2e01ce..7515e22b925 100644 --- a/core/src/commonMain/kotlin/behavior/MessageBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/MessageBehavior.kt @@ -1,6 +1,5 @@ package dev.kord.core.behavior -import dev.kord.common.entity.Permission import dev.kord.common.entity.Snowflake import dev.kord.common.exception.RequestException import dev.kord.core.Kord @@ -10,6 +9,7 @@ import dev.kord.core.cache.data.MessageData import dev.kord.core.entity.* import dev.kord.core.entity.channel.MessageChannel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.core.supplier.getChannelOf @@ -20,7 +20,6 @@ import dev.kord.rest.builder.message.modify.WebhookMessageModifyBuilder import dev.kord.rest.request.RestRequestException import dev.kord.rest.service.RestClient import kotlinx.coroutines.flow.Flow -import dev.kord.core.hash import kotlin.contracts.InvocationKind import kotlin.contracts.contract diff --git a/core/src/commonMain/kotlin/behavior/TemplateBehavior.kt b/core/src/commonMain/kotlin/behavior/TemplateBehavior.kt index 7ed3674b675..5a501f912cb 100644 --- a/core/src/commonMain/kotlin/behavior/TemplateBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/TemplateBehavior.kt @@ -6,9 +6,9 @@ import dev.kord.core.KordObject import dev.kord.core.cache.data.toData import dev.kord.core.entity.Guild import dev.kord.core.entity.Template +import dev.kord.core.hash import dev.kord.rest.builder.template.GuildFromTemplateCreateBuilder import dev.kord.rest.builder.template.GuildTemplateModifyBuilder -import dev.kord.core.hash import kotlin.contracts.InvocationKind import kotlin.contracts.contract diff --git a/core/src/commonMain/kotlin/behavior/UserBehavior.kt b/core/src/commonMain/kotlin/behavior/UserBehavior.kt index 2d4e406d8cc..ebf3c79729a 100644 --- a/core/src/commonMain/kotlin/behavior/UserBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/UserBehavior.kt @@ -8,6 +8,7 @@ import dev.kord.core.entity.* import dev.kord.core.entity.channel.Channel import dev.kord.core.entity.channel.DmChannel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.json.JsonErrorCode @@ -15,7 +16,6 @@ import dev.kord.rest.json.request.DMCreateRequest import dev.kord.rest.request.RestRequestException import dev.kord.rest.service.RestClient import io.ktor.http.* -import dev.kord.core.hash /** * The behavior of a [Discord User](https://discord.com/developers/docs/resources/user) diff --git a/core/src/commonMain/kotlin/behavior/WebhookBehavior.kt b/core/src/commonMain/kotlin/behavior/WebhookBehavior.kt index 9fae71abca0..6e87872b2f9 100644 --- a/core/src/commonMain/kotlin/behavior/WebhookBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/WebhookBehavior.kt @@ -10,12 +10,12 @@ import dev.kord.core.entity.Message import dev.kord.core.entity.Strategizable import dev.kord.core.entity.Webhook import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.message.create.WebhookMessageCreateBuilder import dev.kord.rest.builder.webhook.WebhookModifyBuilder import dev.kord.rest.request.RestRequestException -import dev.kord.core.hash import kotlin.contracts.InvocationKind import kotlin.contracts.contract diff --git a/core/src/commonMain/kotlin/behavior/channel/CategorizableChannelBehavior.kt b/core/src/commonMain/kotlin/behavior/channel/CategorizableChannelBehavior.kt index 9b1f843ca23..c5f8d3a0f5c 100644 --- a/core/src/commonMain/kotlin/behavior/channel/CategorizableChannelBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/channel/CategorizableChannelBehavior.kt @@ -9,6 +9,7 @@ import dev.kord.core.entity.InviteWithMetadata import dev.kord.core.entity.Webhook import dev.kord.core.entity.channel.CategorizableChannel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.channel.InviteCreateBuilder @@ -17,7 +18,6 @@ import dev.kord.rest.request.RestRequestException import dev.kord.rest.service.RestClient import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow -import dev.kord.core.hash import kotlin.contracts.InvocationKind import kotlin.contracts.contract diff --git a/core/src/commonMain/kotlin/behavior/channel/ChannelBehavior.kt b/core/src/commonMain/kotlin/behavior/channel/ChannelBehavior.kt index 5408d3bffc4..16a457a2693 100644 --- a/core/src/commonMain/kotlin/behavior/channel/ChannelBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/channel/ChannelBehavior.kt @@ -7,12 +7,12 @@ import dev.kord.core.entity.KordEntity import dev.kord.core.entity.Strategizable import dev.kord.core.entity.channel.Channel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.core.supplier.getChannelOf import dev.kord.core.supplier.getChannelOfOrNull import dev.kord.rest.request.RestRequestException -import dev.kord.core.hash /** * The behavior of a [Discord Channel](https://discord.com/developers/docs/resources/channel) diff --git a/core/src/commonMain/kotlin/behavior/channel/GuildChannelBehavior.kt b/core/src/commonMain/kotlin/behavior/channel/GuildChannelBehavior.kt index 63640b2ad49..3054da51ef8 100644 --- a/core/src/commonMain/kotlin/behavior/channel/GuildChannelBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/channel/GuildChannelBehavior.kt @@ -10,9 +10,9 @@ import dev.kord.core.entity.Strategizable import dev.kord.core.entity.channel.GuildChannel import dev.kord.core.entity.channel.TopGuildChannel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.core.hash /** * The behavior of a Discord channel associated to a [guild]. diff --git a/core/src/commonMain/kotlin/behavior/channel/MessageChannelBehavior.kt b/core/src/commonMain/kotlin/behavior/channel/MessageChannelBehavior.kt index 99d36695c8f..2a29560d215 100644 --- a/core/src/commonMain/kotlin/behavior/channel/MessageChannelBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/channel/MessageChannelBehavior.kt @@ -12,7 +12,6 @@ import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.message.EmbedBuilder -import dev.kord.rest.builder.message.create.MessageCreateBuilder import dev.kord.rest.builder.message.create.UserMessageCreateBuilder import dev.kord.rest.builder.message.embed import dev.kord.rest.request.RestRequestException diff --git a/core/src/commonMain/kotlin/behavior/channel/NewsChannelBehavior.kt b/core/src/commonMain/kotlin/behavior/channel/NewsChannelBehavior.kt index 800896a6058..a80f1fdae8f 100644 --- a/core/src/commonMain/kotlin/behavior/channel/NewsChannelBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/channel/NewsChannelBehavior.kt @@ -1,7 +1,6 @@ package dev.kord.core.behavior.channel import dev.kord.common.entity.ChannelType -import dev.kord.common.entity.Permission import dev.kord.common.entity.Snowflake import dev.kord.common.exception.RequestException import dev.kord.core.Kord diff --git a/core/src/commonMain/kotlin/behavior/channel/TopGuildChannelBehavior.kt b/core/src/commonMain/kotlin/behavior/channel/TopGuildChannelBehavior.kt index ed93a4edbe7..5587f8430a2 100644 --- a/core/src/commonMain/kotlin/behavior/channel/TopGuildChannelBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/channel/TopGuildChannelBehavior.kt @@ -6,6 +6,7 @@ import dev.kord.core.Kord import dev.kord.core.entity.PermissionOverwrite import dev.kord.core.entity.channel.TopGuildChannel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.channel.ChannelPermissionModifyBuilder @@ -14,7 +15,6 @@ import dev.kord.rest.service.editMemberPermissions import dev.kord.rest.service.editRolePermission import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.withIndex -import dev.kord.core.hash import kotlin.contracts.InvocationKind import kotlin.contracts.contract diff --git a/core/src/commonMain/kotlin/behavior/channel/VoiceChannelBehavior.kt b/core/src/commonMain/kotlin/behavior/channel/VoiceChannelBehavior.kt index 0c1b1ed4874..6b98b0ed0d4 100644 --- a/core/src/commonMain/kotlin/behavior/channel/VoiceChannelBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/channel/VoiceChannelBehavior.kt @@ -7,12 +7,12 @@ import dev.kord.core.cache.data.ChannelData import dev.kord.core.entity.channel.Channel import dev.kord.core.entity.channel.VoiceChannel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.channel.VoiceChannelModifyBuilder import dev.kord.rest.request.RestRequestException import dev.kord.rest.service.patchVoiceChannel -import dev.kord.core.hash import kotlin.contracts.InvocationKind import kotlin.contracts.contract diff --git a/core/src/commonMain/kotlin/behavior/channel/threads/ThreadParentChannelBehavior.kt b/core/src/commonMain/kotlin/behavior/channel/threads/ThreadParentChannelBehavior.kt index dfe282de4f0..a686c6dd8e8 100644 --- a/core/src/commonMain/kotlin/behavior/channel/threads/ThreadParentChannelBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/channel/threads/ThreadParentChannelBehavior.kt @@ -12,14 +12,14 @@ import dev.kord.core.entity.channel.Channel import dev.kord.core.entity.channel.ThreadParentChannel import dev.kord.core.entity.channel.thread.ThreadChannel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.rest.builder.channel.thread.StartThreadWithMessageBuilder import dev.kord.rest.builder.channel.thread.StartThreadBuilder +import dev.kord.rest.builder.channel.thread.StartThreadWithMessageBuilder import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.filter import kotlinx.datetime.Instant -import dev.kord.core.hash /** * Behavior of channels that can contain public threads. diff --git a/core/src/commonMain/kotlin/behavior/interaction/ActionInteractionBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/ActionInteractionBehavior.kt index 7824364035b..8f5e29436db 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/ActionInteractionBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/ActionInteractionBehavior.kt @@ -1,7 +1,6 @@ package dev.kord.core.behavior.interaction import dev.kord.common.annotation.KordUnsafe -import dev.kord.common.entity.MessageFlag import dev.kord.common.entity.Snowflake import dev.kord.core.Kord import dev.kord.core.behavior.interaction.response.* diff --git a/core/src/commonMain/kotlin/behavior/interaction/ComponentInteractionBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/ComponentInteractionBehavior.kt index d85521d6b84..2858e5dcc98 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/ComponentInteractionBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/ComponentInteractionBehavior.kt @@ -1,6 +1,5 @@ package dev.kord.core.behavior.interaction -import dev.kord.common.entity.MessageFlag import dev.kord.common.entity.Snowflake import dev.kord.core.Kord import dev.kord.core.behavior.interaction.response.EphemeralMessageInteractionResponseBehavior diff --git a/core/src/commonMain/kotlin/behavior/interaction/response/DeferredEphemeralMessageInteractionBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/response/DeferredEphemeralMessageInteractionBehavior.kt index 2a6526c2071..018fce5b516 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/response/DeferredEphemeralMessageInteractionBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/response/DeferredEphemeralMessageInteractionBehavior.kt @@ -1,6 +1,5 @@ package dev.kord.core.behavior.interaction.response -import dev.kord.common.entity.MessageFlag import dev.kord.common.entity.Snowflake import dev.kord.core.Kord import dev.kord.core.behavior.interaction.ActionInteractionBehavior diff --git a/core/src/commonMain/kotlin/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior.kt index 70910b25718..c96b038238e 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior.kt @@ -1,6 +1,5 @@ package dev.kord.core.behavior.interaction.response -import dev.kord.common.entity.MessageFlag import dev.kord.common.entity.Snowflake import dev.kord.core.Kord import dev.kord.core.behavior.interaction.* diff --git a/core/src/commonMain/kotlin/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior.kt index 50630cc4add..31481a20bfd 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior.kt @@ -1,6 +1,5 @@ package dev.kord.core.behavior.interaction.response -import dev.kord.common.entity.MessageFlag import dev.kord.common.entity.Snowflake import dev.kord.core.Kord import dev.kord.core.behavior.interaction.InteractionBehavior diff --git a/core/src/commonMain/kotlin/builder/kord/KordProxyBuilder.kt b/core/src/commonMain/kotlin/builder/kord/KordProxyBuilder.kt index 6550afca39a..387a7c7afec 100644 --- a/core/src/commonMain/kotlin/builder/kord/KordProxyBuilder.kt +++ b/core/src/commonMain/kotlin/builder/kord/KordProxyBuilder.kt @@ -2,7 +2,6 @@ package dev.kord.core.builder.kord import dev.kord.common.annotation.KordExperimental import dev.kord.common.entity.Snowflake -import dev.kord.core.Kord /** * The proxy Kord builder. You probably want to invoke the [DSL builder][Kord.proxy] instead. diff --git a/core/src/commonMain/kotlin/builder/kord/KordRestOnlyBuilder.kt b/core/src/commonMain/kotlin/builder/kord/KordRestOnlyBuilder.kt index 2a03847e162..06a1bce9789 100644 --- a/core/src/commonMain/kotlin/builder/kord/KordRestOnlyBuilder.kt +++ b/core/src/commonMain/kotlin/builder/kord/KordRestOnlyBuilder.kt @@ -2,7 +2,6 @@ package dev.kord.core.builder.kord import dev.kord.common.annotation.KordExperimental import dev.kord.common.entity.Snowflake -import dev.kord.core.Kord /** * The rest only Kord builder. You probably want to invoke the [DSL builder][Kord.restOnly] instead. diff --git a/core/src/commonMain/kotlin/cache/data/ApplicationData.kt b/core/src/commonMain/kotlin/cache/data/ApplicationData.kt index 86cea34c359..367134c2fbc 100644 --- a/core/src/commonMain/kotlin/cache/data/ApplicationData.kt +++ b/core/src/commonMain/kotlin/cache/data/ApplicationData.kt @@ -4,9 +4,7 @@ import dev.kord.common.entity.* import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.OptionalSnowflake import dev.kord.common.entity.optional.map -import dev.kord.common.entity.optional.mapNullable import dev.kord.common.entity.optional.mapSnowflake -import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable public sealed interface BaseApplicationData { diff --git a/core/src/commonMain/kotlin/cache/data/MessageInteractionData.kt b/core/src/commonMain/kotlin/cache/data/MessageInteractionData.kt index 26ea9127684..21be6e0fb60 100644 --- a/core/src/commonMain/kotlin/cache/data/MessageInteractionData.kt +++ b/core/src/commonMain/kotlin/cache/data/MessageInteractionData.kt @@ -2,7 +2,6 @@ package dev.kord.core.cache.data import dev.kord.common.entity.DiscordInteractionMetadata import dev.kord.common.entity.DiscordMessageInteraction -import dev.kord.common.entity.DiscordUser import dev.kord.common.entity.IntegrationOwners import dev.kord.common.entity.InteractionType import dev.kord.common.entity.Snowflake diff --git a/core/src/commonMain/kotlin/cache/data/PermissionOverwriteData.kt b/core/src/commonMain/kotlin/cache/data/PermissionOverwriteData.kt index ca4870e50eb..68aa381ba7c 100644 --- a/core/src/commonMain/kotlin/cache/data/PermissionOverwriteData.kt +++ b/core/src/commonMain/kotlin/cache/data/PermissionOverwriteData.kt @@ -1,7 +1,7 @@ package dev.kord.core.cache.data -import dev.kord.common.entity.Overwrite import dev.kord.common.entity.* +import dev.kord.common.entity.Overwrite import kotlinx.serialization.Serializable @Serializable diff --git a/core/src/commonMain/kotlin/entity/Emoji.kt b/core/src/commonMain/kotlin/entity/Emoji.kt index fe8b21eeb95..dc158b19a52 100644 --- a/core/src/commonMain/kotlin/entity/Emoji.kt +++ b/core/src/commonMain/kotlin/entity/Emoji.kt @@ -8,13 +8,13 @@ import dev.kord.core.behavior.MemberBehavior import dev.kord.core.behavior.RoleBehavior import dev.kord.core.behavior.UserBehavior import dev.kord.core.cache.data.EmojiData +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.guild.EmojiModifyBuilder import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.emptyFlow import kotlinx.coroutines.flow.filter -import dev.kord.core.hash import kotlin.contracts.InvocationKind import kotlin.contracts.contract diff --git a/core/src/commonMain/kotlin/entity/Integration.kt b/core/src/commonMain/kotlin/entity/Integration.kt index 6227a3b1091..ef114fa36e9 100644 --- a/core/src/commonMain/kotlin/entity/Integration.kt +++ b/core/src/commonMain/kotlin/entity/Integration.kt @@ -2,7 +2,6 @@ package dev.kord.core.entity import dev.kord.common.entity.IntegrationExpireBehavior import dev.kord.common.entity.Snowflake -import dev.kord.common.entity.optional.value import dev.kord.common.exception.RequestException import dev.kord.core.Kord import dev.kord.core.behavior.GuildBehavior diff --git a/core/src/commonMain/kotlin/entity/Member.kt b/core/src/commonMain/kotlin/entity/Member.kt index a37683931c2..2d1a4666807 100644 --- a/core/src/commonMain/kotlin/entity/Member.kt +++ b/core/src/commonMain/kotlin/entity/Member.kt @@ -12,11 +12,11 @@ import dev.kord.core.behavior.UserBehavior import dev.kord.core.cache.data.MemberData import dev.kord.core.cache.data.UserData import dev.kord.core.entity.interaction.GuildInteraction +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import kotlinx.coroutines.flow.* import kotlinx.datetime.Instant -import dev.kord.core.hash /** * An instance of a [Discord Member](https://discord.com/developers/docs/resources/guild#guild-member-object). diff --git a/core/src/commonMain/kotlin/entity/Role.kt b/core/src/commonMain/kotlin/entity/Role.kt index 7ba49e4d513..62141e86ad8 100644 --- a/core/src/commonMain/kotlin/entity/Role.kt +++ b/core/src/commonMain/kotlin/entity/Role.kt @@ -8,9 +8,9 @@ import dev.kord.common.entity.optional.unwrap import dev.kord.core.Kord import dev.kord.core.behavior.RoleBehavior import dev.kord.core.cache.data.RoleData +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.core.hash public data class Role( val data: RoleData, diff --git a/core/src/commonMain/kotlin/entity/RoleTags.kt b/core/src/commonMain/kotlin/entity/RoleTags.kt index 42f88fd2465..fa1b6da8341 100644 --- a/core/src/commonMain/kotlin/entity/RoleTags.kt +++ b/core/src/commonMain/kotlin/entity/RoleTags.kt @@ -1,14 +1,14 @@ package dev.kord.core.entity import dev.kord.common.entity.Snowflake +import dev.kord.common.exception.RequestException import dev.kord.core.Kord import dev.kord.core.KordObject import dev.kord.core.behavior.GuildBehavior import dev.kord.core.cache.data.IntegrationData import dev.kord.core.cache.data.RoleTagsData -import dev.kord.core.supplier.EntitySupplier -import dev.kord.common.exception.RequestException import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy public class RoleTags( diff --git a/core/src/commonMain/kotlin/entity/VoiceState.kt b/core/src/commonMain/kotlin/entity/VoiceState.kt index 0c41c80410e..66924ba07f7 100644 --- a/core/src/commonMain/kotlin/entity/VoiceState.kt +++ b/core/src/commonMain/kotlin/entity/VoiceState.kt @@ -10,7 +10,6 @@ import dev.kord.core.entity.channel.VoiceChannel import dev.kord.core.exception.EntityNotFoundException import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.core.supplier.getChannelOfOrNull import kotlinx.datetime.Instant public class VoiceState( diff --git a/core/src/commonMain/kotlin/entity/Webhook.kt b/core/src/commonMain/kotlin/entity/Webhook.kt index 2874331d505..093826d5cfd 100644 --- a/core/src/commonMain/kotlin/entity/Webhook.kt +++ b/core/src/commonMain/kotlin/entity/Webhook.kt @@ -11,11 +11,11 @@ import dev.kord.core.cache.data.WebhookData import dev.kord.core.entity.channel.MessageChannel import dev.kord.core.entity.channel.TopGuildMessageChannel import dev.kord.core.exception.EntityNotFoundException +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.core.supplier.getChannelOf import dev.kord.core.supplier.getChannelOfOrNull -import dev.kord.core.hash public data class Webhook( val data: WebhookData, diff --git a/core/src/commonMain/kotlin/entity/channel/Category.kt b/core/src/commonMain/kotlin/entity/channel/Category.kt index 76b2cdfc13e..9ea97d59a9a 100644 --- a/core/src/commonMain/kotlin/entity/channel/Category.kt +++ b/core/src/commonMain/kotlin/entity/channel/Category.kt @@ -8,9 +8,9 @@ import dev.kord.core.behavior.channel.ChannelBehavior import dev.kord.core.behavior.channel.GuildChannelBehavior import dev.kord.core.cache.data.ChannelData import dev.kord.core.entity.Entity +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.core.hash /** * An instance of a Discord category associated to a [guild]. diff --git a/core/src/commonMain/kotlin/entity/channel/NewsChannel.kt b/core/src/commonMain/kotlin/entity/channel/NewsChannel.kt index 348edf55309..cd4b9998f4f 100644 --- a/core/src/commonMain/kotlin/entity/channel/NewsChannel.kt +++ b/core/src/commonMain/kotlin/entity/channel/NewsChannel.kt @@ -2,12 +2,12 @@ package dev.kord.core.entity.channel import dev.kord.core.Kord import dev.kord.core.behavior.channel.ChannelBehavior -import dev.kord.core.behavior.channel.TopGuildChannelBehavior import dev.kord.core.behavior.channel.NewsChannelBehavior +import dev.kord.core.behavior.channel.TopGuildChannelBehavior import dev.kord.core.cache.data.ChannelData +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.core.hash /** * An instance of a Discord News Channel associated to a guild. diff --git a/core/src/commonMain/kotlin/entity/channel/StageVoiceChannel.kt b/core/src/commonMain/kotlin/entity/channel/StageVoiceChannel.kt index 4ff86c95a68..ff3e3002b46 100644 --- a/core/src/commonMain/kotlin/entity/channel/StageVoiceChannel.kt +++ b/core/src/commonMain/kotlin/entity/channel/StageVoiceChannel.kt @@ -6,9 +6,9 @@ import dev.kord.core.behavior.channel.ChannelBehavior import dev.kord.core.behavior.channel.GuildChannelBehavior import dev.kord.core.behavior.channel.StageChannelBehavior import dev.kord.core.cache.data.ChannelData +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.core.hash /** * An instance of a [Discord Stage Channel](https://support.discord.com/hc/en-us/articles/1500005513722) diff --git a/core/src/commonMain/kotlin/entity/channel/TextChannel.kt b/core/src/commonMain/kotlin/entity/channel/TextChannel.kt index ed37d7925ee..406b79b7c74 100644 --- a/core/src/commonMain/kotlin/entity/channel/TextChannel.kt +++ b/core/src/commonMain/kotlin/entity/channel/TextChannel.kt @@ -7,9 +7,9 @@ import dev.kord.core.behavior.channel.ChannelBehavior import dev.kord.core.behavior.channel.GuildChannelBehavior import dev.kord.core.behavior.channel.TextChannelBehavior import dev.kord.core.cache.data.ChannelData +import dev.kord.core.hash import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.core.hash import kotlin.time.Duration /** diff --git a/core/src/commonMain/kotlin/entity/interaction/ResolvedObjects.kt b/core/src/commonMain/kotlin/entity/interaction/ResolvedObjects.kt index 3cc16f84b4f..304403f89c3 100644 --- a/core/src/commonMain/kotlin/entity/interaction/ResolvedObjects.kt +++ b/core/src/commonMain/kotlin/entity/interaction/ResolvedObjects.kt @@ -1,12 +1,12 @@ package dev.kord.core.entity.interaction import dev.kord.common.entity.Snowflake +import dev.kord.common.entity.optional.mapValues import dev.kord.core.Kord import dev.kord.core.cache.data.ResolvedObjectsData import dev.kord.core.entity.* import dev.kord.core.entity.channel.ResolvedChannel import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.common.entity.optional.mapValues public class ResolvedObjects( public val data: ResolvedObjectsData, diff --git a/core/src/commonMain/kotlin/supplier/EntitySupplyStrategy.kt b/core/src/commonMain/kotlin/supplier/EntitySupplyStrategy.kt index f7f6b6313db..b9253e6f018 100644 --- a/core/src/commonMain/kotlin/supplier/EntitySupplyStrategy.kt +++ b/core/src/commonMain/kotlin/supplier/EntitySupplyStrategy.kt @@ -1,7 +1,6 @@ package dev.kord.core.supplier import dev.kord.core.Kord -import dev.kord.core.supplier.EntitySupplyStrategy.Companion.cache /** * A supplier that accepts a [Kord] instance and returns an [EntitySupplier] of type [T]. diff --git a/core/src/jvmTest/kotlin/entity/IntegrationTest.kt b/core/src/jvmTest/kotlin/entity/IntegrationTest.kt index 37dd58a0862..10ed31d4f16 100644 --- a/core/src/jvmTest/kotlin/entity/IntegrationTest.kt +++ b/core/src/jvmTest/kotlin/entity/IntegrationTest.kt @@ -2,9 +2,9 @@ package dev.kord.core.entity import dev.kord.core.cache.data.IntegrationData import dev.kord.core.equality.GuildEntityEqualityTest +import dev.kord.core.mockKord import io.mockk.every import io.mockk.mockk -import dev.kord.core.mockKord internal class IntegrationTest : GuildEntityEqualityTest by GuildEntityEqualityTest ({ id, guildId -> val kord = mockKord() diff --git a/core/src/jvmTest/kotlin/entity/MemberTest.kt b/core/src/jvmTest/kotlin/entity/MemberTest.kt index 6fff9f80dbd..58c0ce4c67e 100644 --- a/core/src/jvmTest/kotlin/entity/MemberTest.kt +++ b/core/src/jvmTest/kotlin/entity/MemberTest.kt @@ -6,9 +6,9 @@ import dev.kord.core.cache.data.MemberData import dev.kord.core.cache.data.UserData import dev.kord.core.equality.BehaviorEqualityTest import dev.kord.core.equality.GuildEntityEqualityTest +import dev.kord.core.mockKord import io.mockk.every import io.mockk.mockk -import dev.kord.core.mockKord import org.junit.jupiter.api.Test import kotlin.test.assertEquals diff --git a/gateway/src/commonMain/kotlin/builder/RequestGuildMembersBuilder.kt b/gateway/src/commonMain/kotlin/builder/RequestGuildMembersBuilder.kt index 0fab2d30788..2ce5b25400b 100644 --- a/gateway/src/commonMain/kotlin/builder/RequestGuildMembersBuilder.kt +++ b/gateway/src/commonMain/kotlin/builder/RequestGuildMembersBuilder.kt @@ -7,7 +7,6 @@ import dev.kord.common.entity.optional.OptionalBoolean import dev.kord.common.entity.optional.OptionalInt import dev.kord.common.entity.optional.delegate.delegate import dev.kord.gateway.GuildMembersChunkData -import dev.kord.gateway.Intent import dev.kord.gateway.PrivilegedIntent import dev.kord.gateway.RequestGuildMembers diff --git a/rest/src/commonMain/kotlin/builder/channel/InviteCreateBuilder.kt b/rest/src/commonMain/kotlin/builder/channel/InviteCreateBuilder.kt index 994e3b61650..52b75199eaa 100644 --- a/rest/src/commonMain/kotlin/builder/channel/InviteCreateBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/channel/InviteCreateBuilder.kt @@ -1,7 +1,6 @@ package dev.kord.rest.builder.channel import dev.kord.common.annotation.KordDsl -import dev.kord.common.entity.ApplicationFlag import dev.kord.common.entity.InviteTargetType import dev.kord.common.entity.Snowflake import dev.kord.common.entity.optional.* diff --git a/rest/src/commonMain/kotlin/builder/guild/EmojiModifyBuilder.kt b/rest/src/commonMain/kotlin/builder/guild/EmojiModifyBuilder.kt index 3a3aad2f695..37cdce7560f 100644 --- a/rest/src/commonMain/kotlin/builder/guild/EmojiModifyBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/guild/EmojiModifyBuilder.kt @@ -1,10 +1,10 @@ package dev.kord.rest.builder.guild -import dev.kord.rest.builder.AuditRequestBuilder import dev.kord.common.annotation.KordDsl import dev.kord.common.entity.Snowflake import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.delegate.delegate +import dev.kord.rest.builder.AuditRequestBuilder import dev.kord.rest.json.request.EmojiModifyRequest @KordDsl diff --git a/rest/src/commonMain/kotlin/builder/guild/StickerModifyBuilder.kt b/rest/src/commonMain/kotlin/builder/guild/StickerModifyBuilder.kt index 3e3cfb7d128..3fa51da5246 100644 --- a/rest/src/commonMain/kotlin/builder/guild/StickerModifyBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/guild/StickerModifyBuilder.kt @@ -2,9 +2,9 @@ package dev.kord.rest.builder.guild import dev.kord.common.annotation.KordDsl import dev.kord.common.entity.optional.Optional +import dev.kord.common.entity.optional.delegate.delegate import dev.kord.rest.builder.RequestBuilder import dev.kord.rest.json.request.GuildStickerModifyRequest -import dev.kord.common.entity.optional.delegate.delegate @KordDsl public class StickerModifyBuilder : RequestBuilder { diff --git a/rest/src/commonMain/kotlin/builder/role/RoleCreateBuilder.kt b/rest/src/commonMain/kotlin/builder/role/RoleCreateBuilder.kt index 1dd3079941f..6cc157db773 100644 --- a/rest/src/commonMain/kotlin/builder/role/RoleCreateBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/role/RoleCreateBuilder.kt @@ -2,7 +2,6 @@ package dev.kord.rest.builder.role import dev.kord.common.Color import dev.kord.common.annotation.KordDsl -import dev.kord.common.entity.GuildFeature import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.OptionalBoolean diff --git a/rest/src/commonMain/kotlin/builder/role/RoleModifyBuilder.kt b/rest/src/commonMain/kotlin/builder/role/RoleModifyBuilder.kt index 72632f517d4..263ffadaa3f 100644 --- a/rest/src/commonMain/kotlin/builder/role/RoleModifyBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/role/RoleModifyBuilder.kt @@ -2,7 +2,6 @@ package dev.kord.rest.builder.role import dev.kord.common.Color import dev.kord.common.annotation.KordDsl -import dev.kord.common.entity.GuildFeature import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.OptionalBoolean diff --git a/rest/src/commonMain/kotlin/builder/role/RolePositionsModifyBuilder.kt b/rest/src/commonMain/kotlin/builder/role/RolePositionsModifyBuilder.kt index 96206f8133d..47c75aac906 100644 --- a/rest/src/commonMain/kotlin/builder/role/RolePositionsModifyBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/role/RolePositionsModifyBuilder.kt @@ -1,8 +1,8 @@ package dev.kord.rest.builder.role -import dev.kord.rest.builder.AuditRequestBuilder import dev.kord.common.annotation.KordDsl import dev.kord.common.entity.Snowflake +import dev.kord.rest.builder.AuditRequestBuilder import dev.kord.rest.json.request.GuildRolePositionModifyRequest @KordDsl diff --git a/rest/src/commonMain/kotlin/request/KtorRequestHandler.kt b/rest/src/commonMain/kotlin/request/KtorRequestHandler.kt index f40480c32c4..e94d947ef48 100644 --- a/rest/src/commonMain/kotlin/request/KtorRequestHandler.kt +++ b/rest/src/commonMain/kotlin/request/KtorRequestHandler.kt @@ -9,7 +9,6 @@ import io.ktor.client.* import io.ktor.client.request.* import io.ktor.client.request.forms.* import io.ktor.client.statement.* -import io.ktor.content.TextContent import io.ktor.http.* import io.ktor.http.content.* import kotlinx.datetime.Clock diff --git a/voice/src/main/java/com/iwebpp/crypto/TweetNaclFast.java b/voice/src/main/java/com/iwebpp/crypto/TweetNaclFast.java index c3106669fcc..156ecdb6de8 100644 --- a/voice/src/main/java/com/iwebpp/crypto/TweetNaclFast.java +++ b/voice/src/main/java/com/iwebpp/crypto/TweetNaclFast.java @@ -5,7 +5,6 @@ import java.io.UnsupportedEncodingException; import java.security.SecureRandom; -import java.lang.System; import java.util.concurrent.atomic.AtomicLong; From 067082e64f27b4b0cf0a57cd935cb4ffbda2004c Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Wed, 25 Sep 2024 21:32:17 +0200 Subject: [PATCH 09/22] Fix compiler error --- .../src/commonTest/kotlin/regression/CacheMissRegression.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/live-tests/src/commonTest/kotlin/regression/CacheMissRegression.kt b/core/live-tests/src/commonTest/kotlin/regression/CacheMissRegression.kt index 620431632c4..e488d1559a0 100644 --- a/core/live-tests/src/commonTest/kotlin/regression/CacheMissRegression.kt +++ b/core/live-tests/src/commonTest/kotlin/regression/CacheMissRegression.kt @@ -19,6 +19,7 @@ import io.ktor.client.request.* import io.ktor.client.request.forms.* import io.ktor.client.statement.* import io.ktor.http.* +import io.ktor.http.content.TextContent import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.flow.MutableSharedFlow From 5e242fa6fba5baac7a29959114208601c57aeb43 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Tue, 22 Oct 2024 20:31:06 +0200 Subject: [PATCH 10/22] Add initial draft for entry point commands --- .../common/entity/ApplicationCommandType.kt | 8 ++ .../entity/EntryPointCommandHandlerType.kt | 91 +++++++++++++++++++ .../common/entity/InteractionResponseType.kt | 7 ++ .../commonMain/kotlin/entity/Interactions.kt | 17 ++++ .../response/InteractionResponseBehavior.kt | 13 +++ 5 files changed, 136 insertions(+) create mode 100644 common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EntryPointCommandHandlerType.kt diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandType.kt index 14126c8ffb2..4bb876725fb 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandType.kt @@ -57,6 +57,12 @@ public sealed class ApplicationCommandType( */ public object Message : ApplicationCommandType(3) + /** + * A UI-based command that represents the primary way to invoke an app's + * [Activity](https://discord.com/developers/docs/activities/overview) + */ + public object PrimaryEntryPoint : ApplicationCommandType(4) + internal object Serializer : KSerializer { override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("dev.kord.common.entity.ApplicationCommandType", @@ -79,6 +85,7 @@ public sealed class ApplicationCommandType( ChatInput, User, Message, + PrimaryEntryPoint, ) } @@ -90,6 +97,7 @@ public sealed class ApplicationCommandType( 1 -> ChatInput 2 -> User 3 -> Message + 4 -> PrimaryEntryPoint else -> Unknown(value) } } diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EntryPointCommandHandlerType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EntryPointCommandHandlerType.kt new file mode 100644 index 00000000000..3c05732f295 --- /dev/null +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EntryPointCommandHandlerType.kt @@ -0,0 +1,91 @@ +// THIS FILE IS AUTO-GENERATED, DO NOT EDIT! +@file:Suppress(names = arrayOf("IncorrectFormatting", "ReplaceArrayOfWithLiteral", + "SpellCheckingInspection", "GrazieInspection")) + +package dev.kord.common.entity + +import kotlin.LazyThreadSafetyMode.PUBLICATION +import kotlinx.serialization.KSerializer +import kotlinx.serialization.Serializable +import kotlinx.serialization.descriptors.PrimitiveKind +import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor +import kotlinx.serialization.descriptors.SerialDescriptor +import kotlinx.serialization.encoding.Decoder +import kotlinx.serialization.encoding.Encoder + +/** + * See [EntryPointCommandHandlerType]s in the + * [Discord Developer Documentation](https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types). + */ +@Serializable(with = EntryPointCommandHandlerType.Serializer::class) +public sealed class EntryPointCommandHandlerType( + /** + * The raw value used by Discord. + */ + public val `value`: Int, +) { + final override fun equals(other: Any?): Boolean = this === other || + (other is EntryPointCommandHandlerType && this.value == other.value) + + final override fun hashCode(): Int = value.hashCode() + + final override fun toString(): String = + if (this is Unknown) "EntryPointCommandHandlerType.Unknown(value=$value)" + else "EntryPointCommandHandlerType.${this::class.simpleName}" + + /** + * An unknown [EntryPointCommandHandlerType]. + * + * This is used as a fallback for [EntryPointCommandHandlerType]s that haven't been added to + * Kord yet. + */ + public class Unknown internal constructor( + `value`: Int, + ) : EntryPointCommandHandlerType(value) + + /** + * The app handles the interaction using an interaction token + */ + public object AppHandler : EntryPointCommandHandlerType(1) + + /** + * Discord handles the interaction by launching an Activity and sending a follow-up message + * without coordinating with the app + */ + public object DiscordLaunchActivity : EntryPointCommandHandlerType(2) + + internal object Serializer : KSerializer { + override val descriptor: SerialDescriptor = + PrimitiveSerialDescriptor("dev.kord.common.entity.EntryPointCommandHandlerType", + PrimitiveKind.INT) + + override fun serialize(encoder: Encoder, `value`: EntryPointCommandHandlerType) { + encoder.encodeInt(value.value) + } + + override fun deserialize(decoder: Decoder): EntryPointCommandHandlerType = + from(decoder.decodeInt()) + } + + public companion object { + /** + * A [List] of all known [EntryPointCommandHandlerType]s. + */ + public val entries: List by lazy(mode = PUBLICATION) { + listOf( + AppHandler, + DiscordLaunchActivity, + ) + } + + /** + * Returns an instance of [EntryPointCommandHandlerType] with + * [EntryPointCommandHandlerType.value] equal to the specified [value]. + */ + public fun from(`value`: Int): EntryPointCommandHandlerType = when (value) { + 1 -> AppHandler + 2 -> DiscordLaunchActivity + else -> Unknown(value) + } + } +} diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionResponseType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionResponseType.kt index e5bdb7de060..3fe28deb5a9 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionResponseType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionResponseType.kt @@ -79,6 +79,11 @@ public sealed class InteractionResponseType( */ public object Modal : InteractionResponseType(9) + /** + * Launch the Activity associated with the app. Only available for apps with Activities enabled + */ + public object LaunchActivity : InteractionResponseType(12) + internal object Serializer : KSerializer { override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("dev.kord.common.entity.InteractionResponseType", @@ -105,6 +110,7 @@ public sealed class InteractionResponseType( UpdateMessage, ApplicationCommandAutoCompleteResult, Modal, + LaunchActivity, ) } @@ -120,6 +126,7 @@ public sealed class InteractionResponseType( 7 -> UpdateMessage 8 -> ApplicationCommandAutoCompleteResult 9 -> Modal + 12 -> LaunchActivity else -> Unknown(type) } } diff --git a/common/src/commonMain/kotlin/entity/Interactions.kt b/common/src/commonMain/kotlin/entity/Interactions.kt index 209cdecc9a2..562d26f0960 100644 --- a/common/src/commonMain/kotlin/entity/Interactions.kt +++ b/common/src/commonMain/kotlin/entity/Interactions.kt @@ -8,9 +8,25 @@ "Message", intValue = 3, kDoc = "A UI-based command that shows up when you right-click or tap on a message.", ), + Entry( + "PrimaryEntryPoint", intValue = 4, + kDoc = "A UI-based command that represents the primary way to invoke an app's [Activity](https://discord.com/developers/docs/activities/overview)" + ) ], ) +@file:Generate( + INT_KORD_ENUM, name = "EntryPointCommandHandlerType", + docUrl = "https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types", + entries = [ + Entry("AppHandler", intValue = 1, kDoc = "The app handles the interaction using an interaction token"), + Entry( + "DiscordLaunchActivity", intValue = 2, + kDoc = "Discord handles the interaction by launching an Activity and sending a follow-up message without coordinating with the app" + ) + ] +) + @file:Generate( INT_KORD_ENUM, name = "ApplicationCommandOptionType", valueName = "type", docUrl = "https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type", @@ -62,6 +78,7 @@ kDoc = "Respond to an autocomplete interaction with suggested choices.", ), Entry("Modal", intValue = 9, kDoc = "Respond to an interaction with a popup modal."), + Entry("LaunchActivity", intValue = 12, kDoc = "\tLaunch the Activity associated with the app. Only available for apps with Activities enabled") ], ) diff --git a/core/src/commonMain/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt index cea8e6d296f..a5c43db3a47 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt @@ -1,5 +1,6 @@ package dev.kord.core.behavior.interaction.response +import dev.kord.common.entity.InteractionResponseType import dev.kord.common.entity.Snowflake import dev.kord.core.KordObject import dev.kord.core.entity.Strategizable @@ -7,6 +8,7 @@ import dev.kord.core.entity.interaction.Interaction import dev.kord.core.entity.interaction.followup.FollowupMessage import dev.kord.core.exception.EntityNotFoundException import dev.kord.core.supplier.EntitySupplyStrategy +import dev.kord.rest.json.request.InteractionResponseCreateRequest import dev.kord.rest.request.RestRequestException /** @@ -44,5 +46,16 @@ public sealed interface InteractionResponseBehavior : KordObject, Strategizable public suspend fun getFollowupMessage(messageId: Snowflake): FollowupMessage = supplier.getFollowupMessage(applicationId, token, messageId) + /** + * Opens the [Activity](https://discord.com/developers/docs/activities/overview) of this application. + * **Note:** This requires activities to be enabled for this application + */ + public suspend fun openActivity() { + kord.rest.interaction.createInteractionResponse( + applicationId, token, + InteractionResponseCreateRequest(InteractionResponseType.LaunchActivity) + ) + } + override fun withStrategy(strategy: EntitySupplyStrategy<*>): InteractionResponseBehavior } From 27545a1202383b45f36dcab4bec7efca404bcdf2 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Tue, 22 Oct 2024 22:55:11 +0200 Subject: [PATCH 11/22] Finalize entry point command stuff --- core/src/commonMain/kotlin/Kord.kt | 42 +++++++ .../behavior/EntryPointCommandBehaviors.kt | 31 +++++ .../entity/application/ApplicationCommand.kt | 2 + .../entity/application/EntryPointCommands.kt | 23 ++++ .../ApplicationCommandInteraction.kt | 2 + .../handler/InteractionEventHandler.kt | 3 + .../ApplicationCommandStateHolder.kt | 2 + .../builder/interaction/EntryPointBuilders.kt | 108 ++++++++++++++++++ .../builder/interaction/InputChatBuilders.kt | 2 + .../interaction/MessageCommandBuilders.kt | 2 + .../MultiApplicationCommandBuilder.kt | 18 ++- .../interaction/UserCommandBuilders.kt | 2 + .../json/request/InteractionsRequests.kt | 5 + .../kotlin/service/InteractionService.kt | 62 ++++++++++ 14 files changed, 303 insertions(+), 1 deletion(-) create mode 100644 core/src/commonMain/kotlin/behavior/EntryPointCommandBehaviors.kt create mode 100644 core/src/commonMain/kotlin/entity/application/EntryPointCommands.kt create mode 100644 rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt diff --git a/core/src/commonMain/kotlin/Kord.kt b/core/src/commonMain/kotlin/Kord.kt index 71d4c3d6741..5d548e8d8b1 100644 --- a/core/src/commonMain/kotlin/Kord.kt +++ b/core/src/commonMain/kotlin/Kord.kt @@ -4,6 +4,7 @@ import dev.kord.cache.api.DataCache import dev.kord.common.annotation.KordExperimental import dev.kord.common.annotation.KordUnsafe import dev.kord.common.entity.DiscordShard +import dev.kord.common.entity.EntryPointCommandHandlerType import dev.kord.common.entity.Snowflake import dev.kord.common.exception.RequestException import dev.kord.core.builder.kord.KordBuilder @@ -645,6 +646,46 @@ public class Kord( return GuildUserCommand(data, rest.interaction) } + public suspend inline fun createGuildEntryPointCommand( + guildId: Snowflake, + name: String, + description: String, + handler: EntryPointCommandHandlerType, + builder: EntryPointCreateBuilder.() -> Unit = {}, + ): GuildEntryPointCommand { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + val response = rest.interaction.createGuildEntryPointCommand( + resources.applicationId, + guildId, + name, + description, + handler, + builder + ) + + val data = ApplicationCommandData.from(response) + return GuildEntryPointCommand(data, rest.interaction) + } + + + public suspend inline fun createGlobalEntryPointCommand( + name: String, + description: String, + handler: EntryPointCommandHandlerType, + builder: EntryPointCreateBuilder.() -> Unit = {}, + ): GlobalEntryPointCommand { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + val response = rest.interaction.createGlobalEntryPointCommand( + resources.applicationId, + name, + description, + handler, + builder + ) + + val data = ApplicationCommandData.from(response) + return GlobalEntryPointCommand(data, rest.interaction) + } public suspend inline fun createGuildApplicationCommands( guildId: Snowflake, @@ -661,6 +702,7 @@ public class Kord( } } } + } /** diff --git a/core/src/commonMain/kotlin/behavior/EntryPointCommandBehaviors.kt b/core/src/commonMain/kotlin/behavior/EntryPointCommandBehaviors.kt new file mode 100644 index 00000000000..85260b6375c --- /dev/null +++ b/core/src/commonMain/kotlin/behavior/EntryPointCommandBehaviors.kt @@ -0,0 +1,31 @@ +package dev.kord.core.behavior + +import dev.kord.core.cache.data.ApplicationCommandData +import dev.kord.core.entity.application.EntryPointCommand +import dev.kord.core.entity.application.GlobalEntryPointCommand +import dev.kord.core.entity.application.GuildEntryPointCommand +import dev.kord.rest.builder.interaction.EntryPointModifyBuilder + +public interface EntryPointCommandBehavior : ApplicationCommandBehavior { + public suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): EntryPointCommand +} + +public interface GuildEntryPointCommandBehavior : EntryPointCommandBehavior, GuildApplicationCommandBehavior { + override suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): GuildEntryPointCommand { + val response = service.modifyGuildEntryPointApplicationCommand(applicationId, guildId, id) { + builder() + } + val data = ApplicationCommandData.from(response) + return GuildEntryPointCommand(data, service) + } +} + +public interface GlobalEntryPointCommandBehavior : EntryPointCommandBehavior, GlobalApplicationCommandBehavior { + override suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): GlobalEntryPointCommand { + val response = service.modifyGlobalEntryPointApplicationCommand(applicationId, id) { + builder() + } + val data = ApplicationCommandData.from(response) + return GlobalEntryPointCommand(data, service) + } +} diff --git a/core/src/commonMain/kotlin/entity/application/ApplicationCommand.kt b/core/src/commonMain/kotlin/entity/application/ApplicationCommand.kt index 8df8edf0829..c3396196777 100644 --- a/core/src/commonMain/kotlin/entity/application/ApplicationCommand.kt +++ b/core/src/commonMain/kotlin/entity/application/ApplicationCommand.kt @@ -85,6 +85,7 @@ public fun GlobalApplicationCommand(data: ApplicationCommandData, service: Inter ApplicationCommandType.ChatInput -> GlobalChatInputCommand(data, service) ApplicationCommandType.Message -> GlobalMessageCommand(data, service) ApplicationCommandType.User -> GlobalUserCommand(data, service) + ApplicationCommandType.PrimaryEntryPoint -> GlobalEntryPointCommand(data, service) is ApplicationCommandType.Unknown -> UnknownGlobalApplicationCommand(data, service) null -> error("The type value is missing, can't determine the type") } @@ -113,6 +114,7 @@ public fun GuildApplicationCommand(data: ApplicationCommandData, service: Intera ApplicationCommandType.ChatInput -> GuildChatInputCommand(data, service) ApplicationCommandType.Message -> GuildMessageCommand(data, service) ApplicationCommandType.User -> GuildUserCommand(data, service) + ApplicationCommandType.PrimaryEntryPoint -> GuildEntryPointCommand(data, service) is ApplicationCommandType.Unknown -> UnknownGuildApplicationCommand(data, service) null -> error("The type value is missing, can't determine the type") } diff --git a/core/src/commonMain/kotlin/entity/application/EntryPointCommands.kt b/core/src/commonMain/kotlin/entity/application/EntryPointCommands.kt new file mode 100644 index 00000000000..1d0828b44d5 --- /dev/null +++ b/core/src/commonMain/kotlin/entity/application/EntryPointCommands.kt @@ -0,0 +1,23 @@ +package dev.kord.core.entity.application + +import dev.kord.common.entity.Snowflake +import dev.kord.core.behavior.EntryPointCommandBehavior +import dev.kord.core.behavior.GlobalEntryPointCommandBehavior +import dev.kord.core.behavior.GuildEntryPointCommandBehavior +import dev.kord.core.cache.data.ApplicationCommandData +import dev.kord.rest.service.InteractionService + +public interface EntryPointCommand : ApplicationCommand, EntryPointCommandBehavior + +public class GuildEntryPointCommand( + override val data: ApplicationCommandData, + override val service: InteractionService +) : EntryPointCommand, GuildApplicationCommand, GuildEntryPointCommandBehavior { + override val guildId: Snowflake + get() = data.guildId.value!! +} + +public class GlobalEntryPointCommand( + override val data: ApplicationCommandData, + override val service: InteractionService +) : EntryPointCommand, GlobalApplicationCommand, GlobalEntryPointCommandBehavior diff --git a/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt b/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt index 2beffdeb158..801e2cd7024 100644 --- a/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt +++ b/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt @@ -56,6 +56,7 @@ public fun GlobalApplicationCommandInteraction( ApplicationCommandType.Message -> GlobalMessageCommandInteraction(data, kord, supplier) is ApplicationCommandType.Unknown -> error("Unknown application command type ${type.value}") null -> error("No application command type was provided") + else -> error("Got unexpected command type: ${data.type}") } } @@ -78,5 +79,6 @@ public fun GuildApplicationCommandInteraction( ApplicationCommandType.Message -> GuildMessageCommandInteraction(data, kord, supplier) is ApplicationCommandType.Unknown -> error("Unknown application command type ${type.value}") null -> error("No application command type was provided") + else -> error("Got unexpected command type: ${data.type}") } } diff --git a/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt b/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt index 047995ed60d..75ec803d523 100644 --- a/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt +++ b/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt @@ -68,6 +68,7 @@ internal class InteractionEventHandler : BaseGatewayEventHandler() { is GuildMessageCommand -> MessageCommandCreateEvent(application, kord, shard, context?.get()) is GuildUserCommand -> UserCommandCreateEvent(application, kord, shard, context?.get()) is UnknownGuildApplicationCommand -> UnknownApplicationCommandCreateEvent(application, kord, shard, context?.get()) + else -> error("Got unexpected command type: ${data.type}") } return coreEvent } @@ -88,6 +89,7 @@ internal class InteractionEventHandler : BaseGatewayEventHandler() { is GuildMessageCommand -> MessageCommandUpdateEvent(application, kord, shard, context?.get()) is GuildUserCommand -> UserCommandUpdateEvent(application, kord, shard, context?.get()) is UnknownGuildApplicationCommand -> UnknownApplicationCommandUpdateEvent(application, kord, shard, context?.get()) + else -> error("Got unexpected command type: ${data.type}") } return coreEvent } @@ -106,6 +108,7 @@ internal class InteractionEventHandler : BaseGatewayEventHandler() { is GuildMessageCommand -> MessageCommandDeleteEvent(application, kord, shard, context?.get()) is GuildUserCommand -> UserCommandDeleteEvent(application, kord, shard, context?.get()) is UnknownGuildApplicationCommand -> UnknownApplicationCommandDeleteEvent(application, kord, shard, context?.get()) + else -> error("Got unexpected command type: ${data.type}") } return coreEvent } diff --git a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt index 6359879468e..595fa0932be 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt @@ -2,6 +2,7 @@ package dev.kord.rest.builder.interaction import dev.kord.common.Locale import dev.kord.common.entity.ApplicationIntegrationType +import dev.kord.common.entity.EntryPointCommandHandlerType import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional @@ -28,6 +29,7 @@ internal class ApplicationCommandModifyStateHolder { var integrationTypes: Optional> = Optional.Missing() var contexts: Optional> = Optional.Missing() + var handler: Optional = Optional.Missing() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") @SerialName("default_permission") diff --git a/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt new file mode 100644 index 00000000000..08904a2a86a --- /dev/null +++ b/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt @@ -0,0 +1,108 @@ +package dev.kord.rest.builder.interaction + +import dev.kord.common.Locale +import dev.kord.common.annotation.KordDsl +import dev.kord.common.entity.ApplicationCommandType +import dev.kord.common.entity.ApplicationIntegrationType +import dev.kord.common.entity.EntryPointCommandHandlerType +import dev.kord.common.entity.InteractionContextType +import dev.kord.common.entity.Permissions +import dev.kord.common.entity.optional.Optional +import dev.kord.common.entity.optional.delegate.delegate +import dev.kord.common.entity.optional.mapList +import dev.kord.rest.json.request.ApplicationCommandCreateRequest +import dev.kord.rest.json.request.ApplicationCommandModifyRequest + +@KordDsl +public interface EntryPointCreateBuilder : ApplicationCommandCreateBuilder, LocalizedDescriptionCreateBuilder { + public val handler: EntryPointCommandHandlerType? +} + +@KordDsl +public interface GlobalEntryPointCreateBuilder : GlobalApplicationCommandCreateBuilder, EntryPointCreateBuilder + +@KordDsl +public interface EntryPointModifyBuilder : ApplicationCommandModifyBuilder, LocalizedDescriptionModifyBuilder { + public val handler: EntryPointCommandHandlerType? +} + +@KordDsl +public interface GlobalEntryPointModifyBuilder : GlobalApplicationCommandModifyBuilder, EntryPointModifyBuilder + +@PublishedApi +internal class EntryPointCreateBuilderImpl( + override var name: String, + override var description: String, + override val handler: EntryPointCommandHandlerType +) : GlobalEntryPointCreateBuilder { + private val state = ApplicationCommandModifyStateHolder() + + override var nameLocalizations: MutableMap? by state::nameLocalizations.delegate() + override var descriptionLocalizations: MutableMap? by state::descriptionLocalizations.delegate() + + override val type: ApplicationCommandType + get() = ApplicationCommandType.PrimaryEntryPoint + + override var defaultMemberPermissions: Permissions? by state::defaultMemberPermissions.delegate() + + @Suppress("OVERRIDE_DEPRECATION") + override var dmPermission: Boolean? by state::dmPermission.delegate() + override var integrationTypes: MutableList? by state::integrationTypes.delegate() + override var contexts: MutableList? by state::contexts.delegate() + + @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") + override var defaultPermission: Boolean? by @Suppress("DEPRECATION") state::defaultPermission.delegate() + + override var nsfw: Boolean? by state::nsfw.delegate() + + override fun toRequest(): ApplicationCommandCreateRequest { + return ApplicationCommandCreateRequest( + name, + state.nameLocalizations, + type, + Optional.Value(description), + state.descriptionLocalizations, + state.options.mapList { it.toRequest() }, + state.defaultMemberPermissions, + state.dmPermission, + @Suppress("DEPRECATION") state.defaultPermission, + nsfw = state.nsfw, + integrationTypes = state.integrationTypes, + contexts = state.contexts, + handler = Optional.Value(handler) + ) + } +} + +@PublishedApi +internal class EntryPointModifyBuilderImpl : GlobalEntryPointModifyBuilder, EntryPointModifyBuilder { + private val state = ApplicationCommandModifyStateHolder() + override var name: String? by state::name.delegate() + override var nameLocalizations: MutableMap? by state::nameLocalizations.delegate() + + override var description: String? by state::description.delegate() + override var descriptionLocalizations: MutableMap? by state::descriptionLocalizations.delegate() + + override var defaultMemberPermissions: Permissions? by state::defaultMemberPermissions.delegate() + + @Suppress("OVERRIDE_DEPRECATION") + override var dmPermission: Boolean? by state::dmPermission.delegate() + + @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") + override var defaultPermission: Boolean? by @Suppress("DEPRECATION") state::defaultPermission.delegate() + + override var nsfw: Boolean? by state::nsfw.delegate() + + override val handler: EntryPointCommandHandlerType? by state::handler.delegate() + + override fun toRequest(): ApplicationCommandModifyRequest = ApplicationCommandModifyRequest( + state.name, + state.nameLocalizations, + state.description, + state.descriptionLocalizations, + defaultMemberPermissions = state.defaultMemberPermissions, + dmPermission = state.dmPermission, + nsfw = state.nsfw, + handler = state.handler + ) +} diff --git a/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt index f6b0f7151e3..06f9d045ddc 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt @@ -172,6 +172,8 @@ internal class ChatInputCreateBuilderImpl( state.dmPermission, @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, + integrationTypes = state.integrationTypes, + contexts = state.contexts, ) } diff --git a/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt index 89bcacef64c..21c5efa80c9 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt @@ -84,6 +84,8 @@ internal class MessageCommandCreateBuilderImpl(override var name: String) : Glob defaultMemberPermissions = state.defaultMemberPermissions, defaultPermission = @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, + integrationTypes = state.integrationTypes, + contexts = state.contexts, ) } } diff --git a/rest/src/commonMain/kotlin/builder/interaction/MultiApplicationCommandBuilder.kt b/rest/src/commonMain/kotlin/builder/interaction/MultiApplicationCommandBuilder.kt index 907cb3826f5..99d538ad1a9 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/MultiApplicationCommandBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/MultiApplicationCommandBuilder.kt @@ -1,6 +1,7 @@ package dev.kord.rest.builder.interaction import dev.kord.common.annotation.KordDsl +import dev.kord.common.entity.EntryPointCommandHandlerType import dev.kord.rest.json.request.ApplicationCommandCreateRequest import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -13,6 +14,7 @@ public sealed class MultiApplicationCommandBuilder { return commands.map { it.toRequest() } } } + public inline fun MultiApplicationCommandBuilder.input( name: String, description: String, @@ -30,12 +32,16 @@ public inline fun MultiApplicationCommandBuilder.message( commands += MessageCommandCreateBuilderImpl(name).apply(builder) } - public inline fun MultiApplicationCommandBuilder.user(name: String, builder: UserCommandCreateBuilder.() -> Unit = {}) { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } commands += UserCommandCreateBuilderImpl(name).apply(builder) } +public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: EntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit) { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + commands += EntryPointCreateBuilderImpl(name, description, handler).apply(builder) +} + @KordDsl public class GlobalMultiApplicationCommandBuilder : MultiApplicationCommandBuilder() { public inline fun input(name: String, description: String, builder: GlobalChatInputCreateBuilder.() -> Unit = {}) { @@ -53,6 +59,11 @@ public class GlobalMultiApplicationCommandBuilder : MultiApplicationCommandBuild contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } commands += UserCommandCreateBuilderImpl(name).apply(builder) } + + public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: EntryPointCommandHandlerType, builder: GlobalEntryPointCreateBuilder.() -> Unit = {}) { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + commands += EntryPointCreateBuilderImpl(name, description, handler).apply(builder) + } } @KordDsl @@ -72,4 +83,9 @@ public class GuildMultiApplicationCommandBuilder : MultiApplicationCommandBuilde contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } commands += UserCommandCreateBuilderImpl(name).apply(builder) } + + public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: EntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit) { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + commands += EntryPointCreateBuilderImpl(name, description, handler).apply(builder) + } } diff --git a/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt index ccf956cecfa..6b8534b50fa 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt @@ -79,6 +79,8 @@ internal class UserCommandCreateBuilderImpl(override var name: String) : GlobalU dmPermission = state.dmPermission, defaultPermission = @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, + integrationTypes = state.integrationTypes, + contexts = state.contexts, ) } } diff --git a/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt b/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt index f48beda6d53..c1d293408b5 100644 --- a/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt +++ b/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt @@ -26,6 +26,10 @@ public data class ApplicationCommandCreateRequest( @SerialName("default_permission") val defaultPermission: OptionalBoolean = OptionalBoolean.Missing, val nsfw: OptionalBoolean = OptionalBoolean.Missing, + @SerialName("integration_types") + val integrationTypes: Optional> = Optional.Missing(), + val contexts: Optional?> = Optional.Missing(), + val handler: Optional = Optional.Missing() ) @Serializable @@ -45,6 +49,7 @@ public data class ApplicationCommandModifyRequest( @SerialName("default_permission") val defaultPermission: OptionalBoolean = OptionalBoolean.Missing, val nsfw: OptionalBoolean = OptionalBoolean.Missing, + val handler: Optional = Optional.Missing() ) @Serializable diff --git a/rest/src/commonMain/kotlin/service/InteractionService.kt b/rest/src/commonMain/kotlin/service/InteractionService.kt index bb0a1ec086f..915c6da2d5f 100644 --- a/rest/src/commonMain/kotlin/service/InteractionService.kt +++ b/rest/src/commonMain/kotlin/service/InteractionService.kt @@ -477,6 +477,38 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re ) } + public suspend inline fun createGuildEntryPointCommand( + applicationId: Snowflake, + guildId: Snowflake, + name: String, + description: String, + handler: EntryPointCommandHandlerType, + builder: EntryPointCreateBuilder.() -> Unit = {} + ): DiscordApplicationCommand { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + + return createGuildApplicationCommand( + applicationId, + guildId, + EntryPointCreateBuilderImpl(name, description, handler).apply(builder).toRequest() + ) + } + + public suspend inline fun createGlobalEntryPointCommand( + applicationId: Snowflake, + name: String, + description: String, + handler: EntryPointCommandHandlerType, + builder: EntryPointCreateBuilder.() -> Unit = {} + ): DiscordApplicationCommand { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + + return createGlobalApplicationCommand( + applicationId, + EntryPointCreateBuilderImpl(name, description, handler).apply(builder).toRequest() + ) + } + public suspend inline fun createGuildApplicationCommands( applicationId: Snowflake, guildId: Snowflake, @@ -524,6 +556,36 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re ) } + public suspend inline fun modifyGuildEntryPointApplicationCommand( + applicationId: Snowflake, + guildId: Snowflake, + commandId: Snowflake, + builder: EntryPointModifyBuilder.() -> Unit + ): DiscordApplicationCommand { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + + return modifyGuildApplicationCommand( + applicationId, + guildId, + commandId, + EntryPointModifyBuilderImpl().apply(builder).toRequest() + ) + } + + public suspend inline fun modifyGlobalEntryPointApplicationCommand( + applicationId: Snowflake, + commandId: Snowflake, + builder: EntryPointModifyBuilder.() -> Unit + ): DiscordApplicationCommand { + contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } + + return modifyGlobalApplicationCommand( + applicationId, + commandId, + EntryPointModifyBuilderImpl().apply(builder).toRequest() + ) + } + public suspend inline fun modifyGuildUserApplicationCommand( applicationId: Snowflake, guildId: Snowflake, From 839e47d5b61a79f4f6387f79ed874f8e78fb34fe Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Tue, 22 Oct 2024 22:56:44 +0200 Subject: [PATCH 12/22] Api dump --- common/api/common.api | 34 ++++++++++ common/api/common.klib.api | 27 ++++++++ core/api/core.api | 101 ++++++++++++++++++++++++++++ core/api/core.klib.api | 37 +++++++++++ rest/api/rest.api | 132 ++++++++++++++++++++++++++++++++++--- rest/api/rest.klib.api | 117 ++++++++++++++++++++++++++++++-- 6 files changed, 436 insertions(+), 12 deletions(-) diff --git a/common/api/common.api b/common/api/common.api index 1e67e572ace..62f63434f2b 100644 --- a/common/api/common.api +++ b/common/api/common.api @@ -572,6 +572,10 @@ public final class dev/kord/common/entity/ApplicationCommandType$Message : dev/k public static final field INSTANCE Ldev/kord/common/entity/ApplicationCommandType$Message; } +public final class dev/kord/common/entity/ApplicationCommandType$PrimaryEntryPoint : dev/kord/common/entity/ApplicationCommandType { + public static final field INSTANCE Ldev/kord/common/entity/ApplicationCommandType$PrimaryEntryPoint; +} + public final class dev/kord/common/entity/ApplicationCommandType$Unknown : dev/kord/common/entity/ApplicationCommandType { } @@ -6754,6 +6758,32 @@ public final class dev/kord/common/entity/EntitlementType$UserGift : dev/kord/co public static final field INSTANCE Ldev/kord/common/entity/EntitlementType$UserGift; } +public abstract class dev/kord/common/entity/EntryPointCommandHandlerType { + public static final field Companion Ldev/kord/common/entity/EntryPointCommandHandlerType$Companion; + public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun equals (Ljava/lang/Object;)Z + public final fun getValue ()I + public final fun hashCode ()I + public final fun toString ()Ljava/lang/String; +} + +public final class dev/kord/common/entity/EntryPointCommandHandlerType$AppHandler : dev/kord/common/entity/EntryPointCommandHandlerType { + public static final field INSTANCE Ldev/kord/common/entity/EntryPointCommandHandlerType$AppHandler; +} + +public final class dev/kord/common/entity/EntryPointCommandHandlerType$Companion { + public final fun from (I)Ldev/kord/common/entity/EntryPointCommandHandlerType; + public final fun getEntries ()Ljava/util/List; + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/kord/common/entity/EntryPointCommandHandlerType$DiscordLaunchActivity : dev/kord/common/entity/EntryPointCommandHandlerType { + public static final field INSTANCE Ldev/kord/common/entity/EntryPointCommandHandlerType$DiscordLaunchActivity; +} + +public final class dev/kord/common/entity/EntryPointCommandHandlerType$Unknown : dev/kord/common/entity/EntryPointCommandHandlerType { +} + public abstract class dev/kord/common/entity/ExplicitContentFilter { public static final field Companion Ldev/kord/common/entity/ExplicitContentFilter$Companion; public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -7337,6 +7367,10 @@ public final class dev/kord/common/entity/InteractionResponseType$DeferredUpdate public static final field INSTANCE Ldev/kord/common/entity/InteractionResponseType$DeferredUpdateMessage; } +public final class dev/kord/common/entity/InteractionResponseType$LaunchActivity : dev/kord/common/entity/InteractionResponseType { + public static final field INSTANCE Ldev/kord/common/entity/InteractionResponseType$LaunchActivity; +} + public final class dev/kord/common/entity/InteractionResponseType$Modal : dev/kord/common/entity/InteractionResponseType { public static final field INSTANCE Ldev/kord/common/entity/InteractionResponseType$Modal; } diff --git a/common/api/common.klib.api b/common/api/common.klib.api index 2ddf82240d1..dd528dba5a7 100644 --- a/common/api/common.klib.api +++ b/common/api/common.klib.api @@ -7372,6 +7372,8 @@ sealed class dev.kord.common.entity/ApplicationCommandType { // dev.kord.common. final object Message : dev.kord.common.entity/ApplicationCommandType // dev.kord.common.entity/ApplicationCommandType.Message|null[0] + final object PrimaryEntryPoint : dev.kord.common.entity/ApplicationCommandType // dev.kord.common.entity/ApplicationCommandType.PrimaryEntryPoint|null[0] + final object User : dev.kord.common.entity/ApplicationCommandType // dev.kord.common.entity/ApplicationCommandType.User|null[0] } @@ -8146,6 +8148,29 @@ sealed class dev.kord.common.entity/EntitlementType { // dev.kord.common.entity/ final object UserGift : dev.kord.common.entity/EntitlementType // dev.kord.common.entity/EntitlementType.UserGift|null[0] } +sealed class dev.kord.common.entity/EntryPointCommandHandlerType { // dev.kord.common.entity/EntryPointCommandHandlerType|null[0] + final val value // dev.kord.common.entity/EntryPointCommandHandlerType.value|{}value[0] + final fun (): kotlin/Int // dev.kord.common.entity/EntryPointCommandHandlerType.value.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/EntryPointCommandHandlerType.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.common.entity/EntryPointCommandHandlerType.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.common.entity/EntryPointCommandHandlerType.toString|toString(){}[0] + + final class Unknown : dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.common.entity/EntryPointCommandHandlerType.Unknown|null[0] + + final object AppHandler : dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.common.entity/EntryPointCommandHandlerType.AppHandler|null[0] + + final object Companion { // dev.kord.common.entity/EntryPointCommandHandlerType.Companion|null[0] + final val entries // dev.kord.common.entity/EntryPointCommandHandlerType.Companion.entries|{}entries[0] + final fun (): kotlin.collections/List // dev.kord.common.entity/EntryPointCommandHandlerType.Companion.entries.|(){}[0] + + final fun from(kotlin/Int): dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.common.entity/EntryPointCommandHandlerType.Companion.from|from(kotlin.Int){}[0] + final fun serializer(): kotlinx.serialization/KSerializer // dev.kord.common.entity/EntryPointCommandHandlerType.Companion.serializer|serializer(){}[0] + } + + final object DiscordLaunchActivity : dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.common.entity/EntryPointCommandHandlerType.DiscordLaunchActivity|null[0] +} + sealed class dev.kord.common.entity/ExplicitContentFilter { // dev.kord.common.entity/ExplicitContentFilter|null[0] final val value // dev.kord.common.entity/ExplicitContentFilter.value|{}value[0] final fun (): kotlin/Int // dev.kord.common.entity/ExplicitContentFilter.value.|(){}[0] @@ -8421,6 +8446,8 @@ sealed class dev.kord.common.entity/InteractionResponseType { // dev.kord.common final object DeferredUpdateMessage : dev.kord.common.entity/InteractionResponseType // dev.kord.common.entity/InteractionResponseType.DeferredUpdateMessage|null[0] + final object LaunchActivity : dev.kord.common.entity/InteractionResponseType // dev.kord.common.entity/InteractionResponseType.LaunchActivity|null[0] + final object Modal : dev.kord.common.entity/InteractionResponseType // dev.kord.common.entity/InteractionResponseType.Modal|null[0] final object Pong : dev.kord.common.entity/InteractionResponseType // dev.kord.common.entity/InteractionResponseType.Pong|null[0] diff --git a/core/api/core.api b/core/api/core.api index bbf0fb07e20..cc36f3c5d48 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -15,6 +15,8 @@ public final class dev/kord/core/Kord : kotlinx/coroutines/CoroutineScope { public final fun createGlobalApplicationCommands (Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGlobalChatInputCommand (Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalChatInputCommand$default (Ldev/kord/core/Kord;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public final fun createGlobalEntryPointCommand (Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun createGlobalEntryPointCommand$default (Ldev/kord/core/Kord;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGlobalMessageCommand (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalMessageCommand$default (Ldev/kord/core/Kord;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGlobalUserCommand (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -23,6 +25,8 @@ public final class dev/kord/core/Kord : kotlinx/coroutines/CoroutineScope { public final fun createGuildApplicationCommands (Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGuildChatInputCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildChatInputCommand$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public final fun createGuildEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun createGuildEntryPointCommand$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildMessageCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildMessageCommand$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildUserCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -180,6 +184,14 @@ public final class dev/kord/core/behavior/ChatInputCommandBehavior$DefaultImpls public static fun compareTo (Ldev/kord/core/behavior/ChatInputCommandBehavior;Ldev/kord/core/entity/Entity;)I } +public abstract interface class dev/kord/core/behavior/EntryPointCommandBehavior : dev/kord/core/behavior/ApplicationCommandBehavior { + public abstract fun edit (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; +} + +public final class dev/kord/core/behavior/EntryPointCommandBehavior$DefaultImpls { + public static fun compareTo (Ldev/kord/core/behavior/EntryPointCommandBehavior;Ldev/kord/core/entity/Entity;)I +} + public abstract interface class dev/kord/core/behavior/GlobalApplicationCommandBehavior : dev/kord/core/behavior/ApplicationCommandBehavior { public abstract fun delete (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } @@ -204,6 +216,16 @@ public final class dev/kord/core/behavior/GlobalChatInputCommandBehavior$Default public static fun edit (Ldev/kord/core/behavior/GlobalChatInputCommandBehavior;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } +public abstract interface class dev/kord/core/behavior/GlobalEntryPointCommandBehavior : dev/kord/core/behavior/EntryPointCommandBehavior, dev/kord/core/behavior/GlobalApplicationCommandBehavior { + public abstract fun edit (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; +} + +public final class dev/kord/core/behavior/GlobalEntryPointCommandBehavior$DefaultImpls { + public static fun compareTo (Ldev/kord/core/behavior/GlobalEntryPointCommandBehavior;Ldev/kord/core/entity/Entity;)I + public static fun delete (Ldev/kord/core/behavior/GlobalEntryPointCommandBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun edit (Ldev/kord/core/behavior/GlobalEntryPointCommandBehavior;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; +} + public abstract interface class dev/kord/core/behavior/GlobalMessageCommandBehavior : dev/kord/core/behavior/GlobalApplicationCommandBehavior, dev/kord/core/behavior/MessageCommandBehavior { public abstract fun edit (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } @@ -461,6 +483,16 @@ public final class dev/kord/core/behavior/GuildEmojiBehaviorKt { public static final fun edit (Ldev/kord/core/behavior/GuildEmojiBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } +public abstract interface class dev/kord/core/behavior/GuildEntryPointCommandBehavior : dev/kord/core/behavior/EntryPointCommandBehavior, dev/kord/core/behavior/GuildApplicationCommandBehavior { + public abstract fun edit (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; +} + +public final class dev/kord/core/behavior/GuildEntryPointCommandBehavior$DefaultImpls { + public static fun compareTo (Ldev/kord/core/behavior/GuildEntryPointCommandBehavior;Ldev/kord/core/entity/Entity;)I + public static fun delete (Ldev/kord/core/behavior/GuildEntryPointCommandBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun edit (Ldev/kord/core/behavior/GuildEntryPointCommandBehavior;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; +} + public abstract interface class dev/kord/core/behavior/GuildMessageCommandBehavior : dev/kord/core/behavior/GuildApplicationCommandBehavior, dev/kord/core/behavior/MessageCommandBehavior { public abstract fun edit (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } @@ -1995,6 +2027,7 @@ public final class dev/kord/core/behavior/interaction/response/DeferredEphemeral public static fun delete (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior; } @@ -2007,6 +2040,7 @@ public final class dev/kord/core/behavior/interaction/response/DeferredMessageIn public static fun delete (Ldev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehaviorKt { @@ -2021,6 +2055,7 @@ public final class dev/kord/core/behavior/interaction/response/DeferredPublicMes public static fun delete (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior; } @@ -2044,6 +2079,7 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Ephe public final class dev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior : dev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior, dev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior { @@ -2054,6 +2090,7 @@ public final class dev/kord/core/behavior/interaction/response/EphemeralMessageI public static fun delete (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior; } @@ -2070,6 +2107,7 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Foll public final class dev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior; } @@ -2085,12 +2123,14 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Inte public abstract fun getFollowupMessage (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getFollowupMessageOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getToken ()Ljava/lang/String; + public abstract fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior; } public final class dev/kord/core/behavior/interaction/response/InteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior : dev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior { @@ -2102,6 +2142,7 @@ public final class dev/kord/core/behavior/interaction/response/MessageInteractio public static fun delete (Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/response/MessageInteractionResponseBehaviorKt { @@ -2115,6 +2156,7 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Popu public final class dev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior; } @@ -2130,6 +2172,7 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Publ public final class dev/kord/core/behavior/interaction/response/PublicInteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/PublicInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/PublicInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/PublicInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/response/PublicMesageInteractionResponseBehaviorKt { @@ -2146,6 +2189,7 @@ public final class dev/kord/core/behavior/interaction/response/PublicMessageInte public static fun delete (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior; } @@ -7523,6 +7567,22 @@ public final class dev/kord/core/entity/application/ChatInputSubCommand { public final fun getParameters ()Ljava/util/Map; } +public abstract interface class dev/kord/core/entity/application/EntryPointCommand : dev/kord/core/behavior/EntryPointCommandBehavior, dev/kord/core/entity/application/ApplicationCommand { +} + +public final class dev/kord/core/entity/application/EntryPointCommand$DefaultImpls { + public static fun compareTo (Ldev/kord/core/entity/application/EntryPointCommand;Ldev/kord/core/entity/Entity;)I + public static fun getApplicationId (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/Snowflake; + public static fun getDefaultMemberPermissions (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/Permissions; + public static fun getDefaultPermission (Ldev/kord/core/entity/application/EntryPointCommand;)Ljava/lang/Boolean; + public static fun getId (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/Snowflake; + public static fun getName (Ldev/kord/core/entity/application/EntryPointCommand;)Ljava/lang/String; + public static fun getNameLocalizations (Ldev/kord/core/entity/application/EntryPointCommand;)Ljava/util/Map; + public static fun getType (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/ApplicationCommandType; + public static fun getVersion (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/Snowflake; + public static fun isNsfw (Ldev/kord/core/entity/application/EntryPointCommand;)Z +} + public abstract interface class dev/kord/core/entity/application/GlobalApplicationCommand : dev/kord/core/behavior/GlobalApplicationCommandBehavior, dev/kord/core/entity/application/ApplicationCommand { public abstract fun getDmPermission ()Z } @@ -7566,6 +7626,26 @@ public final class dev/kord/core/entity/application/GlobalChatInputCommand : dev public fun isNsfw ()Z } +public final class dev/kord/core/entity/application/GlobalEntryPointCommand : dev/kord/core/behavior/GlobalEntryPointCommandBehavior, dev/kord/core/entity/application/EntryPointCommand, dev/kord/core/entity/application/GlobalApplicationCommand { + public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V + public fun compareTo (Ldev/kord/core/entity/Entity;)I + public synthetic fun compareTo (Ljava/lang/Object;)I + public fun delete (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun edit (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getData ()Ldev/kord/core/cache/data/ApplicationCommandData; + public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; + public fun getDefaultPermission ()Ljava/lang/Boolean; + public fun getDmPermission ()Z + public fun getId ()Ldev/kord/common/entity/Snowflake; + public fun getName ()Ljava/lang/String; + public fun getNameLocalizations ()Ljava/util/Map; + public fun getService ()Ldev/kord/rest/service/InteractionService; + public fun getType ()Ldev/kord/common/entity/ApplicationCommandType; + public fun getVersion ()Ldev/kord/common/entity/Snowflake; + public fun isNsfw ()Z +} + public final class dev/kord/core/entity/application/GlobalMessageCommand : dev/kord/core/behavior/GlobalMessageCommandBehavior, dev/kord/core/entity/application/GlobalApplicationCommand, dev/kord/core/entity/application/MessageCommand { public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I @@ -7655,6 +7735,26 @@ public final class dev/kord/core/entity/application/GuildChatInputCommand : dev/ public fun isNsfw ()Z } +public final class dev/kord/core/entity/application/GuildEntryPointCommand : dev/kord/core/behavior/GuildEntryPointCommandBehavior, dev/kord/core/entity/application/EntryPointCommand, dev/kord/core/entity/application/GuildApplicationCommand { + public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V + public fun compareTo (Ldev/kord/core/entity/Entity;)I + public synthetic fun compareTo (Ljava/lang/Object;)I + public fun delete (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun edit (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getData ()Ldev/kord/core/cache/data/ApplicationCommandData; + public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; + public fun getDefaultPermission ()Ljava/lang/Boolean; + public fun getGuildId ()Ldev/kord/common/entity/Snowflake; + public fun getId ()Ldev/kord/common/entity/Snowflake; + public fun getName ()Ljava/lang/String; + public fun getNameLocalizations ()Ljava/util/Map; + public fun getService ()Ldev/kord/rest/service/InteractionService; + public fun getType ()Ldev/kord/common/entity/ApplicationCommandType; + public fun getVersion ()Ldev/kord/common/entity/Snowflake; + public fun isNsfw ()Z +} + public final class dev/kord/core/entity/application/GuildMessageCommand : dev/kord/core/behavior/GuildMessageCommandBehavior, dev/kord/core/entity/application/GuildApplicationCommand, dev/kord/core/entity/application/MessageCommand { public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I @@ -11058,6 +11158,7 @@ public abstract class dev/kord/core/entity/interaction/response/MessageInteracti public fun getFollowupMessage (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getFollowupMessageOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getMessage ()Ldev/kord/core/entity/Message; + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/response/MessageInteractionResponse; } diff --git a/core/api/core.klib.api b/core/api/core.klib.api index 3e98793e52e..8811a99d21a 100644 --- a/core/api/core.klib.api +++ b/core/api/core.klib.api @@ -440,6 +440,10 @@ abstract interface dev.kord.core.behavior/ChatInputCommandBehavior : dev.kord.co abstract suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/ChatInputCommandCommand // dev.kord.core.behavior/ChatInputCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] } +abstract interface dev.kord.core.behavior/EntryPointCommandBehavior : dev.kord.core.behavior/ApplicationCommandBehavior { // dev.kord.core.behavior/EntryPointCommandBehavior|null[0] + abstract suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/EntryPointCommand // dev.kord.core.behavior/EntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] +} + abstract interface dev.kord.core.behavior/GlobalApplicationCommandBehavior : dev.kord.core.behavior/ApplicationCommandBehavior { // dev.kord.core.behavior/GlobalApplicationCommandBehavior|null[0] open suspend fun delete() // dev.kord.core.behavior/GlobalApplicationCommandBehavior.delete|delete(){}[0] } @@ -448,6 +452,10 @@ abstract interface dev.kord.core.behavior/GlobalChatInputCommandBehavior : dev.k open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GlobalChatInputCommand // dev.kord.core.behavior/GlobalChatInputCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] } +abstract interface dev.kord.core.behavior/GlobalEntryPointCommandBehavior : dev.kord.core.behavior/EntryPointCommandBehavior, dev.kord.core.behavior/GlobalApplicationCommandBehavior { // dev.kord.core.behavior/GlobalEntryPointCommandBehavior|null[0] + open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GlobalEntryPointCommand // dev.kord.core.behavior/GlobalEntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] +} + abstract interface dev.kord.core.behavior/GlobalMessageCommandBehavior : dev.kord.core.behavior/GlobalApplicationCommandBehavior, dev.kord.core.behavior/MessageCommandBehavior { // dev.kord.core.behavior/GlobalMessageCommandBehavior|null[0] open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GlobalMessageCommand // dev.kord.core.behavior/GlobalMessageCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] } @@ -564,6 +572,10 @@ abstract interface dev.kord.core.behavior/GuildEmojiBehavior : dev.kord.core.ent open suspend fun delete(kotlin/String? = ...) // dev.kord.core.behavior/GuildEmojiBehavior.delete|delete(kotlin.String?){}[0] } +abstract interface dev.kord.core.behavior/GuildEntryPointCommandBehavior : dev.kord.core.behavior/EntryPointCommandBehavior, dev.kord.core.behavior/GuildApplicationCommandBehavior { // dev.kord.core.behavior/GuildEntryPointCommandBehavior|null[0] + open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GuildEntryPointCommand // dev.kord.core.behavior/GuildEntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] +} + abstract interface dev.kord.core.behavior/GuildMessageCommandBehavior : dev.kord.core.behavior/GuildApplicationCommandBehavior, dev.kord.core.behavior/MessageCommandBehavior { // dev.kord.core.behavior/GuildMessageCommandBehavior|null[0] open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GuildMessageCommand // dev.kord.core.behavior/GuildMessageCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] } @@ -734,6 +746,8 @@ abstract interface dev.kord.core.behavior/WebhookBehavior : dev.kord.core.entity open suspend fun getMessageOrNull(kotlin/String, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake? = ...): dev.kord.core.entity/Message? // dev.kord.core.behavior/WebhookBehavior.getMessageOrNull|getMessageOrNull(kotlin.String;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake?){}[0] } +abstract interface dev.kord.core.entity.application/EntryPointCommand : dev.kord.core.behavior/EntryPointCommandBehavior, dev.kord.core.entity.application/ApplicationCommand // dev.kord.core.entity.application/EntryPointCommand|null[0] + abstract interface dev.kord.core.entity.application/GlobalApplicationCommand : dev.kord.core.behavior/GlobalApplicationCommandBehavior, dev.kord.core.entity.application/ApplicationCommand { // dev.kord.core.entity.application/GlobalApplicationCommand|null[0] open val dmPermission // dev.kord.core.entity.application/GlobalApplicationCommand.dmPermission|{}dmPermission[0] open fun (): kotlin/Boolean // dev.kord.core.entity.application/GlobalApplicationCommand.dmPermission.|(){}[0] @@ -1082,6 +1096,7 @@ sealed interface dev.kord.core.behavior.interaction.response/InteractionResponse abstract fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.behavior.interaction.response/InteractionResponseBehavior // dev.kord.core.behavior.interaction.response/InteractionResponseBehavior.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] open suspend fun getFollowupMessage(dev.kord.common.entity/Snowflake): dev.kord.core.entity.interaction.followup/FollowupMessage // dev.kord.core.behavior.interaction.response/InteractionResponseBehavior.getFollowupMessage|getFollowupMessage(dev.kord.common.entity.Snowflake){}[0] open suspend fun getFollowupMessageOrNull(dev.kord.common.entity/Snowflake): dev.kord.core.entity.interaction.followup/FollowupMessage? // dev.kord.core.behavior.interaction.response/InteractionResponseBehavior.getFollowupMessageOrNull|getFollowupMessageOrNull(dev.kord.common.entity.Snowflake){}[0] + open suspend fun openActivity() // dev.kord.core.behavior.interaction.response/InteractionResponseBehavior.openActivity|openActivity(){}[0] } sealed interface dev.kord.core.behavior.interaction.response/PublicInteractionResponseBehavior : dev.kord.core.behavior.interaction.response/InteractionResponseBehavior { // dev.kord.core.behavior.interaction.response/PublicInteractionResponseBehavior|null[0] @@ -5919,6 +5934,15 @@ final class dev.kord.core.entity.application/GlobalChatInputCommand : dev.kord.c final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GlobalChatInputCommand.service.|(){}[0] } +final class dev.kord.core.entity.application/GlobalEntryPointCommand : dev.kord.core.behavior/GlobalEntryPointCommandBehavior, dev.kord.core.entity.application/EntryPointCommand, dev.kord.core.entity.application/GlobalApplicationCommand { // dev.kord.core.entity.application/GlobalEntryPointCommand|null[0] + constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GlobalEntryPointCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] + + final val data // dev.kord.core.entity.application/GlobalEntryPointCommand.data|{}data[0] + final fun (): dev.kord.core.cache.data/ApplicationCommandData // dev.kord.core.entity.application/GlobalEntryPointCommand.data.|(){}[0] + final val service // dev.kord.core.entity.application/GlobalEntryPointCommand.service|{}service[0] + final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GlobalEntryPointCommand.service.|(){}[0] +} + final class dev.kord.core.entity.application/GlobalMessageCommand : dev.kord.core.behavior/GlobalMessageCommandBehavior, dev.kord.core.entity.application/GlobalApplicationCommand, dev.kord.core.entity.application/MessageCommand { // dev.kord.core.entity.application/GlobalMessageCommand|null[0] constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GlobalMessageCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] @@ -5961,6 +5985,17 @@ final class dev.kord.core.entity.application/GuildChatInputCommand : dev.kord.co final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GuildChatInputCommand.service.|(){}[0] } +final class dev.kord.core.entity.application/GuildEntryPointCommand : dev.kord.core.behavior/GuildEntryPointCommandBehavior, dev.kord.core.entity.application/EntryPointCommand, dev.kord.core.entity.application/GuildApplicationCommand { // dev.kord.core.entity.application/GuildEntryPointCommand|null[0] + constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GuildEntryPointCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] + + final val data // dev.kord.core.entity.application/GuildEntryPointCommand.data|{}data[0] + final fun (): dev.kord.core.cache.data/ApplicationCommandData // dev.kord.core.entity.application/GuildEntryPointCommand.data.|(){}[0] + final val guildId // dev.kord.core.entity.application/GuildEntryPointCommand.guildId|{}guildId[0] + final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.entity.application/GuildEntryPointCommand.guildId.|(){}[0] + final val service // dev.kord.core.entity.application/GuildEntryPointCommand.service|{}service[0] + final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GuildEntryPointCommand.service.|(){}[0] +} + final class dev.kord.core.entity.application/GuildMessageCommand : dev.kord.core.behavior/GuildMessageCommandBehavior, dev.kord.core.entity.application/GuildApplicationCommand, dev.kord.core.entity.application/MessageCommand { // dev.kord.core.entity.application/GuildMessageCommand|null[0] constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GuildMessageCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] @@ -11838,11 +11873,13 @@ final class dev.kord.core/Kord : kotlinx.coroutines/CoroutineScope { // dev.kord final suspend inline fun <#A1: reified dev.kord.core.entity.channel/Channel> getChannelOf(dev.kord.common.entity/Snowflake, dev.kord.core.supplier/EntitySupplyStrategy<*> = ...): #A1? // dev.kord.core/Kord.getChannelOf|getChannelOf(dev.kord.common.entity.Snowflake;dev.kord.core.supplier.EntitySupplyStrategy<*>){0§}[0] final suspend inline fun createGlobalApplicationCommands(kotlin/Function1): kotlinx.coroutines.flow/Flow // dev.kord.core/Kord.createGlobalApplicationCommands|createGlobalApplicationCommands(kotlin.Function1){}[0] final suspend inline fun createGlobalChatInputCommand(kotlin/String, kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalChatInputCommand // dev.kord.core/Kord.createGlobalChatInputCommand|createGlobalChatInputCommand(kotlin.String;kotlin.String;kotlin.Function1){}[0] + final suspend inline fun createGlobalEntryPointCommand(kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalEntryPointCommand // dev.kord.core/Kord.createGlobalEntryPointCommand|createGlobalEntryPointCommand(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGlobalMessageCommand(kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalMessageCommand // dev.kord.core/Kord.createGlobalMessageCommand|createGlobalMessageCommand(kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGlobalUserCommand(kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalUserCommand // dev.kord.core/Kord.createGlobalUserCommand|createGlobalUserCommand(kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGuild(kotlin/String, kotlin/Function1): dev.kord.core.entity/Guild // dev.kord.core/Kord.createGuild|createGuild(kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGuildApplicationCommands(dev.kord.common.entity/Snowflake, kotlin/Function1): kotlinx.coroutines.flow/Flow // dev.kord.core/Kord.createGuildApplicationCommands|createGuildApplicationCommands(dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun createGuildChatInputCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildChatInputCommand // dev.kord.core/Kord.createGuildChatInputCommand|createGuildChatInputCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Function1){}[0] + final suspend inline fun createGuildEntryPointCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildEntryPointCommand // dev.kord.core/Kord.createGuildEntryPointCommand|createGuildEntryPointCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGuildMessageCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildMessageCommand // dev.kord.core/Kord.createGuildMessageCommand|createGuildMessageCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGuildUserCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildUserCommand // dev.kord.core/Kord.createGuildUserCommand|createGuildUserCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun editPresence(kotlin/Function1) // dev.kord.core/Kord.editPresence|editPresence(kotlin.Function1){}[0] diff --git a/rest/api/rest.api b/rest/api/rest.api index 9ecc2edeef4..7bbd461679e 100644 --- a/rest/api/rest.api +++ b/rest/api/rest.api @@ -1646,6 +1646,85 @@ public final class dev/kord/rest/builder/interaction/ChoiceLocalizationsBuilder public final fun set_nameLocalizations (Ldev/kord/common/entity/optional/Optional;)V } +public abstract interface class dev/kord/rest/builder/interaction/EntryPointCreateBuilder : dev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder, dev/kord/rest/builder/interaction/LocalizedDescriptionCreateBuilder { + public abstract fun getHandler ()Ldev/kord/common/entity/EntryPointCommandHandlerType; +} + +public final class dev/kord/rest/builder/interaction/EntryPointCreateBuilder$DefaultImpls { + public static fun description (Ldev/kord/rest/builder/interaction/EntryPointCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/EntryPointCreateBuilder;)V + public static fun name (Ldev/kord/rest/builder/interaction/EntryPointCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/EntryPointCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/EntryPointCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V +} + +public final class dev/kord/rest/builder/interaction/EntryPointCreateBuilderImpl : dev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder { + public fun (Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;)V + public fun description (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun disableCommandInGuilds ()V + public fun getContexts ()Ljava/util/List; + public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; + public fun getDefaultPermission ()Ljava/lang/Boolean; + public fun getDescription ()Ljava/lang/String; + public fun getDescriptionLocalizations ()Ljava/util/Map; + public fun getDmPermission ()Ljava/lang/Boolean; + public fun getHandler ()Ldev/kord/common/entity/EntryPointCommandHandlerType; + public fun getIntegrationTypes ()Ljava/util/List; + public fun getName ()Ljava/lang/String; + public fun getNameLocalizations ()Ljava/util/Map; + public fun getNsfw ()Ljava/lang/Boolean; + public fun getType ()Ldev/kord/common/entity/ApplicationCommandType; + public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public fun setContexts (Ljava/util/List;)V + public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V + public fun setDefaultPermission (Ljava/lang/Boolean;)V + public fun setDescription (Ljava/lang/String;)V + public fun setDescriptionLocalizations (Ljava/util/Map;)V + public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setIntegrationTypes (Ljava/util/List;)V + public fun setName (Ljava/lang/String;)V + public fun setNameLocalizations (Ljava/util/Map;)V + public fun setNsfw (Ljava/lang/Boolean;)V + public fun toRequest ()Ldev/kord/rest/json/request/ApplicationCommandCreateRequest; + public synthetic fun toRequest ()Ljava/lang/Object; +} + +public abstract interface class dev/kord/rest/builder/interaction/EntryPointModifyBuilder : dev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder, dev/kord/rest/builder/interaction/LocalizedDescriptionModifyBuilder { + public abstract fun getHandler ()Ldev/kord/common/entity/EntryPointCommandHandlerType; +} + +public final class dev/kord/rest/builder/interaction/EntryPointModifyBuilder$DefaultImpls { + public static fun description (Ldev/kord/rest/builder/interaction/EntryPointModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun name (Ldev/kord/rest/builder/interaction/EntryPointModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V +} + +public final class dev/kord/rest/builder/interaction/EntryPointModifyBuilderImpl : dev/kord/rest/builder/interaction/EntryPointModifyBuilder, dev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder { + public fun ()V + public fun description (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; + public fun getDefaultPermission ()Ljava/lang/Boolean; + public fun getDescription ()Ljava/lang/String; + public fun getDescriptionLocalizations ()Ljava/util/Map; + public fun getDmPermission ()Ljava/lang/Boolean; + public fun getHandler ()Ldev/kord/common/entity/EntryPointCommandHandlerType; + public fun getName ()Ljava/lang/String; + public fun getNameLocalizations ()Ljava/util/Map; + public fun getNsfw ()Ljava/lang/Boolean; + public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V + public fun setDefaultPermission (Ljava/lang/Boolean;)V + public fun setDescription (Ljava/lang/String;)V + public fun setDescriptionLocalizations (Ljava/util/Map;)V + public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setName (Ljava/lang/String;)V + public fun setNameLocalizations (Ljava/util/Map;)V + public fun setNsfw (Ljava/lang/Boolean;)V + public fun toRequest ()Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; + public synthetic fun toRequest ()Ljava/lang/Object; +} + public abstract interface class dev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder : dev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder { public abstract fun getDmPermission ()Ljava/lang/Boolean; public abstract fun setDmPermission (Ljava/lang/Boolean;)V @@ -1686,6 +1765,25 @@ public final class dev/kord/rest/builder/interaction/GlobalChatInputModifyBuilde public static fun name (Ldev/kord/rest/builder/interaction/GlobalChatInputModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V } +public abstract interface class dev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder : dev/kord/rest/builder/interaction/EntryPointCreateBuilder, dev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder { +} + +public final class dev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder$DefaultImpls { + public static fun description (Ldev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun disableCommandInGuilds (Ldev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder;)V + public static fun name (Ldev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V +} + +public abstract interface class dev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder : dev/kord/rest/builder/interaction/EntryPointModifyBuilder, dev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder { +} + +public final class dev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder$DefaultImpls { + public static fun description (Ldev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun name (Ldev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V +} + public abstract interface class dev/kord/rest/builder/interaction/GlobalMessageCommandCreateBuilder : dev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder, dev/kord/rest/builder/interaction/MessageCommandCreateBuilder { } @@ -1705,6 +1803,8 @@ public final class dev/kord/rest/builder/interaction/GlobalMessageCommandModifyB public final class dev/kord/rest/builder/interaction/GlobalMultiApplicationCommandBuilder : dev/kord/rest/builder/interaction/MultiApplicationCommandBuilder { public fun ()V + public final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun entryPoint$default (Ldev/kord/rest/builder/interaction/GlobalMultiApplicationCommandBuilder;Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public final fun input (Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun input$default (Ldev/kord/rest/builder/interaction/GlobalMultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public final fun message (Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1737,6 +1837,7 @@ public final class dev/kord/rest/builder/interaction/GroupCommandBuilder : dev/k public final class dev/kord/rest/builder/interaction/GuildMultiApplicationCommandBuilder : dev/kord/rest/builder/interaction/MultiApplicationCommandBuilder { public fun ()V + public final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V public final fun input (Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun input$default (Ldev/kord/rest/builder/interaction/GuildMultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public final fun message (Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1919,6 +2020,7 @@ public abstract class dev/kord/rest/builder/interaction/MultiApplicationCommandB } public final class dev/kord/rest/builder/interaction/MultiApplicationCommandBuilderKt { + public static final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V public static final fun input (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun input$default (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun message (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -2860,10 +2962,13 @@ public final class dev/kord/rest/json/JsonErrorCode$Companion { public final class dev/kord/rest/json/request/ApplicationCommandCreateRequest { public static final field Companion Ldev/kord/rest/json/request/ApplicationCommandCreateRequest$Companion; - public fun (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/ApplicationCommandType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;)V - public synthetic fun (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/ApplicationCommandType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/ApplicationCommandType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/ApplicationCommandType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ljava/lang/String; public final fun component10 ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun component11 ()Ldev/kord/common/entity/optional/Optional; + public final fun component12 ()Ldev/kord/common/entity/optional/Optional; + public final fun component13 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ldev/kord/common/entity/optional/Optional; public final fun component3 ()Ldev/kord/common/entity/ApplicationCommandType; public final fun component4 ()Ldev/kord/common/entity/optional/Optional; @@ -2872,14 +2977,17 @@ public final class dev/kord/rest/json/request/ApplicationCommandCreateRequest { public final fun component7 ()Ldev/kord/common/entity/optional/Optional; public final fun component8 ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun component9 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun copy (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/ApplicationCommandType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;)Ldev/kord/rest/json/request/ApplicationCommandCreateRequest; - public static synthetic fun copy$default (Ldev/kord/rest/json/request/ApplicationCommandCreateRequest;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/ApplicationCommandType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;ILjava/lang/Object;)Ldev/kord/rest/json/request/ApplicationCommandCreateRequest; + public final fun copy (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/ApplicationCommandType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/rest/json/request/ApplicationCommandCreateRequest; + public static synthetic fun copy$default (Ldev/kord/rest/json/request/ApplicationCommandCreateRequest;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/ApplicationCommandType;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/rest/json/request/ApplicationCommandCreateRequest; public fun equals (Ljava/lang/Object;)Z + public final fun getContexts ()Ldev/kord/common/entity/optional/Optional; public final fun getDefaultMemberPermissions ()Ldev/kord/common/entity/optional/Optional; public final fun getDefaultPermission ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getDescription ()Ldev/kord/common/entity/optional/Optional; public final fun getDescriptionLocalizations ()Ldev/kord/common/entity/optional/Optional; public final fun getDmPermission ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun getHandler ()Ldev/kord/common/entity/optional/Optional; + public final fun getIntegrationTypes ()Ldev/kord/common/entity/optional/Optional; public final fun getName ()Ljava/lang/String; public final fun getNameLocalizations ()Ldev/kord/common/entity/optional/Optional; public final fun getNsfw ()Ldev/kord/common/entity/optional/OptionalBoolean; @@ -2907,9 +3015,10 @@ public final class dev/kord/rest/json/request/ApplicationCommandCreateRequest$Co public final class dev/kord/rest/json/request/ApplicationCommandModifyRequest { public static final field Companion Ldev/kord/rest/json/request/ApplicationCommandModifyRequest$Companion; public fun ()V - public fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;)V - public synthetic fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/optional/Optional; + public final fun component10 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ldev/kord/common/entity/optional/Optional; public final fun component3 ()Ldev/kord/common/entity/optional/Optional; public final fun component4 ()Ldev/kord/common/entity/optional/Optional; @@ -2918,14 +3027,15 @@ public final class dev/kord/rest/json/request/ApplicationCommandModifyRequest { public final fun component7 ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun component8 ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun component9 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun copy (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;)Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; - public static synthetic fun copy$default (Ldev/kord/rest/json/request/ApplicationCommandModifyRequest;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;ILjava/lang/Object;)Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; + public final fun copy (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; + public static synthetic fun copy$default (Ldev/kord/rest/json/request/ApplicationCommandModifyRequest;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; public fun equals (Ljava/lang/Object;)Z public final fun getDefaultMemberPermissions ()Ldev/kord/common/entity/optional/Optional; public final fun getDefaultPermission ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getDescription ()Ldev/kord/common/entity/optional/Optional; public final fun getDescriptionLocalizations ()Ldev/kord/common/entity/optional/Optional; public final fun getDmPermission ()Ldev/kord/common/entity/optional/OptionalBoolean; + public final fun getHandler ()Ldev/kord/common/entity/optional/Optional; public final fun getName ()Ldev/kord/common/entity/optional/Optional; public final fun getNameLocalizations ()Ldev/kord/common/entity/optional/Optional; public final fun getNsfw ()Ldev/kord/common/entity/optional/OptionalBoolean; @@ -7619,6 +7729,8 @@ public final class dev/kord/rest/service/InteractionService : dev/kord/rest/serv public final fun createGlobalApplicationCommands (Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGlobalChatInputApplicationCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalChatInputApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public final fun createGlobalEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun createGlobalEntryPointCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGlobalMessageCommandApplicationCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalMessageCommandApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGlobalUserCommandApplicationCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -7628,6 +7740,8 @@ public final class dev/kord/rest/service/InteractionService : dev/kord/rest/serv public final fun createGuildApplicationCommands (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGuildChatInputApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildChatInputApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public final fun createGuildEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun createGuildEntryPointCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildMessageCommandApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildMessageCommandApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildUserCommandApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -7664,10 +7778,12 @@ public final class dev/kord/rest/service/InteractionService : dev/kord/rest/serv public static synthetic fun modifyFollowupMessage$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun modifyGlobalApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/ApplicationCommandModifyRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGlobalChatInputApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun modifyGlobalEntryPointApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGlobalMessageApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGlobalUserApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/ApplicationCommandModifyRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildChatInputApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun modifyGuildEntryPointApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildMessageApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildUserApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/rest/json/request/InteractionResponseModifyRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; diff --git a/rest/api/rest.klib.api b/rest/api/rest.klib.api index b9fdda0e32d..3fca901f6af 100644 --- a/rest/api/rest.klib.api +++ b/rest/api/rest.klib.api @@ -290,6 +290,16 @@ abstract interface dev.kord.rest.builder.interaction/ChatInputCreateBuilder : de abstract interface dev.kord.rest.builder.interaction/ChatInputModifyBuilder : dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder, dev.kord.rest.builder.interaction/LocalizedDescriptionModifyBuilder, dev.kord.rest.builder.interaction/RootInputChatBuilder // dev.kord.rest.builder.interaction/ChatInputModifyBuilder|null[0] +abstract interface dev.kord.rest.builder.interaction/EntryPointCreateBuilder : dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder, dev.kord.rest.builder.interaction/LocalizedDescriptionCreateBuilder { // dev.kord.rest.builder.interaction/EntryPointCreateBuilder|null[0] + abstract val handler // dev.kord.rest.builder.interaction/EntryPointCreateBuilder.handler|{}handler[0] + abstract fun (): dev.kord.common.entity/EntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointCreateBuilder.handler.|(){}[0] +} + +abstract interface dev.kord.rest.builder.interaction/EntryPointModifyBuilder : dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder, dev.kord.rest.builder.interaction/LocalizedDescriptionModifyBuilder { // dev.kord.rest.builder.interaction/EntryPointModifyBuilder|null[0] + abstract val handler // dev.kord.rest.builder.interaction/EntryPointModifyBuilder.handler|{}handler[0] + abstract fun (): dev.kord.common.entity/EntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointModifyBuilder.handler.|(){}[0] +} + abstract interface dev.kord.rest.builder.interaction/GlobalApplicationCommandCreateBuilder : dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder { // dev.kord.rest.builder.interaction/GlobalApplicationCommandCreateBuilder|null[0] abstract var dmPermission // dev.kord.rest.builder.interaction/GlobalApplicationCommandCreateBuilder.dmPermission|{}dmPermission[0] abstract fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/GlobalApplicationCommandCreateBuilder.dmPermission.|(){}[0] @@ -306,6 +316,10 @@ abstract interface dev.kord.rest.builder.interaction/GlobalChatInputCreateBuilde abstract interface dev.kord.rest.builder.interaction/GlobalChatInputModifyBuilder : dev.kord.rest.builder.interaction/ChatInputModifyBuilder, dev.kord.rest.builder.interaction/GlobalApplicationCommandModifyBuilder // dev.kord.rest.builder.interaction/GlobalChatInputModifyBuilder|null[0] +abstract interface dev.kord.rest.builder.interaction/GlobalEntryPointCreateBuilder : dev.kord.rest.builder.interaction/EntryPointCreateBuilder, dev.kord.rest.builder.interaction/GlobalApplicationCommandCreateBuilder // dev.kord.rest.builder.interaction/GlobalEntryPointCreateBuilder|null[0] + +abstract interface dev.kord.rest.builder.interaction/GlobalEntryPointModifyBuilder : dev.kord.rest.builder.interaction/EntryPointModifyBuilder, dev.kord.rest.builder.interaction/GlobalApplicationCommandModifyBuilder // dev.kord.rest.builder.interaction/GlobalEntryPointModifyBuilder|null[0] + abstract interface dev.kord.rest.builder.interaction/GlobalMessageCommandCreateBuilder : dev.kord.rest.builder.interaction/GlobalApplicationCommandCreateBuilder, dev.kord.rest.builder.interaction/MessageCommandCreateBuilder // dev.kord.rest.builder.interaction/GlobalMessageCommandCreateBuilder|null[0] abstract interface dev.kord.rest.builder.interaction/GlobalMessageCommandModifyBuilder : dev.kord.rest.builder.interaction/GlobalApplicationCommandModifyBuilder, dev.kord.rest.builder.interaction/MessageCommandModifyBuilder // dev.kord.rest.builder.interaction/GlobalMessageCommandModifyBuilder|null[0] @@ -2277,9 +2291,86 @@ final class dev.kord.rest.builder.interaction/ChoiceLocalizationsBuilder : dev.k final fun (kotlin.collections/MutableMap?) // dev.kord.rest.builder.interaction/ChoiceLocalizationsBuilder.nameLocalizations.|(kotlin.collections.MutableMap?){}[0] } +final class dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl : dev.kord.rest.builder.interaction/GlobalEntryPointCreateBuilder { // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl|null[0] + constructor (kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.|(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType){}[0] + + final val handler // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.handler|{}handler[0] + final fun (): dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.handler.|(){}[0] + final val type // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.type|{}type[0] + final fun (): dev.kord.common.entity/ApplicationCommandType // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.type.|(){}[0] + + final var contexts // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.contexts|{}contexts[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.contexts.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.contexts.|(kotlin.collections.MutableList?){}[0] + final var defaultMemberPermissions // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] + final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.defaultMemberPermissions.|(){}[0] + final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] + final var defaultPermission // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.defaultPermission|{}defaultPermission[0] + final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.defaultPermission.|(){}[0] + final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.defaultPermission.|(kotlin.Boolean?){}[0] + final var description // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.description|{}description[0] + final fun (): kotlin/String // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.description.|(){}[0] + final fun (kotlin/String) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.description.|(kotlin.String){}[0] + final var descriptionLocalizations // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.descriptionLocalizations|{}descriptionLocalizations[0] + final fun (): kotlin.collections/MutableMap? // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.descriptionLocalizations.|(){}[0] + final fun (kotlin.collections/MutableMap?) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.descriptionLocalizations.|(kotlin.collections.MutableMap?){}[0] + final var dmPermission // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.dmPermission|{}dmPermission[0] + final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.dmPermission.|(){}[0] + final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var integrationTypes // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.integrationTypes|{}integrationTypes[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.integrationTypes.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.integrationTypes.|(kotlin.collections.MutableList?){}[0] + final var name // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.name|{}name[0] + final fun (): kotlin/String // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.name.|(){}[0] + final fun (kotlin/String) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.name.|(kotlin.String){}[0] + final var nameLocalizations // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.nameLocalizations|{}nameLocalizations[0] + final fun (): kotlin.collections/MutableMap? // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.nameLocalizations.|(){}[0] + final fun (kotlin.collections/MutableMap?) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.nameLocalizations.|(kotlin.collections.MutableMap?){}[0] + final var nsfw // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.nsfw|{}nsfw[0] + final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.nsfw.|(){}[0] + final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.nsfw.|(kotlin.Boolean?){}[0] + + final fun toRequest(): dev.kord.rest.json.request/ApplicationCommandCreateRequest // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.toRequest|toRequest(){}[0] +} + +final class dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl : dev.kord.rest.builder.interaction/EntryPointModifyBuilder, dev.kord.rest.builder.interaction/GlobalEntryPointModifyBuilder { // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl|null[0] + constructor () // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.|(){}[0] + + final val handler // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.handler|{}handler[0] + final fun (): dev.kord.common.entity/EntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.handler.|(){}[0] + + final var defaultMemberPermissions // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] + final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultMemberPermissions.|(){}[0] + final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] + final var defaultPermission // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultPermission|{}defaultPermission[0] + final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultPermission.|(){}[0] + final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultPermission.|(kotlin.Boolean?){}[0] + final var description // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.description|{}description[0] + final fun (): kotlin/String? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.description.|(){}[0] + final fun (kotlin/String?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.description.|(kotlin.String?){}[0] + final var descriptionLocalizations // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.descriptionLocalizations|{}descriptionLocalizations[0] + final fun (): kotlin.collections/MutableMap? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.descriptionLocalizations.|(){}[0] + final fun (kotlin.collections/MutableMap?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.descriptionLocalizations.|(kotlin.collections.MutableMap?){}[0] + final var dmPermission // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.dmPermission|{}dmPermission[0] + final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.dmPermission.|(){}[0] + final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var name // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.name|{}name[0] + final fun (): kotlin/String? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.name.|(){}[0] + final fun (kotlin/String?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.name.|(kotlin.String?){}[0] + final var nameLocalizations // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.nameLocalizations|{}nameLocalizations[0] + final fun (): kotlin.collections/MutableMap? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.nameLocalizations.|(){}[0] + final fun (kotlin.collections/MutableMap?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.nameLocalizations.|(kotlin.collections.MutableMap?){}[0] + final var nsfw // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.nsfw|{}nsfw[0] + final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.nsfw.|(){}[0] + final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.nsfw.|(kotlin.Boolean?){}[0] + + final fun toRequest(): dev.kord.rest.json.request/ApplicationCommandModifyRequest // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.toRequest|toRequest(){}[0] +} + final class dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder : dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder { // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder|null[0] constructor () // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.|(){}[0] + final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final inline fun input(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.input|input(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun message(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.message|message(kotlin.String;kotlin.Function1){}[0] final inline fun user(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.user|user(kotlin.String;kotlin.Function1){}[0] @@ -2294,6 +2385,7 @@ final class dev.kord.rest.builder.interaction/GroupCommandBuilder : dev.kord.res final class dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder : dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder { // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder|null[0] constructor () // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.|(){}[0] + final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final inline fun input(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.input|input(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun message(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.message|message(kotlin.String;kotlin.Function1){}[0] final inline fun user(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.user|user(kotlin.String;kotlin.Function1){}[0] @@ -3089,8 +3181,10 @@ final class dev.kord.rest.builder.webhook/WebhookModifyBuilder : dev.kord.rest.b } final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev.kord.rest.json.request/ApplicationCommandCreateRequest|null[0] - constructor (kotlin/String, dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/ApplicationCommandType, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ...) // dev.kord.rest.json.request/ApplicationCommandCreateRequest.|(kotlin.String;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.ApplicationCommandType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean){}[0] + constructor (kotlin/String, dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/ApplicationCommandType, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.rest.json.request/ApplicationCommandCreateRequest.|(kotlin.String;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.ApplicationCommandType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional){}[0] + final val contexts // dev.kord.rest.json.request/ApplicationCommandCreateRequest.contexts|{}contexts[0] + final fun (): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.contexts.|(){}[0] final val defaultMemberPermissions // dev.kord.rest.json.request/ApplicationCommandCreateRequest.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.defaultMemberPermissions.|(){}[0] final val defaultPermission // dev.kord.rest.json.request/ApplicationCommandCreateRequest.defaultPermission|{}defaultPermission[0] @@ -3101,6 +3195,10 @@ final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev. final fun (): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.descriptionLocalizations.|(){}[0] final val dmPermission // dev.kord.rest.json.request/ApplicationCommandCreateRequest.dmPermission|{}dmPermission[0] final fun (): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.rest.json.request/ApplicationCommandCreateRequest.dmPermission.|(){}[0] + final val handler // dev.kord.rest.json.request/ApplicationCommandCreateRequest.handler|{}handler[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.handler.|(){}[0] + final val integrationTypes // dev.kord.rest.json.request/ApplicationCommandCreateRequest.integrationTypes|{}integrationTypes[0] + final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.integrationTypes.|(){}[0] final val name // dev.kord.rest.json.request/ApplicationCommandCreateRequest.name|{}name[0] final fun (): kotlin/String // dev.kord.rest.json.request/ApplicationCommandCreateRequest.name.|(){}[0] final val nameLocalizations // dev.kord.rest.json.request/ApplicationCommandCreateRequest.nameLocalizations|{}nameLocalizations[0] @@ -3114,6 +3212,9 @@ final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev. final fun component1(): kotlin/String // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component1|component1(){}[0] final fun component10(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component10|component10(){}[0] + final fun component11(): dev.kord.common.entity.optional/Optional> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component11|component11(){}[0] + final fun component12(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component12|component12(){}[0] + final fun component13(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component13|component13(){}[0] final fun component2(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component2|component2(){}[0] final fun component3(): dev.kord.common.entity/ApplicationCommandType // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component3|component3(){}[0] final fun component4(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component4|component4(){}[0] @@ -3122,7 +3223,7 @@ final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev. final fun component7(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component7|component7(){}[0] final fun component8(): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component9|component9(){}[0] - final fun copy(kotlin/String = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/ApplicationCommandType = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ...): dev.kord.rest.json.request/ApplicationCommandCreateRequest // dev.kord.rest.json.request/ApplicationCommandCreateRequest.copy|copy(kotlin.String;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.ApplicationCommandType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean){}[0] + final fun copy(kotlin/String = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/ApplicationCommandType = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.rest.json.request/ApplicationCommandCreateRequest // dev.kord.rest.json.request/ApplicationCommandCreateRequest.copy|copy(kotlin.String;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.ApplicationCommandType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.rest.json.request/ApplicationCommandCreateRequest.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.rest.json.request/ApplicationCommandCreateRequest.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.rest.json.request/ApplicationCommandCreateRequest.toString|toString(){}[0] @@ -3144,7 +3245,7 @@ final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev. } final class dev.kord.rest.json.request/ApplicationCommandModifyRequest { // dev.kord.rest.json.request/ApplicationCommandModifyRequest|null[0] - constructor (dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ...) // dev.kord.rest.json.request/ApplicationCommandModifyRequest.|(dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean){}[0] + constructor (dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.rest.json.request/ApplicationCommandModifyRequest.|(dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional){}[0] final val defaultMemberPermissions // dev.kord.rest.json.request/ApplicationCommandModifyRequest.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.defaultMemberPermissions.|(){}[0] @@ -3156,6 +3257,8 @@ final class dev.kord.rest.json.request/ApplicationCommandModifyRequest { // dev. final fun (): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.descriptionLocalizations.|(){}[0] final val dmPermission // dev.kord.rest.json.request/ApplicationCommandModifyRequest.dmPermission|{}dmPermission[0] final fun (): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.rest.json.request/ApplicationCommandModifyRequest.dmPermission.|(){}[0] + final val handler // dev.kord.rest.json.request/ApplicationCommandModifyRequest.handler|{}handler[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.handler.|(){}[0] final val name // dev.kord.rest.json.request/ApplicationCommandModifyRequest.name|{}name[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.name.|(){}[0] final val nameLocalizations // dev.kord.rest.json.request/ApplicationCommandModifyRequest.nameLocalizations|{}nameLocalizations[0] @@ -3166,6 +3269,7 @@ final class dev.kord.rest.json.request/ApplicationCommandModifyRequest { // dev. final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.options.|(){}[0] final fun component1(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component1|component1(){}[0] + final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component10|component10(){}[0] final fun component2(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component2|component2(){}[0] final fun component3(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component3|component3(){}[0] final fun component4(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component4|component4(){}[0] @@ -3174,7 +3278,7 @@ final class dev.kord.rest.json.request/ApplicationCommandModifyRequest { // dev. final fun component7(): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component7|component7(){}[0] final fun component8(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component9|component9(){}[0] - final fun copy(dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ...): dev.kord.rest.json.request/ApplicationCommandModifyRequest // dev.kord.rest.json.request/ApplicationCommandModifyRequest.copy|copy(dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean){}[0] + final fun copy(dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.rest.json.request/ApplicationCommandModifyRequest // dev.kord.rest.json.request/ApplicationCommandModifyRequest.copy|copy(dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.rest.json.request/ApplicationCommandModifyRequest.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.rest.json.request/ApplicationCommandModifyRequest.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.rest.json.request/ApplicationCommandModifyRequest.toString|toString(){}[0] @@ -6927,10 +7031,12 @@ final class dev.kord.rest.service/InteractionService : dev.kord.rest.service/Res final suspend inline fun createFollowupMessage(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Boolean = ..., kotlin/Function1): dev.kord.common.entity/DiscordMessage // dev.kord.rest.service/InteractionService.createFollowupMessage|createFollowupMessage(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Boolean;kotlin.Function1){}[0] final suspend inline fun createGlobalApplicationCommands(dev.kord.common.entity/Snowflake, kotlin/Function1): kotlin.collections/List // dev.kord.rest.service/InteractionService.createGlobalApplicationCommands|createGlobalApplicationCommands(dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun createGlobalChatInputApplicationCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalChatInputApplicationCommand|createGlobalChatInputApplicationCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Function1){}[0] + final suspend inline fun createGlobalEntryPointCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalEntryPointCommand|createGlobalEntryPointCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGlobalMessageCommandApplicationCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalMessageCommandApplicationCommand|createGlobalMessageCommandApplicationCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGlobalUserCommandApplicationCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalUserCommandApplicationCommand|createGlobalUserCommandApplicationCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGuildApplicationCommands(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): kotlin.collections/List // dev.kord.rest.service/InteractionService.createGuildApplicationCommands|createGuildApplicationCommands(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun createGuildChatInputApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildChatInputApplicationCommand|createGuildChatInputApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Function1){}[0] + final suspend inline fun createGuildEntryPointCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildEntryPointCommand|createGuildEntryPointCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGuildMessageCommandApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildMessageCommandApplicationCommand|createGuildMessageCommandApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGuildUserCommandApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildUserCommandApplicationCommand|createGuildUserCommandApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun createIntAutoCompleteInteractionResponse(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1) // dev.kord.rest.service/InteractionService.createIntAutoCompleteInteractionResponse|createIntAutoCompleteInteractionResponse(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] @@ -6940,9 +7046,11 @@ final class dev.kord.rest.service/InteractionService : dev.kord.rest.service/Res final suspend inline fun createStringAutoCompleteInteractionResponse(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1) // dev.kord.rest.service/InteractionService.createStringAutoCompleteInteractionResponse|createStringAutoCompleteInteractionResponse(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun modifyFollowupMessage(dev.kord.common.entity/Snowflake, kotlin/String, dev.kord.common.entity/Snowflake, kotlin/Function1 = ...): dev.kord.common.entity/DiscordMessage // dev.kord.rest.service/InteractionService.modifyFollowupMessage|modifyFollowupMessage(dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGlobalChatInputApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalChatInputApplicationCommand|modifyGlobalChatInputApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] + final suspend inline fun modifyGlobalEntryPointApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalEntryPointApplicationCommand|modifyGlobalEntryPointApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGlobalMessageApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalMessageApplicationCommand|modifyGlobalMessageApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGlobalUserApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalUserApplicationCommand|modifyGlobalUserApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGuildChatInputApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildChatInputApplicationCommand|modifyGuildChatInputApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] + final suspend inline fun modifyGuildEntryPointApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildEntryPointApplicationCommand|modifyGuildEntryPointApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGuildMessageApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildMessageApplicationCommand|modifyGuildMessageApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGuildUserApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildUserApplicationCommand|modifyGuildUserApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyInteractionResponse(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1): dev.kord.common.entity/DiscordMessage // dev.kord.rest.service/InteractionService.modifyInteractionResponse|modifyInteractionResponse(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] @@ -8125,6 +8233,7 @@ final inline fun (dev.kord.rest.builder.interaction/BaseInputChatBuilder).dev.ko final inline fun (dev.kord.rest.builder.interaction/BaseInputChatBuilder).dev.kord.rest.builder.interaction/role(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/role|role@dev.kord.rest.builder.interaction.BaseInputChatBuilder(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/BaseInputChatBuilder).dev.kord.rest.builder.interaction/string(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/string|string@dev.kord.rest.builder.interaction.BaseInputChatBuilder(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/BaseInputChatBuilder).dev.kord.rest.builder.interaction/user(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/user|user@dev.kord.rest.builder.interaction.BaseInputChatBuilder(kotlin.String;kotlin.String;kotlin.Function1){}[0] +final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1) // dev.kord.rest.builder.interaction/entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/input(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/input|input@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/message(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/message|message@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/user(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/user|user@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.Function1){}[0] From fcf88c282a26fa9d6ebbf99738c1474af69cfd05 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Thu, 24 Oct 2024 21:01:28 +0200 Subject: [PATCH 13/22] Fix registration of commands --- common/src/commonMain/kotlin/entity/optional/Optional.kt | 5 +++++ .../kotlin/builder/interaction/EntryPointBuilders.kt | 5 +++-- .../kotlin/builder/interaction/InputChatBuilders.kt | 5 +++-- .../kotlin/builder/interaction/MessageCommandBuilders.kt | 5 +++-- .../kotlin/builder/interaction/UserCommandBuilders.kt | 5 +++-- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/common/src/commonMain/kotlin/entity/optional/Optional.kt b/common/src/commonMain/kotlin/entity/optional/Optional.kt index 561a6bd85e7..1e6fb7a0730 100644 --- a/common/src/commonMain/kotlin/entity/optional/Optional.kt +++ b/common/src/commonMain/kotlin/entity/optional/Optional.kt @@ -131,6 +131,11 @@ public sealed class Optional { if (value.isEmpty()) Missing() else Value(value) + public fun > Optional.missingOnEmpty(): Optional = when(this) { + is Value -> if (value.isEmpty()) Missing() else this + else -> this + } + /** * Returns a [Missing] optional of type [T]. */ diff --git a/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt index 08904a2a86a..93fd213f9af 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt @@ -8,6 +8,7 @@ import dev.kord.common.entity.EntryPointCommandHandlerType import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional +import dev.kord.common.entity.optional.Optional.Companion.missingOnEmpty import dev.kord.common.entity.optional.delegate.delegate import dev.kord.common.entity.optional.mapList import dev.kord.rest.json.request.ApplicationCommandCreateRequest @@ -67,8 +68,8 @@ internal class EntryPointCreateBuilderImpl( state.dmPermission, @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, - integrationTypes = state.integrationTypes, - contexts = state.contexts, + integrationTypes = state.integrationTypes.missingOnEmpty(), + contexts = state.contexts.missingOnEmpty(), handler = Optional.Value(handler) ) } diff --git a/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt index 06f9d045ddc..6d9fd61b02a 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt @@ -7,6 +7,7 @@ import dev.kord.common.entity.ApplicationIntegrationType import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional +import dev.kord.common.entity.optional.Optional.Companion.missingOnEmpty import dev.kord.common.entity.optional.delegate.delegate import dev.kord.common.entity.optional.mapList import dev.kord.rest.json.request.ApplicationCommandCreateRequest @@ -172,8 +173,8 @@ internal class ChatInputCreateBuilderImpl( state.dmPermission, @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, - integrationTypes = state.integrationTypes, - contexts = state.contexts, + integrationTypes = state.integrationTypes.missingOnEmpty(), + contexts = state.contexts.missingOnEmpty(), ) } diff --git a/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt index 21c5efa80c9..837bd8e6fa9 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt @@ -6,6 +6,7 @@ import dev.kord.common.entity.ApplicationCommandType import dev.kord.common.entity.ApplicationIntegrationType import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions +import dev.kord.common.entity.optional.Optional.Companion.missingOnEmpty import dev.kord.common.entity.optional.delegate.delegate import dev.kord.rest.json.request.ApplicationCommandCreateRequest import dev.kord.rest.json.request.ApplicationCommandModifyRequest @@ -84,8 +85,8 @@ internal class MessageCommandCreateBuilderImpl(override var name: String) : Glob defaultMemberPermissions = state.defaultMemberPermissions, defaultPermission = @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, - integrationTypes = state.integrationTypes, - contexts = state.contexts, + integrationTypes = state.integrationTypes.missingOnEmpty(), + contexts = state.contexts.missingOnEmpty(), ) } } diff --git a/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt index 6b8534b50fa..86cf4c6f1e5 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt @@ -6,6 +6,7 @@ import dev.kord.common.entity.ApplicationCommandType import dev.kord.common.entity.ApplicationIntegrationType import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions +import dev.kord.common.entity.optional.Optional.Companion.missingOnEmpty import dev.kord.common.entity.optional.delegate.delegate import dev.kord.rest.json.request.ApplicationCommandCreateRequest import dev.kord.rest.json.request.ApplicationCommandModifyRequest @@ -79,8 +80,8 @@ internal class UserCommandCreateBuilderImpl(override var name: String) : GlobalU dmPermission = state.dmPermission, defaultPermission = @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, - integrationTypes = state.integrationTypes, - contexts = state.contexts, + integrationTypes = state.integrationTypes.missingOnEmpty(), + contexts = state.contexts.missingOnEmpty(), ) } } From 0436913a2de850f5eee9bc00b5f3854842294aaa Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Fri, 25 Oct 2024 21:17:08 +0200 Subject: [PATCH 14/22] Api dump --- common/api/common.api | 1 + common/api/common.klib.api | 1 + 2 files changed, 2 insertions(+) diff --git a/common/api/common.api b/common/api/common.api index 62f63434f2b..fa8ca6927c7 100644 --- a/common/api/common.api +++ b/common/api/common.api @@ -9339,6 +9339,7 @@ public final class dev/kord/common/entity/optional/Optional$Companion { public final fun invoke ()Ldev/kord/common/entity/optional/Optional$Missing; public final fun invoke (Ljava/lang/Object;)Ldev/kord/common/entity/optional/Optional$Value; public final fun invokeNullable (Ljava/lang/Object;)Ldev/kord/common/entity/optional/Optional; + public final fun missingOnEmpty (Ldev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/optional/Optional; public final fun missingOnEmpty (Ljava/util/Collection;)Ldev/kord/common/entity/optional/Optional; public final fun serializer (Lkotlinx/serialization/KSerializer;)Lkotlinx/serialization/KSerializer; } diff --git a/common/api/common.klib.api b/common/api/common.klib.api index dd528dba5a7..5bfc7f14969 100644 --- a/common/api/common.klib.api +++ b/common/api/common.klib.api @@ -6839,6 +6839,7 @@ sealed class <#A: out kotlin/Any?> dev.kord.common.entity.optional/Optional { // final fun <#A2: kotlin/Any> invoke(#A2): dev.kord.common.entity.optional/Optional.Value<#A2> // dev.kord.common.entity.optional/Optional.Companion.invoke|invoke(0:0){0§}[0] final fun <#A2: kotlin/Any> invoke(#A2?): dev.kord.common.entity.optional/Optional<#A2?> // dev.kord.common.entity.optional/Optional.Companion.invoke|invoke(0:0?){0§}[0] final fun <#A2: kotlin/Any> invoke(): dev.kord.common.entity.optional/Optional.Missing<#A2> // dev.kord.common.entity.optional/Optional.Companion.invoke|invoke(){0§}[0] + final fun <#A2: kotlin/Any?, #B2: kotlin.collections/Collection<#A2>> (dev.kord.common.entity.optional/Optional<#B2>).missingOnEmpty(): dev.kord.common.entity.optional/Optional<#B2> // dev.kord.common.entity.optional/Optional.Companion.missingOnEmpty|missingOnEmpty@dev.kord.common.entity.optional.Optional<0:1>(){0§;1§>}[0] final fun <#A2: kotlin/Any?, #B2: kotlin.collections/Collection<#A2>> missingOnEmpty(#B2): dev.kord.common.entity.optional/Optional<#B2> // dev.kord.common.entity.optional/Optional.Companion.missingOnEmpty|missingOnEmpty(0:1){0§;1§>}[0] final fun <#A2: kotlin/Any?> serializer(kotlinx.serialization/KSerializer<#A2>): kotlinx.serialization/KSerializer> // dev.kord.common.entity.optional/Optional.Companion.serializer|serializer(kotlinx.serialization.KSerializer<0:0>){0§}[0] final fun serializer(kotlin/Array>...): kotlinx.serialization/KSerializer<*> // dev.kord.common.entity.optional/Optional.Companion.serializer|serializer(kotlin.Array>...){}[0] From 718206cbf97e008e0b42fc5766005ae279830f99 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Fri, 25 Oct 2024 22:09:06 +0200 Subject: [PATCH 15/22] Move openActivity to the correct interface --- .../behavior/interaction/InteractionBehavior.kt | 13 +++++++++++++ .../response/InteractionResponseBehavior.kt | 11 ----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt index ca8bd0b6cb8..5ee58bdc195 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt @@ -1,5 +1,6 @@ package dev.kord.core.behavior.interaction +import dev.kord.common.entity.InteractionResponseType import dev.kord.common.entity.Snowflake import dev.kord.core.behavior.channel.MessageChannelBehavior import dev.kord.core.entity.KordEntity @@ -9,6 +10,7 @@ import dev.kord.core.entity.interaction.Interaction import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.core.supplier.getChannelOf import dev.kord.core.supplier.getChannelOfOrNull +import dev.kord.rest.json.request.InteractionResponseCreateRequest /** The behavior of an [Interaction]. */ public interface InteractionBehavior : KordEntity, Strategizable { @@ -25,6 +27,17 @@ public interface InteractionBehavior : KordEntity, Strategizable { /** The behavior of the channel the interaction was sent from. */ public val channel: MessageChannelBehavior get() = MessageChannelBehavior(channelId, kord) + /** + * Opens the [Activity](https://discord.com/developers/docs/activities/overview) of this application. + * **Note:** This requires activities to be enabled for this application + */ + public suspend fun openActivity() { + kord.rest.interaction.createInteractionResponse( + applicationId, token, + InteractionResponseCreateRequest(InteractionResponseType.LaunchActivity) + ) + } + public suspend fun getChannelOrNull(): MessageChannel? = supplier.getChannelOfOrNull(channelId) public suspend fun getChannel(): MessageChannel = supplier.getChannelOf(channelId) diff --git a/core/src/commonMain/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt index a5c43db3a47..bba5dc06055 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt @@ -46,16 +46,5 @@ public sealed interface InteractionResponseBehavior : KordObject, Strategizable public suspend fun getFollowupMessage(messageId: Snowflake): FollowupMessage = supplier.getFollowupMessage(applicationId, token, messageId) - /** - * Opens the [Activity](https://discord.com/developers/docs/activities/overview) of this application. - * **Note:** This requires activities to be enabled for this application - */ - public suspend fun openActivity() { - kord.rest.interaction.createInteractionResponse( - applicationId, token, - InteractionResponseCreateRequest(InteractionResponseType.LaunchActivity) - ) - } - override fun withStrategy(strategy: EntitySupplyStrategy<*>): InteractionResponseBehavior } From 35862e8508c3d63ae881fac435c9412788221a3c Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Fri, 25 Oct 2024 22:17:28 +0200 Subject: [PATCH 16/22] Api dump --- core/api/core.api | 55 ++++++++++++++++++++++++++++++++---------- core/api/core.klib.api | 2 +- 2 files changed, 43 insertions(+), 14 deletions(-) diff --git a/core/api/core.api b/core/api/core.api index cc36f3c5d48..da74fd6a8b3 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -1792,6 +1792,7 @@ public final class dev/kord/core/behavior/interaction/ActionInteractionBehavior$ public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getOriginalInteractionResponse (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getOriginalInteractionResponseOrNull (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; } @@ -1817,6 +1818,7 @@ public final class dev/kord/core/behavior/interaction/ApplicationCommandInteract public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getOriginalInteractionResponse (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getOriginalInteractionResponseOrNull (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; } @@ -1829,6 +1831,7 @@ public final class dev/kord/core/behavior/interaction/AutoCompleteInteractionBeh public static fun getChannel (Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/AutoCompleteInteractionBehaviorKt { @@ -1857,6 +1860,7 @@ public final class dev/kord/core/behavior/interaction/ComponentInteractionBehavi public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getOriginalInteractionResponse (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getOriginalInteractionResponseOrNull (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; } @@ -1876,6 +1880,7 @@ public final class dev/kord/core/behavior/interaction/DataInteractionBehavior$De public static fun getChannel (Ldev/kord/core/behavior/interaction/DataInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/behavior/interaction/DataInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/DataInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/DataInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/GlobalInteractionBehavior : dev/kord/core/behavior/interaction/InteractionBehavior { @@ -1887,6 +1892,7 @@ public final class dev/kord/core/behavior/interaction/GlobalInteractionBehavior$ public static fun getChannel (Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/GuildInteractionBehavior : dev/kord/core/behavior/interaction/InteractionBehavior { @@ -1908,6 +1914,7 @@ public final class dev/kord/core/behavior/interaction/GuildInteractionBehavior$D public static fun getGuild (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuild (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getGuildOrNull (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/GuildInteractionBehavior; } @@ -1923,6 +1930,7 @@ public abstract interface class dev/kord/core/behavior/interaction/InteractionBe public abstract fun getChannelId ()Ldev/kord/common/entity/Snowflake; public abstract fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getToken ()Ljava/lang/String; + public abstract fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/InteractionBehavior; } @@ -1931,6 +1939,7 @@ public final class dev/kord/core/behavior/interaction/InteractionBehavior$Defaul public static fun getChannel (Ldev/kord/core/behavior/interaction/InteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/behavior/interaction/InteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/InteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/InteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/ModalParentInteractionBehavior : dev/kord/core/behavior/interaction/ActionInteractionBehavior { @@ -1948,6 +1957,7 @@ public final class dev/kord/core/behavior/interaction/ModalParentInteractionBeha public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getOriginalInteractionResponse (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getOriginalInteractionResponseOrNull (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun openActivity (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/ModalParentInteractionBehaviorKt { @@ -2027,7 +2037,6 @@ public final class dev/kord/core/behavior/interaction/response/DeferredEphemeral public static fun delete (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/DeferredEphemeralMessageInteractionResponseBehavior; } @@ -2040,7 +2049,6 @@ public final class dev/kord/core/behavior/interaction/response/DeferredMessageIn public static fun delete (Ldev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/response/DeferredMessageInteractionResponseBehaviorKt { @@ -2055,7 +2063,6 @@ public final class dev/kord/core/behavior/interaction/response/DeferredPublicMes public static fun delete (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/DeferredPublicMessageInteractionResponseBehavior; } @@ -2079,7 +2086,6 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Ephe public final class dev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior : dev/kord/core/behavior/interaction/response/EphemeralInteractionResponseBehavior, dev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior { @@ -2090,7 +2096,6 @@ public final class dev/kord/core/behavior/interaction/response/EphemeralMessageI public static fun delete (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/EphemeralMessageInteractionResponseBehavior; } @@ -2107,7 +2112,6 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Foll public final class dev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior; } @@ -2123,14 +2127,12 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Inte public abstract fun getFollowupMessage (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getFollowupMessageOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getToken ()Ljava/lang/String; - public abstract fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior; } public final class dev/kord/core/behavior/interaction/response/InteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior : dev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior { @@ -2142,7 +2144,6 @@ public final class dev/kord/core/behavior/interaction/response/MessageInteractio public static fun delete (Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/response/MessageInteractionResponseBehaviorKt { @@ -2156,7 +2157,6 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Popu public final class dev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/PopupInteractionResponseBehavior; } @@ -2172,7 +2172,6 @@ public abstract interface class dev/kord/core/behavior/interaction/response/Publ public final class dev/kord/core/behavior/interaction/response/PublicInteractionResponseBehavior$DefaultImpls { public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/PublicInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/PublicInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/PublicInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/response/PublicMesageInteractionResponseBehaviorKt { @@ -2189,7 +2188,6 @@ public final class dev/kord/core/behavior/interaction/response/PublicMessageInte public static fun delete (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessage (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/PublicMessageInteractionResponseBehavior; } @@ -9469,6 +9467,7 @@ public final class dev/kord/core/entity/interaction/ActionInteraction$DefaultImp public static fun getToken (Ldev/kord/core/entity/interaction/ActionInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/ActionInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/ActionInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/ApplicationCommandInteraction : dev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior, dev/kord/core/entity/interaction/ActionInteraction { @@ -9507,6 +9506,7 @@ public final class dev/kord/core/entity/interaction/ApplicationCommandInteractio public static fun getToken (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/ApplicationCommandInteractionKt { @@ -9550,6 +9550,7 @@ public final class dev/kord/core/entity/interaction/AutoCompleteInteraction$Defa public static fun getToken (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/BooleanOptionValue : dev/kord/core/entity/interaction/OptionValue { @@ -9593,6 +9594,7 @@ public final class dev/kord/core/entity/interaction/ButtonInteraction$DefaultImp public static fun getToken (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/ButtonInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/ButtonInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/ChannelOptionValue : dev/kord/core/entity/interaction/ResolvableOptionValue { @@ -9638,6 +9640,7 @@ public final class dev/kord/core/entity/interaction/ChatInputCommandInteraction$ public static fun getToken (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/ComponentInteraction : dev/kord/core/behavior/interaction/ComponentInteractionBehavior, dev/kord/core/behavior/interaction/ModalParentInteractionBehavior, dev/kord/core/entity/interaction/ActionInteraction { @@ -9675,6 +9678,7 @@ public final class dev/kord/core/entity/interaction/ComponentInteraction$Default public static fun getToken (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/ComponentInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/ComponentInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/ComponentInteractionKt { @@ -9702,6 +9706,7 @@ public final class dev/kord/core/entity/interaction/DataInteraction$DefaultImpls public static fun getToken (Ldev/kord/core/entity/interaction/DataInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/DataInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/DataInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction : dev/kord/core/entity/interaction/ApplicationCommandInteraction, dev/kord/core/entity/interaction/GlobalInteraction { @@ -9736,6 +9741,7 @@ public final class dev/kord/core/entity/interaction/GlobalApplicationCommandInte public static fun getType (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUser (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)Ldev/kord/core/entity/User; public static fun getVersion (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction; } @@ -9766,6 +9772,7 @@ public final class dev/kord/core/entity/interaction/GlobalAutoCompleteInteractio public fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/DataInteractionBehavior; @@ -9816,6 +9823,7 @@ public final class dev/kord/core/entity/interaction/GlobalButtonInteraction : de public fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; @@ -9868,6 +9876,7 @@ public final class dev/kord/core/entity/interaction/GlobalChatInputCommandIntera public fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; @@ -9916,6 +9925,7 @@ public final class dev/kord/core/entity/interaction/GlobalComponentInteraction$D public static fun getType (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUser (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)Ldev/kord/core/entity/User; public static fun getVersion (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/GlobalInteraction : dev/kord/core/behavior/interaction/GlobalInteractionBehavior, dev/kord/core/entity/interaction/Interaction { @@ -9940,6 +9950,7 @@ public final class dev/kord/core/entity/interaction/GlobalInteraction$DefaultImp public static fun getType (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUser (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/core/entity/User; public static fun getVersion (Ldev/kord/core/entity/interaction/GlobalInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/GlobalInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/GlobalMessageCommandInteraction : dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction, dev/kord/core/entity/interaction/MessageCommandInteraction { @@ -9982,6 +9993,7 @@ public final class dev/kord/core/entity/interaction/GlobalMessageCommandInteract public fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; @@ -10035,6 +10047,7 @@ public final class dev/kord/core/entity/interaction/GlobalModalSubmitInteraction public fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; @@ -10087,6 +10100,7 @@ public final class dev/kord/core/entity/interaction/GlobalSelectMenuInteraction public fun getValues ()Ljava/util/List; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; @@ -10143,6 +10157,7 @@ public final class dev/kord/core/entity/interaction/GlobalUserCommandInteraction public fun getUsers ()Ljava/util/Map; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; @@ -10219,6 +10234,7 @@ public final class dev/kord/core/entity/interaction/GuildApplicationCommandInter public static fun getType (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUser (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/core/entity/Member; public static fun getVersion (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction; } @@ -10257,6 +10273,7 @@ public final class dev/kord/core/entity/interaction/GuildAutoCompleteInteraction public synthetic fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/DataInteractionBehavior; @@ -10315,6 +10332,7 @@ public final class dev/kord/core/entity/interaction/GuildButtonInteraction : dev public synthetic fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; @@ -10375,6 +10393,7 @@ public final class dev/kord/core/entity/interaction/GuildChatInputCommandInterac public synthetic fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; @@ -10429,6 +10448,7 @@ public final class dev/kord/core/entity/interaction/GuildComponentInteraction$De public static fun getType (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUser (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/core/entity/Member; public static fun getVersion (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/GuildInteraction : dev/kord/core/behavior/interaction/GuildInteractionBehavior, dev/kord/core/entity/interaction/Interaction { @@ -10462,6 +10482,7 @@ public final class dev/kord/core/entity/interaction/GuildInteraction$DefaultImpl public static fun getType (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUser (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/core/entity/Member; public static fun getVersion (Ldev/kord/core/entity/interaction/GuildInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/GuildInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/GuildMessageCommandInteraction : dev/kord/core/entity/interaction/GuildApplicationCommandInteraction, dev/kord/core/entity/interaction/MessageCommandInteraction { @@ -10512,6 +10533,7 @@ public final class dev/kord/core/entity/interaction/GuildMessageCommandInteracti public synthetic fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; @@ -10573,6 +10595,7 @@ public final class dev/kord/core/entity/interaction/GuildModalSubmitInteraction public synthetic fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; @@ -10633,6 +10656,7 @@ public final class dev/kord/core/entity/interaction/GuildSelectMenuInteraction : public fun getValues ()Ljava/util/List; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; @@ -10697,6 +10721,7 @@ public final class dev/kord/core/entity/interaction/GuildUserCommandInteraction public fun getUsers ()Ljava/util/Map; public fun getVersion ()I public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; @@ -10760,6 +10785,7 @@ public final class dev/kord/core/entity/interaction/Interaction$DefaultImpls { public static fun getToken (Ldev/kord/core/entity/interaction/Interaction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/Interaction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/Interaction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/InteractionCommand : dev/kord/core/KordObject { @@ -10858,6 +10884,7 @@ public final class dev/kord/core/entity/interaction/MessageCommandInteraction$De public static fun getToken (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/ModalSubmitInteraction : dev/kord/core/behavior/interaction/ComponentInteractionBehavior, dev/kord/core/entity/interaction/ActionInteraction { @@ -10896,6 +10923,7 @@ public final class dev/kord/core/entity/interaction/ModalSubmitInteraction$Defau public static fun getToken (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/ModalSubmitInteractionKt { @@ -11005,6 +11033,7 @@ public final class dev/kord/core/entity/interaction/SelectMenuInteraction$Defaul public static fun getType (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getValues (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)Ljava/util/List; public static fun getVersion (Ldev/kord/core/entity/interaction/SelectMenuInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/StringOptionValue : dev/kord/core/entity/interaction/OptionValue { @@ -11077,6 +11106,7 @@ public final class dev/kord/core/entity/interaction/UserCommandInteraction$Defau public static fun getType (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUsers (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ljava/util/Map; public static fun getVersion (Ldev/kord/core/entity/interaction/UserCommandInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public class dev/kord/core/entity/interaction/UserOptionValue : dev/kord/core/entity/interaction/ResolvableOptionValue { @@ -11158,7 +11188,6 @@ public abstract class dev/kord/core/entity/interaction/response/MessageInteracti public fun getFollowupMessage (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getFollowupMessageOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getMessage ()Ldev/kord/core/entity/Message; - public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/response/MessageInteractionResponse; } diff --git a/core/api/core.klib.api b/core/api/core.klib.api index 8811a99d21a..7cbe38a9016 100644 --- a/core/api/core.klib.api +++ b/core/api/core.klib.api @@ -409,6 +409,7 @@ abstract interface dev.kord.core.behavior.interaction/InteractionBehavior : dev. abstract fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.behavior.interaction/InteractionBehavior // dev.kord.core.behavior.interaction/InteractionBehavior.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] open suspend fun getChannel(): dev.kord.core.entity.channel/MessageChannel // dev.kord.core.behavior.interaction/InteractionBehavior.getChannel|getChannel(){}[0] open suspend fun getChannelOrNull(): dev.kord.core.entity.channel/MessageChannel? // dev.kord.core.behavior.interaction/InteractionBehavior.getChannelOrNull|getChannelOrNull(){}[0] + open suspend fun openActivity() // dev.kord.core.behavior.interaction/InteractionBehavior.openActivity|openActivity(){}[0] } abstract interface dev.kord.core.behavior.interaction/ModalParentInteractionBehavior : dev.kord.core.behavior.interaction/ActionInteractionBehavior { // dev.kord.core.behavior.interaction/ModalParentInteractionBehavior|null[0] @@ -1096,7 +1097,6 @@ sealed interface dev.kord.core.behavior.interaction.response/InteractionResponse abstract fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.behavior.interaction.response/InteractionResponseBehavior // dev.kord.core.behavior.interaction.response/InteractionResponseBehavior.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] open suspend fun getFollowupMessage(dev.kord.common.entity/Snowflake): dev.kord.core.entity.interaction.followup/FollowupMessage // dev.kord.core.behavior.interaction.response/InteractionResponseBehavior.getFollowupMessage|getFollowupMessage(dev.kord.common.entity.Snowflake){}[0] open suspend fun getFollowupMessageOrNull(dev.kord.common.entity/Snowflake): dev.kord.core.entity.interaction.followup/FollowupMessage? // dev.kord.core.behavior.interaction.response/InteractionResponseBehavior.getFollowupMessageOrNull|getFollowupMessageOrNull(dev.kord.common.entity.Snowflake){}[0] - open suspend fun openActivity() // dev.kord.core.behavior.interaction.response/InteractionResponseBehavior.openActivity|openActivity(){}[0] } sealed interface dev.kord.core.behavior.interaction.response/PublicInteractionResponseBehavior : dev.kord.core.behavior.interaction.response/InteractionResponseBehavior { // dev.kord.core.behavior.interaction.response/PublicInteractionResponseBehavior|null[0] From 3ac3ec7bf7ebae019fdf51f268710b292373931b Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 27 Oct 2024 18:04:39 +0100 Subject: [PATCH 17/22] Add contexts and integrationTypes to modify builders --- .../interaction/ApplicationCommandBuilders.kt | 25 ++++++++++++++++--- .../builder/interaction/EntryPointBuilders.kt | 4 +++ .../builder/interaction/InputChatBuilders.kt | 5 ++++ .../interaction/MessageCommandBuilders.kt | 7 ++++-- .../interaction/UserCommandBuilders.kt | 5 ++++ .../json/request/InteractionsRequests.kt | 3 +++ 6 files changed, 44 insertions(+), 5 deletions(-) diff --git a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandBuilders.kt index 15f83e14c88..653eb4a8302 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandBuilders.kt @@ -17,7 +17,11 @@ public interface ApplicationCommandCreateBuilder : LocalizedNameCreateBuilder, @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") public var defaultPermission: Boolean? + /** Indicates whether the command is age-restricted. Defaults to `false`. */ + public var nsfw: Boolean? + /** [IntegrationTypes][ApplicationIntegrationType] the command is available in. */ public var integrationTypes: MutableList? + /** [InteractionContextTypes][InteractionContextType] the command is available in. */ public var contexts: MutableList? public val type: ApplicationCommandType @@ -43,9 +47,6 @@ public interface ApplicationCommandCreateBuilder : LocalizedNameCreateBuilder, public fun requireContext(vararg types: InteractionContextType) { contexts?.addAll(types) ?: run { contexts = types.toMutableList() } } - - /** Indicates whether the command is age-restricted. Defaults to `false`. */ - public var nsfw: Boolean? } @KordDsl @@ -71,4 +72,22 @@ public interface ApplicationCommandModifyBuilder : LocalizedNameModifyBuilder, /** Indicates whether the command is age-restricted. */ public var nsfw: Boolean? + /** [IntegrationTypes][ApplicationIntegrationType] the command is available in. */ + public var integrationTypes: MutableList? + /** [InteractionContextTypes][InteractionContextType] the command is available in. */ + public var contexts: MutableList? + + /** + * Requires this command to be executed in a specific [installation context][ApplicationIntegrationType]. + */ + public fun requireIntegrationTypes(vararg types: ApplicationIntegrationType) { + integrationTypes?.addAll(types) ?: run { integrationTypes = types.toMutableList() } + } + + /** + * Requires this command to be executed in a specific [interaction context][InteractionContextType]. + */ + public fun requireContext(vararg types: InteractionContextType) { + contexts?.addAll(types) ?: run { contexts = types.toMutableList() } + } } diff --git a/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt index 93fd213f9af..79137be6455 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt @@ -94,6 +94,8 @@ internal class EntryPointModifyBuilderImpl : GlobalEntryPointModifyBuilder, Entr override var nsfw: Boolean? by state::nsfw.delegate() + override var integrationTypes: MutableList? by state::integrationTypes.delegate() + override var contexts: MutableList? by state::contexts.delegate() override val handler: EntryPointCommandHandlerType? by state::handler.delegate() override fun toRequest(): ApplicationCommandModifyRequest = ApplicationCommandModifyRequest( @@ -104,6 +106,8 @@ internal class EntryPointModifyBuilderImpl : GlobalEntryPointModifyBuilder, Entr defaultMemberPermissions = state.defaultMemberPermissions, dmPermission = state.dmPermission, nsfw = state.nsfw, + integrationTypes = state.integrationTypes.missingOnEmpty(), + contexts = state.contexts.missingOnEmpty(), handler = state.handler ) } diff --git a/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt index 6d9fd61b02a..d7d7399073a 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/InputChatBuilders.kt @@ -209,6 +209,9 @@ internal class ChatInputModifyBuilderImpl : GlobalChatInputModifyBuilder { override var nsfw: Boolean? by state::nsfw.delegate() + override var integrationTypes: MutableList? by state::integrationTypes.delegate() + override var contexts: MutableList? by state::contexts.delegate() + override fun toRequest(): ApplicationCommandModifyRequest { return ApplicationCommandModifyRequest( state.name, @@ -220,6 +223,8 @@ internal class ChatInputModifyBuilderImpl : GlobalChatInputModifyBuilder { state.dmPermission, @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, + integrationTypes = state.integrationTypes, + contexts = state.contexts, ) } diff --git a/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt index 837bd8e6fa9..01204a62b23 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/MessageCommandBuilders.kt @@ -35,6 +35,9 @@ internal class MessageCommandModifyBuilderImpl : GlobalMessageCommandModifyBuild override var nsfw: Boolean? by state::nsfw.delegate() + override var integrationTypes: MutableList? by state::integrationTypes.delegate() + override var contexts: MutableList? by state::contexts.delegate() + override fun toRequest(): ApplicationCommandModifyRequest { return ApplicationCommandModifyRequest( name = state.name, @@ -43,10 +46,10 @@ internal class MessageCommandModifyBuilderImpl : GlobalMessageCommandModifyBuild defaultMemberPermissions = state.defaultMemberPermissions, defaultPermission = @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, + integrationTypes = state.integrationTypes.missingOnEmpty(), + contexts = state.contexts.missingOnEmpty(), ) - } - } @KordDsl diff --git a/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt index 86cf4c6f1e5..c77e30dc0da 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/UserCommandBuilders.kt @@ -34,6 +34,9 @@ internal class UserCommandModifyBuilderImpl : GlobalUserCommandModifyBuilder { override var nsfw: Boolean? by state::nsfw.delegate() + override var integrationTypes: MutableList? by state::integrationTypes.delegate() + override var contexts: MutableList? by state::contexts.delegate() + override fun toRequest(): ApplicationCommandModifyRequest { return ApplicationCommandModifyRequest( name = state.name, @@ -42,6 +45,8 @@ internal class UserCommandModifyBuilderImpl : GlobalUserCommandModifyBuilder { defaultMemberPermissions = state.defaultMemberPermissions, defaultPermission = @Suppress("DEPRECATION") state.defaultPermission, nsfw = state.nsfw, + integrationTypes = state.integrationTypes.missingOnEmpty(), + contexts = state.contexts.missingOnEmpty(), ) } } diff --git a/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt b/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt index c1d293408b5..3ce825111da 100644 --- a/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt +++ b/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt @@ -49,6 +49,9 @@ public data class ApplicationCommandModifyRequest( @SerialName("default_permission") val defaultPermission: OptionalBoolean = OptionalBoolean.Missing, val nsfw: OptionalBoolean = OptionalBoolean.Missing, + @SerialName("integration_types") + val integrationTypes: Optional> = Optional.Missing(), + val contexts: Optional?> = Optional.Missing(), val handler: Optional = Optional.Missing() ) From 12848e81ccd773d6dea16df96dcc67ac45d43f15 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 27 Oct 2024 18:17:47 +0100 Subject: [PATCH 18/22] Fix openActivity causing 404 error --- .../kotlin/behavior/interaction/InteractionBehavior.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt index 5ee58bdc195..b92615b73da 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt @@ -33,7 +33,7 @@ public interface InteractionBehavior : KordEntity, Strategizable { */ public suspend fun openActivity() { kord.rest.interaction.createInteractionResponse( - applicationId, token, + id, token, InteractionResponseCreateRequest(InteractionResponseType.LaunchActivity) ) } From 5c6ed1dccb284bfbf812668ab9de8aff2de3ea03 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 27 Oct 2024 18:46:10 +0100 Subject: [PATCH 19/22] Add ability to receive --- .../interaction/ActionInteractionBehavior.kt | 14 +++++++ .../interaction/InteractionBehavior.kt | 13 ------- .../ApplicationCommandInteraction.kt | 4 +- .../ChatInputCommandInteraction.kt | 1 + .../kotlin/entity/interaction/Interaction.kt | 1 - .../PrimaryEntryPointInteraction.kt | 38 +++++++++++++++++++ .../ApplicationCommandInteractionCreate.kt | 22 +++++++++++ .../handler/InteractionEventHandler.kt | 2 + 8 files changed, 79 insertions(+), 16 deletions(-) create mode 100644 core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointInteraction.kt diff --git a/core/src/commonMain/kotlin/behavior/interaction/ActionInteractionBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/ActionInteractionBehavior.kt index 8f5e29436db..29b475ff0db 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/ActionInteractionBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/ActionInteractionBehavior.kt @@ -1,6 +1,7 @@ package dev.kord.core.behavior.interaction import dev.kord.common.annotation.KordUnsafe +import dev.kord.common.entity.InteractionResponseType import dev.kord.common.entity.Snowflake import dev.kord.core.Kord import dev.kord.core.behavior.interaction.response.* @@ -12,6 +13,7 @@ import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.core.supplier.EntitySupplyStrategy.Companion.rest import dev.kord.rest.builder.message.create.InteractionResponseCreateBuilder +import dev.kord.rest.json.request.InteractionResponseCreateRequest import dev.kord.rest.request.RestRequestException import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -83,6 +85,18 @@ public interface ActionInteractionBehavior : InteractionBehavior { return DeferredPublicMessageInteractionResponseBehavior(applicationId, token, kord) } + /** + * Opens the [Activity](https://discord.com/developers/docs/activities/overview) of this application. + * + * **Note:** This requires activities to be enabled for this application + */ + public suspend fun openActivity() { + kord.rest.interaction.createInteractionResponse( + id, token, + InteractionResponseCreateRequest(InteractionResponseType.LaunchActivity) + ) + } + /** * Returns the initial interaction response or `null` if it was not found. * diff --git a/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt b/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt index b92615b73da..ca8bd0b6cb8 100644 --- a/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/interaction/InteractionBehavior.kt @@ -1,6 +1,5 @@ package dev.kord.core.behavior.interaction -import dev.kord.common.entity.InteractionResponseType import dev.kord.common.entity.Snowflake import dev.kord.core.behavior.channel.MessageChannelBehavior import dev.kord.core.entity.KordEntity @@ -10,7 +9,6 @@ import dev.kord.core.entity.interaction.Interaction import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.core.supplier.getChannelOf import dev.kord.core.supplier.getChannelOfOrNull -import dev.kord.rest.json.request.InteractionResponseCreateRequest /** The behavior of an [Interaction]. */ public interface InteractionBehavior : KordEntity, Strategizable { @@ -27,17 +25,6 @@ public interface InteractionBehavior : KordEntity, Strategizable { /** The behavior of the channel the interaction was sent from. */ public val channel: MessageChannelBehavior get() = MessageChannelBehavior(channelId, kord) - /** - * Opens the [Activity](https://discord.com/developers/docs/activities/overview) of this application. - * **Note:** This requires activities to be enabled for this application - */ - public suspend fun openActivity() { - kord.rest.interaction.createInteractionResponse( - id, token, - InteractionResponseCreateRequest(InteractionResponseType.LaunchActivity) - ) - } - public suspend fun getChannelOrNull(): MessageChannel? = supplier.getChannelOfOrNull(channelId) public suspend fun getChannel(): MessageChannel = supplier.getChannelOf(channelId) diff --git a/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt b/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt index 801e2cd7024..0725a463310 100644 --- a/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt +++ b/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt @@ -54,9 +54,9 @@ public fun GlobalApplicationCommandInteraction( ApplicationCommandType.ChatInput -> GlobalChatInputCommandInteraction(data, kord, supplier) ApplicationCommandType.User -> GlobalUserCommandInteraction(data, kord, supplier) ApplicationCommandType.Message -> GlobalMessageCommandInteraction(data, kord, supplier) + ApplicationCommandType.PrimaryEntryPoint -> GlobalPrimaryEntryPointInteraction(data, kord, supplier) is ApplicationCommandType.Unknown -> error("Unknown application command type ${type.value}") null -> error("No application command type was provided") - else -> error("Got unexpected command type: ${data.type}") } } @@ -77,8 +77,8 @@ public fun GuildApplicationCommandInteraction( ApplicationCommandType.ChatInput -> GuildChatInputCommandInteraction(data, kord, supplier) ApplicationCommandType.User -> GuildUserCommandInteraction(data, kord, supplier) ApplicationCommandType.Message -> GuildMessageCommandInteraction(data, kord, supplier) + ApplicationCommandType.PrimaryEntryPoint -> GuildPrimaryEntryPointInteraction(data, kord, supplier) is ApplicationCommandType.Unknown -> error("Unknown application command type ${type.value}") null -> error("No application command type was provided") - else -> error("Got unexpected command type: ${data.type}") } } diff --git a/core/src/commonMain/kotlin/entity/interaction/ChatInputCommandInteraction.kt b/core/src/commonMain/kotlin/entity/interaction/ChatInputCommandInteraction.kt index 4377e9a8701..6caa8d562d1 100644 --- a/core/src/commonMain/kotlin/entity/interaction/ChatInputCommandInteraction.kt +++ b/core/src/commonMain/kotlin/entity/interaction/ChatInputCommandInteraction.kt @@ -3,6 +3,7 @@ package dev.kord.core.entity.interaction import dev.kord.core.Kord import dev.kord.core.cache.data.InteractionData import dev.kord.core.entity.Guild +import dev.kord.core.entity.Member import dev.kord.core.entity.application.ChatInputCommandCommand import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy diff --git a/core/src/commonMain/kotlin/entity/interaction/Interaction.kt b/core/src/commonMain/kotlin/entity/interaction/Interaction.kt index 30eebb5f614..4a2599ddd80 100644 --- a/core/src/commonMain/kotlin/entity/interaction/Interaction.kt +++ b/core/src/commonMain/kotlin/entity/interaction/Interaction.kt @@ -102,7 +102,6 @@ public sealed interface Interaction : InteractionBehavior { GlobalApplicationCommandInteraction(data, kord, strategy.supply(kord)) } } - InteractionType.Ping, is InteractionType.Unknown -> error("Unsupported interaction type: $type") } } diff --git a/core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointInteraction.kt b/core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointInteraction.kt new file mode 100644 index 00000000000..912b8b55b90 --- /dev/null +++ b/core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointInteraction.kt @@ -0,0 +1,38 @@ + package dev.kord.core.entity.interaction + +import dev.kord.core.Kord +import dev.kord.core.cache.data.InteractionData +import dev.kord.core.supplier.EntitySupplier +import dev.kord.core.supplier.EntitySupplyStrategy + +public sealed interface PrimaryEntryPointInteraction : ApplicationCommandInteraction { + override fun withStrategy(strategy: EntitySupplyStrategy<*>): PrimaryEntryPointInteraction +} + +public class GlobalPrimaryEntryPointInteraction( + override val data: InteractionData, + override val kord: Kord, + override val supplier: EntitySupplier +) : PrimaryEntryPointInteraction, GlobalApplicationCommandInteraction { + override fun withStrategy(strategy: EntitySupplyStrategy<*>): GlobalPrimaryEntryPointInteraction = + GlobalPrimaryEntryPointInteraction(data, kord, strategy.supply(kord)) + + override fun equals(other: Any?): Boolean = other is GlobalPrimaryEntryPointInteraction && this.id == other.id + override fun hashCode(): Int = id.hashCode() + override fun toString(): String = + "GlobalPrimaryCommandInteraction(data=$data, kord=$kord, supplier=$supplier)" +} + +public class GuildPrimaryEntryPointInteraction( + override val data: InteractionData, + override val kord: Kord, + override val supplier: EntitySupplier +) : PrimaryEntryPointInteraction, GuildApplicationCommandInteraction { + override fun withStrategy(strategy: EntitySupplyStrategy<*>): GuildPrimaryEntryPointInteraction = + GuildPrimaryEntryPointInteraction(data, kord, strategy.supply(kord)) + + override fun equals(other: Any?): Boolean = other is GlobalPrimaryEntryPointInteraction && this.id == other.id + override fun hashCode(): Int = id.hashCode() + override fun toString(): String = + "GuildPrimaryEntryPointInteraction(data=$data, kord=$kord, supplier=$supplier)" +} diff --git a/core/src/commonMain/kotlin/event/interaction/ApplicationCommandInteractionCreate.kt b/core/src/commonMain/kotlin/event/interaction/ApplicationCommandInteractionCreate.kt index 731e6e4f787..dd23c50ed2c 100644 --- a/core/src/commonMain/kotlin/event/interaction/ApplicationCommandInteractionCreate.kt +++ b/core/src/commonMain/kotlin/event/interaction/ApplicationCommandInteractionCreate.kt @@ -1,5 +1,6 @@ package dev.kord.core.event.interaction +import dev.kord.common.annotation.KordPreview import dev.kord.core.Kord import dev.kord.core.entity.interaction.* import dev.kord.core.event.Event @@ -87,3 +88,24 @@ public class GlobalChatInputCommandInteractionCreateEvent( override val shard: Int, override val customContext: Any?, ) : GlobalApplicationCommandInteractionCreateEvent, ChatInputCommandInteractionCreateEvent + +/** An [Event] that fires when a [PrimaryEntryPointInteraction] is created. */ +public sealed interface PrimaryEntryPointCommandInteractionCreateEvent : ApplicationCommandInteractionCreateEvent { + override val interaction: PrimaryEntryPointInteraction +} + +/** An [Event] that fires when a [GuildPrimaryEntryPointInteraction] is created. */ +public class GuildPrimaryEntryPointCommandInteractionCreateEvent( + override val interaction: GuildPrimaryEntryPointInteraction, + override val kord: Kord, + override val shard: Int, + override val customContext: Any? +) : PrimaryEntryPointCommandInteractionCreateEvent, GuildApplicationCommandInteractionCreateEvent + +/** An [Event] that fires when a [GlobalPrimaryEntryPointInteraction] is created. */ +public class GlobalPrimaryEntryPointCommandInteractionCreateEvent( + override val interaction: GlobalPrimaryEntryPointInteraction, + override val kord: Kord, + override val shard: Int, + override val customContext: Any? +) : PrimaryEntryPointCommandInteractionCreateEvent, GlobalApplicationCommandInteractionCreateEvent diff --git a/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt b/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt index 75ec803d523..4c126e2a55a 100644 --- a/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt +++ b/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt @@ -50,6 +50,8 @@ internal class InteractionEventHandler : BaseGatewayEventHandler() { is GuildButtonInteraction -> GuildButtonInteractionCreateEvent(interaction, kord, shard, context?.get()) is GuildSelectMenuInteraction -> GuildSelectMenuInteractionCreateEvent(interaction, kord, shard, context?.get()) is GuildModalSubmitInteraction -> GuildModalSubmitInteractionCreateEvent(interaction, kord, shard, context?.get()) + is GlobalPrimaryEntryPointInteraction -> GlobalPrimaryEntryPointCommandInteractionCreateEvent(interaction, kord, shard, context?.get()) + is GuildPrimaryEntryPointInteraction -> GuildPrimaryEntryPointCommandInteractionCreateEvent(interaction, kord, shard, context?.get()) } return coreEvent } From 5fb4587c14ad28c8f25e3cd704449330a1fb5b6b Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 27 Oct 2024 18:50:39 +0100 Subject: [PATCH 20/22] Unify names --- ...=> PrimaryEntryPointCommandHandlerType.kt} | 42 +++++++++---------- .../commonMain/kotlin/entity/Interactions.kt | 2 +- core/src/commonMain/kotlin/Kord.kt | 23 +++++----- .../behavior/EntryPointCommandBehaviors.kt | 20 ++++----- .../entity/application/ApplicationCommand.kt | 4 +- .../entity/application/EntryPointCommands.kt | 10 ++--- .../ApplicationCommandInteraction.kt | 4 +- ...=> PrimaryEntryPointCommandInteraction.kt} | 24 +++++------ .../ApplicationCommandInteractionCreate.kt | 13 +++--- .../handler/InteractionEventHandler.kt | 4 +- .../ApplicationCommandStateHolder.kt | 4 +- .../builder/interaction/EntryPointBuilders.kt | 10 ++--- .../MultiApplicationCommandBuilder.kt | 8 ++-- .../json/request/InteractionsRequests.kt | 4 +- .../kotlin/service/InteractionService.kt | 12 +++--- 15 files changed, 91 insertions(+), 93 deletions(-) rename common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/{EntryPointCommandHandlerType.kt => PrimaryEntryPointCommandHandlerType.kt} (55%) rename core/src/commonMain/kotlin/entity/interaction/{PrimaryEntryPointInteraction.kt => PrimaryEntryPointCommandInteraction.kt} (58%) diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EntryPointCommandHandlerType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PrimaryEntryPointCommandHandlerType.kt similarity index 55% rename from common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EntryPointCommandHandlerType.kt rename to common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PrimaryEntryPointCommandHandlerType.kt index 3c05732f295..f5ac472dd2e 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EntryPointCommandHandlerType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PrimaryEntryPointCommandHandlerType.kt @@ -14,64 +14,64 @@ import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder /** - * See [EntryPointCommandHandlerType]s in the + * See [PrimaryEntryPointCommandHandlerType]s in the * [Discord Developer Documentation](https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types). */ -@Serializable(with = EntryPointCommandHandlerType.Serializer::class) -public sealed class EntryPointCommandHandlerType( +@Serializable(with = PrimaryEntryPointCommandHandlerType.Serializer::class) +public sealed class PrimaryEntryPointCommandHandlerType( /** * The raw value used by Discord. */ public val `value`: Int, ) { final override fun equals(other: Any?): Boolean = this === other || - (other is EntryPointCommandHandlerType && this.value == other.value) + (other is PrimaryEntryPointCommandHandlerType && this.value == other.value) final override fun hashCode(): Int = value.hashCode() final override fun toString(): String = - if (this is Unknown) "EntryPointCommandHandlerType.Unknown(value=$value)" - else "EntryPointCommandHandlerType.${this::class.simpleName}" + if (this is Unknown) "PrimaryEntryPointCommandHandlerType.Unknown(value=$value)" + else "PrimaryEntryPointCommandHandlerType.${this::class.simpleName}" /** - * An unknown [EntryPointCommandHandlerType]. + * An unknown [PrimaryEntryPointCommandHandlerType]. * - * This is used as a fallback for [EntryPointCommandHandlerType]s that haven't been added to - * Kord yet. + * This is used as a fallback for [PrimaryEntryPointCommandHandlerType]s that haven't been added + * to Kord yet. */ public class Unknown internal constructor( `value`: Int, - ) : EntryPointCommandHandlerType(value) + ) : PrimaryEntryPointCommandHandlerType(value) /** * The app handles the interaction using an interaction token */ - public object AppHandler : EntryPointCommandHandlerType(1) + public object AppHandler : PrimaryEntryPointCommandHandlerType(1) /** * Discord handles the interaction by launching an Activity and sending a follow-up message * without coordinating with the app */ - public object DiscordLaunchActivity : EntryPointCommandHandlerType(2) + public object DiscordLaunchActivity : PrimaryEntryPointCommandHandlerType(2) - internal object Serializer : KSerializer { + internal object Serializer : KSerializer { override val descriptor: SerialDescriptor = - PrimitiveSerialDescriptor("dev.kord.common.entity.EntryPointCommandHandlerType", + PrimitiveSerialDescriptor("dev.kord.common.entity.PrimaryEntryPointCommandHandlerType", PrimitiveKind.INT) - override fun serialize(encoder: Encoder, `value`: EntryPointCommandHandlerType) { + override fun serialize(encoder: Encoder, `value`: PrimaryEntryPointCommandHandlerType) { encoder.encodeInt(value.value) } - override fun deserialize(decoder: Decoder): EntryPointCommandHandlerType = + override fun deserialize(decoder: Decoder): PrimaryEntryPointCommandHandlerType = from(decoder.decodeInt()) } public companion object { /** - * A [List] of all known [EntryPointCommandHandlerType]s. + * A [List] of all known [PrimaryEntryPointCommandHandlerType]s. */ - public val entries: List by lazy(mode = PUBLICATION) { + public val entries: List by lazy(mode = PUBLICATION) { listOf( AppHandler, DiscordLaunchActivity, @@ -79,10 +79,10 @@ public sealed class EntryPointCommandHandlerType( } /** - * Returns an instance of [EntryPointCommandHandlerType] with - * [EntryPointCommandHandlerType.value] equal to the specified [value]. + * Returns an instance of [PrimaryEntryPointCommandHandlerType] with + * [PrimaryEntryPointCommandHandlerType.value] equal to the specified [value]. */ - public fun from(`value`: Int): EntryPointCommandHandlerType = when (value) { + public fun from(`value`: Int): PrimaryEntryPointCommandHandlerType = when (value) { 1 -> AppHandler 2 -> DiscordLaunchActivity else -> Unknown(value) diff --git a/common/src/commonMain/kotlin/entity/Interactions.kt b/common/src/commonMain/kotlin/entity/Interactions.kt index 562d26f0960..08b0a22de95 100644 --- a/common/src/commonMain/kotlin/entity/Interactions.kt +++ b/common/src/commonMain/kotlin/entity/Interactions.kt @@ -16,7 +16,7 @@ ) @file:Generate( - INT_KORD_ENUM, name = "EntryPointCommandHandlerType", + INT_KORD_ENUM, name = "PrimaryEntryPointCommandHandlerType", docUrl = "https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types", entries = [ Entry("AppHandler", intValue = 1, kDoc = "The app handles the interaction using an interaction token"), diff --git a/core/src/commonMain/kotlin/Kord.kt b/core/src/commonMain/kotlin/Kord.kt index 5d548e8d8b1..a03bbd63e76 100644 --- a/core/src/commonMain/kotlin/Kord.kt +++ b/core/src/commonMain/kotlin/Kord.kt @@ -4,7 +4,7 @@ import dev.kord.cache.api.DataCache import dev.kord.common.annotation.KordExperimental import dev.kord.common.annotation.KordUnsafe import dev.kord.common.entity.DiscordShard -import dev.kord.common.entity.EntryPointCommandHandlerType +import dev.kord.common.entity.PrimaryEntryPointCommandHandlerType import dev.kord.common.entity.Snowflake import dev.kord.common.exception.RequestException import dev.kord.core.builder.kord.KordBuilder @@ -646,15 +646,15 @@ public class Kord( return GuildUserCommand(data, rest.interaction) } - public suspend inline fun createGuildEntryPointCommand( + public suspend inline fun createGuildPrimaryEntryPointCommand( guildId: Snowflake, name: String, description: String, - handler: EntryPointCommandHandlerType, + handler: PrimaryEntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit = {}, - ): GuildEntryPointCommand { + ): GuildPrimaryEntryPointCommand { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - val response = rest.interaction.createGuildEntryPointCommand( + val response = rest.interaction.createGuildPrimaryEntryPointCommand( resources.applicationId, guildId, name, @@ -664,18 +664,18 @@ public class Kord( ) val data = ApplicationCommandData.from(response) - return GuildEntryPointCommand(data, rest.interaction) + return GuildPrimaryEntryPointCommand(data, rest.interaction) } - public suspend inline fun createGlobalEntryPointCommand( + public suspend inline fun createGlobalPrimaryEntryPointCommand( name: String, description: String, - handler: EntryPointCommandHandlerType, + handler: PrimaryEntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit = {}, - ): GlobalEntryPointCommand { + ): GlobalPrimaryEntryPointCommand { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - val response = rest.interaction.createGlobalEntryPointCommand( + val response = rest.interaction.createGlobalPrimaryEntryPointCommand( resources.applicationId, name, description, @@ -684,7 +684,7 @@ public class Kord( ) val data = ApplicationCommandData.from(response) - return GlobalEntryPointCommand(data, rest.interaction) + return GlobalPrimaryEntryPointCommand(data, rest.interaction) } public suspend inline fun createGuildApplicationCommands( @@ -702,7 +702,6 @@ public class Kord( } } } - } /** diff --git a/core/src/commonMain/kotlin/behavior/EntryPointCommandBehaviors.kt b/core/src/commonMain/kotlin/behavior/EntryPointCommandBehaviors.kt index 85260b6375c..935b1632c74 100644 --- a/core/src/commonMain/kotlin/behavior/EntryPointCommandBehaviors.kt +++ b/core/src/commonMain/kotlin/behavior/EntryPointCommandBehaviors.kt @@ -1,31 +1,31 @@ package dev.kord.core.behavior import dev.kord.core.cache.data.ApplicationCommandData -import dev.kord.core.entity.application.EntryPointCommand -import dev.kord.core.entity.application.GlobalEntryPointCommand -import dev.kord.core.entity.application.GuildEntryPointCommand +import dev.kord.core.entity.application.PrimaryEntryPointCommand +import dev.kord.core.entity.application.GlobalPrimaryEntryPointCommand +import dev.kord.core.entity.application.GuildPrimaryEntryPointCommand import dev.kord.rest.builder.interaction.EntryPointModifyBuilder public interface EntryPointCommandBehavior : ApplicationCommandBehavior { - public suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): EntryPointCommand + public suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): PrimaryEntryPointCommand } public interface GuildEntryPointCommandBehavior : EntryPointCommandBehavior, GuildApplicationCommandBehavior { - override suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): GuildEntryPointCommand { - val response = service.modifyGuildEntryPointApplicationCommand(applicationId, guildId, id) { + override suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): GuildPrimaryEntryPointCommand { + val response = service.modifyGuildPrimaryEntryPointApplicationCommand(applicationId, guildId, id) { builder() } val data = ApplicationCommandData.from(response) - return GuildEntryPointCommand(data, service) + return GuildPrimaryEntryPointCommand(data, service) } } public interface GlobalEntryPointCommandBehavior : EntryPointCommandBehavior, GlobalApplicationCommandBehavior { - override suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): GlobalEntryPointCommand { - val response = service.modifyGlobalEntryPointApplicationCommand(applicationId, id) { + override suspend fun edit(builder: suspend EntryPointModifyBuilder.() -> Unit): GlobalPrimaryEntryPointCommand { + val response = service.modifyGlobalPrimaryEntryPointApplicationCommand(applicationId, id) { builder() } val data = ApplicationCommandData.from(response) - return GlobalEntryPointCommand(data, service) + return GlobalPrimaryEntryPointCommand(data, service) } } diff --git a/core/src/commonMain/kotlin/entity/application/ApplicationCommand.kt b/core/src/commonMain/kotlin/entity/application/ApplicationCommand.kt index c3396196777..ae876e74738 100644 --- a/core/src/commonMain/kotlin/entity/application/ApplicationCommand.kt +++ b/core/src/commonMain/kotlin/entity/application/ApplicationCommand.kt @@ -85,7 +85,7 @@ public fun GlobalApplicationCommand(data: ApplicationCommandData, service: Inter ApplicationCommandType.ChatInput -> GlobalChatInputCommand(data, service) ApplicationCommandType.Message -> GlobalMessageCommand(data, service) ApplicationCommandType.User -> GlobalUserCommand(data, service) - ApplicationCommandType.PrimaryEntryPoint -> GlobalEntryPointCommand(data, service) + ApplicationCommandType.PrimaryEntryPoint -> GlobalPrimaryEntryPointCommand(data, service) is ApplicationCommandType.Unknown -> UnknownGlobalApplicationCommand(data, service) null -> error("The type value is missing, can't determine the type") } @@ -114,7 +114,7 @@ public fun GuildApplicationCommand(data: ApplicationCommandData, service: Intera ApplicationCommandType.ChatInput -> GuildChatInputCommand(data, service) ApplicationCommandType.Message -> GuildMessageCommand(data, service) ApplicationCommandType.User -> GuildUserCommand(data, service) - ApplicationCommandType.PrimaryEntryPoint -> GuildEntryPointCommand(data, service) + ApplicationCommandType.PrimaryEntryPoint -> GuildPrimaryEntryPointCommand(data, service) is ApplicationCommandType.Unknown -> UnknownGuildApplicationCommand(data, service) null -> error("The type value is missing, can't determine the type") } diff --git a/core/src/commonMain/kotlin/entity/application/EntryPointCommands.kt b/core/src/commonMain/kotlin/entity/application/EntryPointCommands.kt index 1d0828b44d5..2b32a6f59e2 100644 --- a/core/src/commonMain/kotlin/entity/application/EntryPointCommands.kt +++ b/core/src/commonMain/kotlin/entity/application/EntryPointCommands.kt @@ -7,17 +7,17 @@ import dev.kord.core.behavior.GuildEntryPointCommandBehavior import dev.kord.core.cache.data.ApplicationCommandData import dev.kord.rest.service.InteractionService -public interface EntryPointCommand : ApplicationCommand, EntryPointCommandBehavior +public interface PrimaryEntryPointCommand : ApplicationCommand, EntryPointCommandBehavior -public class GuildEntryPointCommand( +public class GuildPrimaryEntryPointCommand( override val data: ApplicationCommandData, override val service: InteractionService -) : EntryPointCommand, GuildApplicationCommand, GuildEntryPointCommandBehavior { +) : PrimaryEntryPointCommand, GuildApplicationCommand, GuildEntryPointCommandBehavior { override val guildId: Snowflake get() = data.guildId.value!! } -public class GlobalEntryPointCommand( +public class GlobalPrimaryEntryPointCommand( override val data: ApplicationCommandData, override val service: InteractionService -) : EntryPointCommand, GlobalApplicationCommand, GlobalEntryPointCommandBehavior +) : PrimaryEntryPointCommand, GlobalApplicationCommand, GlobalEntryPointCommandBehavior diff --git a/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt b/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt index 0725a463310..72eef816290 100644 --- a/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt +++ b/core/src/commonMain/kotlin/entity/interaction/ApplicationCommandInteraction.kt @@ -54,7 +54,7 @@ public fun GlobalApplicationCommandInteraction( ApplicationCommandType.ChatInput -> GlobalChatInputCommandInteraction(data, kord, supplier) ApplicationCommandType.User -> GlobalUserCommandInteraction(data, kord, supplier) ApplicationCommandType.Message -> GlobalMessageCommandInteraction(data, kord, supplier) - ApplicationCommandType.PrimaryEntryPoint -> GlobalPrimaryEntryPointInteraction(data, kord, supplier) + ApplicationCommandType.PrimaryEntryPoint -> GlobalPrimaryEntryPointCommandInteraction(data, kord, supplier) is ApplicationCommandType.Unknown -> error("Unknown application command type ${type.value}") null -> error("No application command type was provided") } @@ -77,7 +77,7 @@ public fun GuildApplicationCommandInteraction( ApplicationCommandType.ChatInput -> GuildChatInputCommandInteraction(data, kord, supplier) ApplicationCommandType.User -> GuildUserCommandInteraction(data, kord, supplier) ApplicationCommandType.Message -> GuildMessageCommandInteraction(data, kord, supplier) - ApplicationCommandType.PrimaryEntryPoint -> GuildPrimaryEntryPointInteraction(data, kord, supplier) + ApplicationCommandType.PrimaryEntryPoint -> GuildPrimaryEntryPointCommandInteraction(data, kord, supplier) is ApplicationCommandType.Unknown -> error("Unknown application command type ${type.value}") null -> error("No application command type was provided") } diff --git a/core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointInteraction.kt b/core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointCommandInteraction.kt similarity index 58% rename from core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointInteraction.kt rename to core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointCommandInteraction.kt index 912b8b55b90..9c470a2efa3 100644 --- a/core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointInteraction.kt +++ b/core/src/commonMain/kotlin/entity/interaction/PrimaryEntryPointCommandInteraction.kt @@ -5,33 +5,33 @@ import dev.kord.core.cache.data.InteractionData import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -public sealed interface PrimaryEntryPointInteraction : ApplicationCommandInteraction { - override fun withStrategy(strategy: EntitySupplyStrategy<*>): PrimaryEntryPointInteraction +public sealed interface PrimaryEntryPointCommandInteraction : ApplicationCommandInteraction { + override fun withStrategy(strategy: EntitySupplyStrategy<*>): PrimaryEntryPointCommandInteraction } -public class GlobalPrimaryEntryPointInteraction( +public class GlobalPrimaryEntryPointCommandInteraction( override val data: InteractionData, override val kord: Kord, override val supplier: EntitySupplier -) : PrimaryEntryPointInteraction, GlobalApplicationCommandInteraction { - override fun withStrategy(strategy: EntitySupplyStrategy<*>): GlobalPrimaryEntryPointInteraction = - GlobalPrimaryEntryPointInteraction(data, kord, strategy.supply(kord)) +) : PrimaryEntryPointCommandInteraction, GlobalApplicationCommandInteraction { + override fun withStrategy(strategy: EntitySupplyStrategy<*>): GlobalPrimaryEntryPointCommandInteraction = + GlobalPrimaryEntryPointCommandInteraction(data, kord, strategy.supply(kord)) - override fun equals(other: Any?): Boolean = other is GlobalPrimaryEntryPointInteraction && this.id == other.id + override fun equals(other: Any?): Boolean = other is GlobalPrimaryEntryPointCommandInteraction && this.id == other.id override fun hashCode(): Int = id.hashCode() override fun toString(): String = "GlobalPrimaryCommandInteraction(data=$data, kord=$kord, supplier=$supplier)" } -public class GuildPrimaryEntryPointInteraction( +public class GuildPrimaryEntryPointCommandInteraction( override val data: InteractionData, override val kord: Kord, override val supplier: EntitySupplier -) : PrimaryEntryPointInteraction, GuildApplicationCommandInteraction { - override fun withStrategy(strategy: EntitySupplyStrategy<*>): GuildPrimaryEntryPointInteraction = - GuildPrimaryEntryPointInteraction(data, kord, strategy.supply(kord)) +) : PrimaryEntryPointCommandInteraction, GuildApplicationCommandInteraction { + override fun withStrategy(strategy: EntitySupplyStrategy<*>): GuildPrimaryEntryPointCommandInteraction = + GuildPrimaryEntryPointCommandInteraction(data, kord, strategy.supply(kord)) - override fun equals(other: Any?): Boolean = other is GlobalPrimaryEntryPointInteraction && this.id == other.id + override fun equals(other: Any?): Boolean = other is GlobalPrimaryEntryPointCommandInteraction && this.id == other.id override fun hashCode(): Int = id.hashCode() override fun toString(): String = "GuildPrimaryEntryPointInteraction(data=$data, kord=$kord, supplier=$supplier)" diff --git a/core/src/commonMain/kotlin/event/interaction/ApplicationCommandInteractionCreate.kt b/core/src/commonMain/kotlin/event/interaction/ApplicationCommandInteractionCreate.kt index dd23c50ed2c..e16d89fadca 100644 --- a/core/src/commonMain/kotlin/event/interaction/ApplicationCommandInteractionCreate.kt +++ b/core/src/commonMain/kotlin/event/interaction/ApplicationCommandInteractionCreate.kt @@ -1,6 +1,5 @@ package dev.kord.core.event.interaction -import dev.kord.common.annotation.KordPreview import dev.kord.core.Kord import dev.kord.core.entity.interaction.* import dev.kord.core.event.Event @@ -89,22 +88,22 @@ public class GlobalChatInputCommandInteractionCreateEvent( override val customContext: Any?, ) : GlobalApplicationCommandInteractionCreateEvent, ChatInputCommandInteractionCreateEvent -/** An [Event] that fires when a [PrimaryEntryPointInteraction] is created. */ +/** An [Event] that fires when a [PrimaryEntryPointCommandInteraction] is created. */ public sealed interface PrimaryEntryPointCommandInteractionCreateEvent : ApplicationCommandInteractionCreateEvent { - override val interaction: PrimaryEntryPointInteraction + override val interaction: PrimaryEntryPointCommandInteraction } -/** An [Event] that fires when a [GuildPrimaryEntryPointInteraction] is created. */ +/** An [Event] that fires when a [GuildPrimaryEntryPointCommandInteraction] is created. */ public class GuildPrimaryEntryPointCommandInteractionCreateEvent( - override val interaction: GuildPrimaryEntryPointInteraction, + override val interaction: GuildPrimaryEntryPointCommandInteraction, override val kord: Kord, override val shard: Int, override val customContext: Any? ) : PrimaryEntryPointCommandInteractionCreateEvent, GuildApplicationCommandInteractionCreateEvent -/** An [Event] that fires when a [GlobalPrimaryEntryPointInteraction] is created. */ +/** An [Event] that fires when a [GlobalPrimaryEntryPointCommandInteraction] is created. */ public class GlobalPrimaryEntryPointCommandInteractionCreateEvent( - override val interaction: GlobalPrimaryEntryPointInteraction, + override val interaction: GlobalPrimaryEntryPointCommandInteraction, override val kord: Kord, override val shard: Int, override val customContext: Any? diff --git a/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt b/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt index 4c126e2a55a..b5ae5c1f526 100644 --- a/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt +++ b/core/src/commonMain/kotlin/gateway/handler/InteractionEventHandler.kt @@ -50,8 +50,8 @@ internal class InteractionEventHandler : BaseGatewayEventHandler() { is GuildButtonInteraction -> GuildButtonInteractionCreateEvent(interaction, kord, shard, context?.get()) is GuildSelectMenuInteraction -> GuildSelectMenuInteractionCreateEvent(interaction, kord, shard, context?.get()) is GuildModalSubmitInteraction -> GuildModalSubmitInteractionCreateEvent(interaction, kord, shard, context?.get()) - is GlobalPrimaryEntryPointInteraction -> GlobalPrimaryEntryPointCommandInteractionCreateEvent(interaction, kord, shard, context?.get()) - is GuildPrimaryEntryPointInteraction -> GuildPrimaryEntryPointCommandInteractionCreateEvent(interaction, kord, shard, context?.get()) + is GlobalPrimaryEntryPointCommandInteraction -> GlobalPrimaryEntryPointCommandInteractionCreateEvent(interaction, kord, shard, context?.get()) + is GuildPrimaryEntryPointCommandInteraction -> GuildPrimaryEntryPointCommandInteractionCreateEvent(interaction, kord, shard, context?.get()) } return coreEvent } diff --git a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt index 595fa0932be..8218cbbb98a 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/ApplicationCommandStateHolder.kt @@ -2,7 +2,7 @@ package dev.kord.rest.builder.interaction import dev.kord.common.Locale import dev.kord.common.entity.ApplicationIntegrationType -import dev.kord.common.entity.EntryPointCommandHandlerType +import dev.kord.common.entity.PrimaryEntryPointCommandHandlerType import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional @@ -29,7 +29,7 @@ internal class ApplicationCommandModifyStateHolder { var integrationTypes: Optional> = Optional.Missing() var contexts: Optional> = Optional.Missing() - var handler: Optional = Optional.Missing() + var handler: Optional = Optional.Missing() @Deprecated("'defaultPermission' is deprecated in favor of 'defaultMemberPermissions' and 'dmPermission'. Setting 'defaultPermission' to false can be replaced by setting 'defaultMemberPermissions' to empty Permissions and 'dmPermission' to false ('dmPermission' is only available for global commands).") @SerialName("default_permission") diff --git a/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt b/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt index 79137be6455..83cad430717 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/EntryPointBuilders.kt @@ -4,7 +4,7 @@ import dev.kord.common.Locale import dev.kord.common.annotation.KordDsl import dev.kord.common.entity.ApplicationCommandType import dev.kord.common.entity.ApplicationIntegrationType -import dev.kord.common.entity.EntryPointCommandHandlerType +import dev.kord.common.entity.PrimaryEntryPointCommandHandlerType import dev.kord.common.entity.InteractionContextType import dev.kord.common.entity.Permissions import dev.kord.common.entity.optional.Optional @@ -16,7 +16,7 @@ import dev.kord.rest.json.request.ApplicationCommandModifyRequest @KordDsl public interface EntryPointCreateBuilder : ApplicationCommandCreateBuilder, LocalizedDescriptionCreateBuilder { - public val handler: EntryPointCommandHandlerType? + public val handler: PrimaryEntryPointCommandHandlerType? } @KordDsl @@ -24,7 +24,7 @@ public interface GlobalEntryPointCreateBuilder : GlobalApplicationCommandCreateB @KordDsl public interface EntryPointModifyBuilder : ApplicationCommandModifyBuilder, LocalizedDescriptionModifyBuilder { - public val handler: EntryPointCommandHandlerType? + public val handler: PrimaryEntryPointCommandHandlerType? } @KordDsl @@ -34,7 +34,7 @@ public interface GlobalEntryPointModifyBuilder : GlobalApplicationCommandModifyB internal class EntryPointCreateBuilderImpl( override var name: String, override var description: String, - override val handler: EntryPointCommandHandlerType + override val handler: PrimaryEntryPointCommandHandlerType ) : GlobalEntryPointCreateBuilder { private val state = ApplicationCommandModifyStateHolder() @@ -96,7 +96,7 @@ internal class EntryPointModifyBuilderImpl : GlobalEntryPointModifyBuilder, Entr override var integrationTypes: MutableList? by state::integrationTypes.delegate() override var contexts: MutableList? by state::contexts.delegate() - override val handler: EntryPointCommandHandlerType? by state::handler.delegate() + override val handler: PrimaryEntryPointCommandHandlerType? by state::handler.delegate() override fun toRequest(): ApplicationCommandModifyRequest = ApplicationCommandModifyRequest( state.name, diff --git a/rest/src/commonMain/kotlin/builder/interaction/MultiApplicationCommandBuilder.kt b/rest/src/commonMain/kotlin/builder/interaction/MultiApplicationCommandBuilder.kt index 99d538ad1a9..b3ff65d6171 100644 --- a/rest/src/commonMain/kotlin/builder/interaction/MultiApplicationCommandBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/interaction/MultiApplicationCommandBuilder.kt @@ -1,7 +1,7 @@ package dev.kord.rest.builder.interaction import dev.kord.common.annotation.KordDsl -import dev.kord.common.entity.EntryPointCommandHandlerType +import dev.kord.common.entity.PrimaryEntryPointCommandHandlerType import dev.kord.rest.json.request.ApplicationCommandCreateRequest import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -37,7 +37,7 @@ public inline fun MultiApplicationCommandBuilder.user(name: String, builder: Use commands += UserCommandCreateBuilderImpl(name).apply(builder) } -public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: EntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit) { +public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: PrimaryEntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit) { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } commands += EntryPointCreateBuilderImpl(name, description, handler).apply(builder) } @@ -60,7 +60,7 @@ public class GlobalMultiApplicationCommandBuilder : MultiApplicationCommandBuild commands += UserCommandCreateBuilderImpl(name).apply(builder) } - public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: EntryPointCommandHandlerType, builder: GlobalEntryPointCreateBuilder.() -> Unit = {}) { + public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: PrimaryEntryPointCommandHandlerType, builder: GlobalEntryPointCreateBuilder.() -> Unit = {}) { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } commands += EntryPointCreateBuilderImpl(name, description, handler).apply(builder) } @@ -84,7 +84,7 @@ public class GuildMultiApplicationCommandBuilder : MultiApplicationCommandBuilde commands += UserCommandCreateBuilderImpl(name).apply(builder) } - public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: EntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit) { + public inline fun MultiApplicationCommandBuilder.entryPoint(name: String, description: String, handler: PrimaryEntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit) { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } commands += EntryPointCreateBuilderImpl(name, description, handler).apply(builder) } diff --git a/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt b/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt index 3ce825111da..8b104378464 100644 --- a/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt +++ b/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt @@ -29,7 +29,7 @@ public data class ApplicationCommandCreateRequest( @SerialName("integration_types") val integrationTypes: Optional> = Optional.Missing(), val contexts: Optional?> = Optional.Missing(), - val handler: Optional = Optional.Missing() + val handler: Optional = Optional.Missing() ) @Serializable @@ -52,7 +52,7 @@ public data class ApplicationCommandModifyRequest( @SerialName("integration_types") val integrationTypes: Optional> = Optional.Missing(), val contexts: Optional?> = Optional.Missing(), - val handler: Optional = Optional.Missing() + val handler: Optional = Optional.Missing() ) @Serializable diff --git a/rest/src/commonMain/kotlin/service/InteractionService.kt b/rest/src/commonMain/kotlin/service/InteractionService.kt index 915c6da2d5f..87c2232e02a 100644 --- a/rest/src/commonMain/kotlin/service/InteractionService.kt +++ b/rest/src/commonMain/kotlin/service/InteractionService.kt @@ -477,12 +477,12 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re ) } - public suspend inline fun createGuildEntryPointCommand( + public suspend inline fun createGuildPrimaryEntryPointCommand( applicationId: Snowflake, guildId: Snowflake, name: String, description: String, - handler: EntryPointCommandHandlerType, + handler: PrimaryEntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit = {} ): DiscordApplicationCommand { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } @@ -494,11 +494,11 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re ) } - public suspend inline fun createGlobalEntryPointCommand( + public suspend inline fun createGlobalPrimaryEntryPointCommand( applicationId: Snowflake, name: String, description: String, - handler: EntryPointCommandHandlerType, + handler: PrimaryEntryPointCommandHandlerType, builder: EntryPointCreateBuilder.() -> Unit = {} ): DiscordApplicationCommand { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } @@ -556,7 +556,7 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re ) } - public suspend inline fun modifyGuildEntryPointApplicationCommand( + public suspend inline fun modifyGuildPrimaryEntryPointApplicationCommand( applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, @@ -572,7 +572,7 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re ) } - public suspend inline fun modifyGlobalEntryPointApplicationCommand( + public suspend inline fun modifyGlobalPrimaryEntryPointApplicationCommand( applicationId: Snowflake, commandId: Snowflake, builder: EntryPointModifyBuilder.() -> Unit From 17caabba700ce9b2a5ef4540093a47346c1b1fae Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 27 Oct 2024 18:52:36 +0100 Subject: [PATCH 21/22] Api dump --- common/api/common.api | 52 ++++---- common/api/common.klib.api | 46 +++---- core/api/core.api | 244 +++++++++++++++++++++++++++++++------ core/api/core.klib.api | 123 ++++++++++++++----- rest/api/rest.api | 92 +++++++++++--- rest/api/rest.klib.api | 79 +++++++++--- 6 files changed, 483 insertions(+), 153 deletions(-) diff --git a/common/api/common.api b/common/api/common.api index fa8ca6927c7..0cad2d7834f 100644 --- a/common/api/common.api +++ b/common/api/common.api @@ -6758,32 +6758,6 @@ public final class dev/kord/common/entity/EntitlementType$UserGift : dev/kord/co public static final field INSTANCE Ldev/kord/common/entity/EntitlementType$UserGift; } -public abstract class dev/kord/common/entity/EntryPointCommandHandlerType { - public static final field Companion Ldev/kord/common/entity/EntryPointCommandHandlerType$Companion; - public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun equals (Ljava/lang/Object;)Z - public final fun getValue ()I - public final fun hashCode ()I - public final fun toString ()Ljava/lang/String; -} - -public final class dev/kord/common/entity/EntryPointCommandHandlerType$AppHandler : dev/kord/common/entity/EntryPointCommandHandlerType { - public static final field INSTANCE Ldev/kord/common/entity/EntryPointCommandHandlerType$AppHandler; -} - -public final class dev/kord/common/entity/EntryPointCommandHandlerType$Companion { - public final fun from (I)Ldev/kord/common/entity/EntryPointCommandHandlerType; - public final fun getEntries ()Ljava/util/List; - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public final class dev/kord/common/entity/EntryPointCommandHandlerType$DiscordLaunchActivity : dev/kord/common/entity/EntryPointCommandHandlerType { - public static final field INSTANCE Ldev/kord/common/entity/EntryPointCommandHandlerType$DiscordLaunchActivity; -} - -public final class dev/kord/common/entity/EntryPointCommandHandlerType$Unknown : dev/kord/common/entity/EntryPointCommandHandlerType { -} - public abstract class dev/kord/common/entity/ExplicitContentFilter { public static final field Companion Ldev/kord/common/entity/ExplicitContentFilter$Companion; public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -8428,6 +8402,32 @@ public final class dev/kord/common/entity/PresenceStatus$Online : dev/kord/commo public final class dev/kord/common/entity/PresenceStatus$Unknown : dev/kord/common/entity/PresenceStatus { } +public abstract class dev/kord/common/entity/PrimaryEntryPointCommandHandlerType { + public static final field Companion Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType$Companion; + public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun equals (Ljava/lang/Object;)Z + public final fun getValue ()I + public final fun hashCode ()I + public final fun toString ()Ljava/lang/String; +} + +public final class dev/kord/common/entity/PrimaryEntryPointCommandHandlerType$AppHandler : dev/kord/common/entity/PrimaryEntryPointCommandHandlerType { + public static final field INSTANCE Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType$AppHandler; +} + +public final class dev/kord/common/entity/PrimaryEntryPointCommandHandlerType$Companion { + public final fun from (I)Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType; + public final fun getEntries ()Ljava/util/List; + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/kord/common/entity/PrimaryEntryPointCommandHandlerType$DiscordLaunchActivity : dev/kord/common/entity/PrimaryEntryPointCommandHandlerType { + public static final field INSTANCE Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType$DiscordLaunchActivity; +} + +public final class dev/kord/common/entity/PrimaryEntryPointCommandHandlerType$Unknown : dev/kord/common/entity/PrimaryEntryPointCommandHandlerType { +} + public final class dev/kord/common/entity/Reaction { public static final field Companion Ldev/kord/common/entity/Reaction$Companion; public fun (IZLdev/kord/common/entity/DiscordEmoji;)V diff --git a/common/api/common.klib.api b/common/api/common.klib.api index 5bfc7f14969..675b54d84e8 100644 --- a/common/api/common.klib.api +++ b/common/api/common.klib.api @@ -8149,29 +8149,6 @@ sealed class dev.kord.common.entity/EntitlementType { // dev.kord.common.entity/ final object UserGift : dev.kord.common.entity/EntitlementType // dev.kord.common.entity/EntitlementType.UserGift|null[0] } -sealed class dev.kord.common.entity/EntryPointCommandHandlerType { // dev.kord.common.entity/EntryPointCommandHandlerType|null[0] - final val value // dev.kord.common.entity/EntryPointCommandHandlerType.value|{}value[0] - final fun (): kotlin/Int // dev.kord.common.entity/EntryPointCommandHandlerType.value.|(){}[0] - - final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/EntryPointCommandHandlerType.equals|equals(kotlin.Any?){}[0] - final fun hashCode(): kotlin/Int // dev.kord.common.entity/EntryPointCommandHandlerType.hashCode|hashCode(){}[0] - final fun toString(): kotlin/String // dev.kord.common.entity/EntryPointCommandHandlerType.toString|toString(){}[0] - - final class Unknown : dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.common.entity/EntryPointCommandHandlerType.Unknown|null[0] - - final object AppHandler : dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.common.entity/EntryPointCommandHandlerType.AppHandler|null[0] - - final object Companion { // dev.kord.common.entity/EntryPointCommandHandlerType.Companion|null[0] - final val entries // dev.kord.common.entity/EntryPointCommandHandlerType.Companion.entries|{}entries[0] - final fun (): kotlin.collections/List // dev.kord.common.entity/EntryPointCommandHandlerType.Companion.entries.|(){}[0] - - final fun from(kotlin/Int): dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.common.entity/EntryPointCommandHandlerType.Companion.from|from(kotlin.Int){}[0] - final fun serializer(): kotlinx.serialization/KSerializer // dev.kord.common.entity/EntryPointCommandHandlerType.Companion.serializer|serializer(){}[0] - } - - final object DiscordLaunchActivity : dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.common.entity/EntryPointCommandHandlerType.DiscordLaunchActivity|null[0] -} - sealed class dev.kord.common.entity/ExplicitContentFilter { // dev.kord.common.entity/ExplicitContentFilter|null[0] final val value // dev.kord.common.entity/ExplicitContentFilter.value|{}value[0] final fun (): kotlin/Int // dev.kord.common.entity/ExplicitContentFilter.value.|(){}[0] @@ -8993,6 +8970,29 @@ sealed class dev.kord.common.entity/PresenceStatus { // dev.kord.common.entity/P final object Online : dev.kord.common.entity/PresenceStatus // dev.kord.common.entity/PresenceStatus.Online|null[0] } +sealed class dev.kord.common.entity/PrimaryEntryPointCommandHandlerType { // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType|null[0] + final val value // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.value|{}value[0] + final fun (): kotlin/Int // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.value.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.toString|toString(){}[0] + + final class Unknown : dev.kord.common.entity/PrimaryEntryPointCommandHandlerType // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.Unknown|null[0] + + final object AppHandler : dev.kord.common.entity/PrimaryEntryPointCommandHandlerType // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.AppHandler|null[0] + + final object Companion { // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.Companion|null[0] + final val entries // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.Companion.entries|{}entries[0] + final fun (): kotlin.collections/List // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.Companion.entries.|(){}[0] + + final fun from(kotlin/Int): dev.kord.common.entity/PrimaryEntryPointCommandHandlerType // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.Companion.from|from(kotlin.Int){}[0] + final fun serializer(): kotlinx.serialization/KSerializer // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.Companion.serializer|serializer(){}[0] + } + + final object DiscordLaunchActivity : dev.kord.common.entity/PrimaryEntryPointCommandHandlerType // dev.kord.common.entity/PrimaryEntryPointCommandHandlerType.DiscordLaunchActivity|null[0] +} + sealed class dev.kord.common.entity/RoleFlag { // dev.kord.common.entity/RoleFlag|null[0] final val shift // dev.kord.common.entity/RoleFlag.shift|{}shift[0] final fun (): kotlin/Int // dev.kord.common.entity/RoleFlag.shift.|(){}[0] diff --git a/core/api/core.api b/core/api/core.api index da74fd6a8b3..8ca19621c98 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -15,20 +15,20 @@ public final class dev/kord/core/Kord : kotlinx/coroutines/CoroutineScope { public final fun createGlobalApplicationCommands (Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGlobalChatInputCommand (Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalChatInputCommand$default (Ldev/kord/core/Kord;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; - public final fun createGlobalEntryPointCommand (Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun createGlobalEntryPointCommand$default (Ldev/kord/core/Kord;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGlobalMessageCommand (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalMessageCommand$default (Ldev/kord/core/Kord;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public final fun createGlobalPrimaryEntryPointCommand (Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun createGlobalPrimaryEntryPointCommand$default (Ldev/kord/core/Kord;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGlobalUserCommand (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalUserCommand$default (Ldev/kord/core/Kord;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuild (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGuildApplicationCommands (Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGuildChatInputCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildChatInputCommand$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; - public final fun createGuildEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun createGuildEntryPointCommand$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildMessageCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildMessageCommand$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public final fun createGuildPrimaryEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun createGuildPrimaryEntryPointCommand$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildUserCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildUserCommand$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun editPresence (Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -1778,6 +1778,7 @@ public abstract interface class dev/kord/core/behavior/interaction/ActionInterac public abstract fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getOriginalInteractionResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getOriginalInteractionResponseOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public abstract fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; } @@ -1831,7 +1832,6 @@ public final class dev/kord/core/behavior/interaction/AutoCompleteInteractionBeh public static fun getChannel (Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/behavior/interaction/AutoCompleteInteractionBehaviorKt { @@ -1880,7 +1880,6 @@ public final class dev/kord/core/behavior/interaction/DataInteractionBehavior$De public static fun getChannel (Ldev/kord/core/behavior/interaction/DataInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/behavior/interaction/DataInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/DataInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/DataInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/GlobalInteractionBehavior : dev/kord/core/behavior/interaction/InteractionBehavior { @@ -1892,7 +1891,6 @@ public final class dev/kord/core/behavior/interaction/GlobalInteractionBehavior$ public static fun getChannel (Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/GuildInteractionBehavior : dev/kord/core/behavior/interaction/InteractionBehavior { @@ -1914,7 +1912,6 @@ public final class dev/kord/core/behavior/interaction/GuildInteractionBehavior$D public static fun getGuild (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuild (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getGuildOrNull (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/GuildInteractionBehavior; } @@ -1930,7 +1927,6 @@ public abstract interface class dev/kord/core/behavior/interaction/InteractionBe public abstract fun getChannelId ()Ldev/kord/common/entity/Snowflake; public abstract fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getToken ()Ljava/lang/String; - public abstract fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/InteractionBehavior; } @@ -1939,7 +1935,6 @@ public final class dev/kord/core/behavior/interaction/InteractionBehavior$Defaul public static fun getChannel (Ldev/kord/core/behavior/interaction/InteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; public static fun getChannel (Ldev/kord/core/behavior/interaction/InteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/InteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun openActivity (Ldev/kord/core/behavior/interaction/InteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/ModalParentInteractionBehavior : dev/kord/core/behavior/interaction/ActionInteractionBehavior { @@ -7565,22 +7560,6 @@ public final class dev/kord/core/entity/application/ChatInputSubCommand { public final fun getParameters ()Ljava/util/Map; } -public abstract interface class dev/kord/core/entity/application/EntryPointCommand : dev/kord/core/behavior/EntryPointCommandBehavior, dev/kord/core/entity/application/ApplicationCommand { -} - -public final class dev/kord/core/entity/application/EntryPointCommand$DefaultImpls { - public static fun compareTo (Ldev/kord/core/entity/application/EntryPointCommand;Ldev/kord/core/entity/Entity;)I - public static fun getApplicationId (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/Snowflake; - public static fun getDefaultMemberPermissions (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/Permissions; - public static fun getDefaultPermission (Ldev/kord/core/entity/application/EntryPointCommand;)Ljava/lang/Boolean; - public static fun getId (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/Snowflake; - public static fun getName (Ldev/kord/core/entity/application/EntryPointCommand;)Ljava/lang/String; - public static fun getNameLocalizations (Ldev/kord/core/entity/application/EntryPointCommand;)Ljava/util/Map; - public static fun getType (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/ApplicationCommandType; - public static fun getVersion (Ldev/kord/core/entity/application/EntryPointCommand;)Ldev/kord/common/entity/Snowflake; - public static fun isNsfw (Ldev/kord/core/entity/application/EntryPointCommand;)Z -} - public abstract interface class dev/kord/core/entity/application/GlobalApplicationCommand : dev/kord/core/behavior/GlobalApplicationCommandBehavior, dev/kord/core/entity/application/ApplicationCommand { public abstract fun getDmPermission ()Z } @@ -7624,7 +7603,7 @@ public final class dev/kord/core/entity/application/GlobalChatInputCommand : dev public fun isNsfw ()Z } -public final class dev/kord/core/entity/application/GlobalEntryPointCommand : dev/kord/core/behavior/GlobalEntryPointCommandBehavior, dev/kord/core/entity/application/EntryPointCommand, dev/kord/core/entity/application/GlobalApplicationCommand { +public final class dev/kord/core/entity/application/GlobalMessageCommand : dev/kord/core/behavior/GlobalMessageCommandBehavior, dev/kord/core/entity/application/GlobalApplicationCommand, dev/kord/core/entity/application/MessageCommand { public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I @@ -7644,7 +7623,7 @@ public final class dev/kord/core/entity/application/GlobalEntryPointCommand : de public fun isNsfw ()Z } -public final class dev/kord/core/entity/application/GlobalMessageCommand : dev/kord/core/behavior/GlobalMessageCommandBehavior, dev/kord/core/entity/application/GlobalApplicationCommand, dev/kord/core/entity/application/MessageCommand { +public final class dev/kord/core/entity/application/GlobalPrimaryEntryPointCommand : dev/kord/core/behavior/GlobalEntryPointCommandBehavior, dev/kord/core/entity/application/GlobalApplicationCommand, dev/kord/core/entity/application/PrimaryEntryPointCommand { public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I @@ -7733,7 +7712,7 @@ public final class dev/kord/core/entity/application/GuildChatInputCommand : dev/ public fun isNsfw ()Z } -public final class dev/kord/core/entity/application/GuildEntryPointCommand : dev/kord/core/behavior/GuildEntryPointCommandBehavior, dev/kord/core/entity/application/EntryPointCommand, dev/kord/core/entity/application/GuildApplicationCommand { +public final class dev/kord/core/entity/application/GuildMessageCommand : dev/kord/core/behavior/GuildMessageCommandBehavior, dev/kord/core/entity/application/GuildApplicationCommand, dev/kord/core/entity/application/MessageCommand { public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I @@ -7753,7 +7732,7 @@ public final class dev/kord/core/entity/application/GuildEntryPointCommand : dev public fun isNsfw ()Z } -public final class dev/kord/core/entity/application/GuildMessageCommand : dev/kord/core/behavior/GuildMessageCommandBehavior, dev/kord/core/entity/application/GuildApplicationCommand, dev/kord/core/entity/application/MessageCommand { +public final class dev/kord/core/entity/application/GuildPrimaryEntryPointCommand : dev/kord/core/behavior/GuildEntryPointCommandBehavior, dev/kord/core/entity/application/GuildApplicationCommand, dev/kord/core/entity/application/PrimaryEntryPointCommand { public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I @@ -7809,6 +7788,22 @@ public final class dev/kord/core/entity/application/MessageCommand$DefaultImpls public static fun isNsfw (Ldev/kord/core/entity/application/MessageCommand;)Z } +public abstract interface class dev/kord/core/entity/application/PrimaryEntryPointCommand : dev/kord/core/behavior/EntryPointCommandBehavior, dev/kord/core/entity/application/ApplicationCommand { +} + +public final class dev/kord/core/entity/application/PrimaryEntryPointCommand$DefaultImpls { + public static fun compareTo (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;Ldev/kord/core/entity/Entity;)I + public static fun getApplicationId (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Ldev/kord/common/entity/Snowflake; + public static fun getDefaultMemberPermissions (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Ldev/kord/common/entity/Permissions; + public static fun getDefaultPermission (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Ljava/lang/Boolean; + public static fun getId (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Ldev/kord/common/entity/Snowflake; + public static fun getName (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Ljava/lang/String; + public static fun getNameLocalizations (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Ljava/util/Map; + public static fun getType (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Ldev/kord/common/entity/ApplicationCommandType; + public static fun getVersion (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Ldev/kord/common/entity/Snowflake; + public static fun isNsfw (Ldev/kord/core/entity/application/PrimaryEntryPointCommand;)Z +} + public final class dev/kord/core/entity/application/UnknownGlobalApplicationCommand : dev/kord/core/entity/application/GlobalApplicationCommand { public fun (Ldev/kord/core/cache/data/ApplicationCommandData;Ldev/kord/rest/service/InteractionService;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I @@ -9550,7 +9545,6 @@ public final class dev/kord/core/entity/interaction/AutoCompleteInteraction$Defa public static fun getToken (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;)I - public static fun openActivity (Ldev/kord/core/entity/interaction/AutoCompleteInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/BooleanOptionValue : dev/kord/core/entity/interaction/OptionValue { @@ -9706,7 +9700,6 @@ public final class dev/kord/core/entity/interaction/DataInteraction$DefaultImpls public static fun getToken (Ldev/kord/core/entity/interaction/DataInteraction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/DataInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/DataInteraction;)I - public static fun openActivity (Ldev/kord/core/entity/interaction/DataInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction : dev/kord/core/entity/interaction/ApplicationCommandInteraction, dev/kord/core/entity/interaction/GlobalInteraction { @@ -9772,7 +9765,6 @@ public final class dev/kord/core/entity/interaction/GlobalAutoCompleteInteractio public fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I - public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/DataInteractionBehavior; @@ -9950,7 +9942,6 @@ public final class dev/kord/core/entity/interaction/GlobalInteraction$DefaultImp public static fun getType (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUser (Ldev/kord/core/entity/interaction/GlobalInteraction;)Ldev/kord/core/entity/User; public static fun getVersion (Ldev/kord/core/entity/interaction/GlobalInteraction;)I - public static fun openActivity (Ldev/kord/core/entity/interaction/GlobalInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/GlobalMessageCommandInteraction : dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction, dev/kord/core/entity/interaction/MessageCommandInteraction { @@ -10061,6 +10052,58 @@ public final class dev/kord/core/entity/interaction/GlobalModalSubmitInteraction public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/ModalSubmitInteraction; } +public final class dev/kord/core/entity/interaction/GlobalPrimaryEntryPointCommandInteraction : dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction, dev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction { + public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V + public fun compareTo (Ldev/kord/core/entity/Entity;)I + public synthetic fun compareTo (Ljava/lang/Object;)I + public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun equals (Ljava/lang/Object;)Z + public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; + public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; + public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getChannelId ()Ldev/kord/common/entity/Snowflake; + public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; + public fun getData ()Ldev/kord/core/cache/data/InteractionData; + public fun getEntitlements ()Ljava/util/List; + public fun getGuildLocale ()Ldev/kord/common/Locale; + public fun getId ()Ldev/kord/common/entity/Snowflake; + public fun getInvokedCommandGuildId ()Ldev/kord/common/entity/Snowflake; + public fun getInvokedCommandId ()Ldev/kord/common/entity/Snowflake; + public fun getInvokedCommandName ()Ljava/lang/String; + public fun getInvokedCommandType ()Ldev/kord/common/entity/ApplicationCommandType; + public fun getKord ()Ldev/kord/core/Kord; + public fun getLocale ()Ldev/kord/common/Locale; + public fun getOriginalInteractionResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getOriginalInteractionResponseOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getResolvedObjects ()Ldev/kord/core/entity/interaction/ResolvedObjects; + public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; + public fun getToken ()Ljava/lang/String; + public fun getType ()Ldev/kord/common/entity/InteractionType; + public fun getUser ()Ldev/kord/core/entity/User; + public fun getVersion ()I + public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun toString ()Ljava/lang/String; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/GlobalInteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/InteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Strategizable; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/ActionInteraction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/ApplicationCommandInteraction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/GlobalInteraction; + public fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/GlobalPrimaryEntryPointCommandInteraction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/Interaction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction; +} + public final class dev/kord/core/entity/interaction/GlobalSelectMenuInteraction : dev/kord/core/entity/interaction/GlobalComponentInteraction, dev/kord/core/entity/interaction/SelectMenuInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I @@ -10273,7 +10316,6 @@ public final class dev/kord/core/entity/interaction/GuildAutoCompleteInteraction public synthetic fun getUser ()Ldev/kord/core/entity/User; public fun getVersion ()I public fun hashCode ()I - public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/AutoCompleteInteractionBehavior; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/DataInteractionBehavior; @@ -10482,7 +10524,6 @@ public final class dev/kord/core/entity/interaction/GuildInteraction$DefaultImpl public static fun getType (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/entity/InteractionType; public static fun getUser (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/core/entity/Member; public static fun getVersion (Ldev/kord/core/entity/interaction/GuildInteraction;)I - public static fun openActivity (Ldev/kord/core/entity/interaction/GuildInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/kord/core/entity/interaction/GuildMessageCommandInteraction : dev/kord/core/entity/interaction/GuildApplicationCommandInteraction, dev/kord/core/entity/interaction/MessageCommandInteraction { @@ -10609,6 +10650,66 @@ public final class dev/kord/core/entity/interaction/GuildModalSubmitInteraction public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/ModalSubmitInteraction; } +public final class dev/kord/core/entity/interaction/GuildPrimaryEntryPointCommandInteraction : dev/kord/core/entity/interaction/GuildApplicationCommandInteraction, dev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction { + public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V + public fun compareTo (Ldev/kord/core/entity/Entity;)I + public synthetic fun compareTo (Ljava/lang/Object;)I + public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun equals (Ljava/lang/Object;)Z + public fun getAppPermissions ()Ldev/kord/common/entity/Permissions; + public fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public fun getAuthorizingIntegrationOwners ()Ljava/util/Map; + public fun getChannel ()Ldev/kord/core/behavior/channel/GuildMessageChannelBehavior; + public synthetic fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; + public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getChannelId ()Ldev/kord/common/entity/Snowflake; + public fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getContext ()Ldev/kord/common/entity/InteractionContextType; + public fun getData ()Ldev/kord/core/cache/data/InteractionData; + public fun getEntitlements ()Ljava/util/List; + public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; + public fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getGuildId ()Ldev/kord/common/entity/Snowflake; + public fun getGuildLocale ()Ldev/kord/common/Locale; + public fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getId ()Ldev/kord/common/entity/Snowflake; + public fun getInvokedCommandGuildId ()Ldev/kord/common/entity/Snowflake; + public fun getInvokedCommandId ()Ldev/kord/common/entity/Snowflake; + public fun getInvokedCommandName ()Ljava/lang/String; + public fun getInvokedCommandType ()Ldev/kord/common/entity/ApplicationCommandType; + public fun getKord ()Ldev/kord/core/Kord; + public fun getLocale ()Ldev/kord/common/Locale; + public fun getOriginalInteractionResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getOriginalInteractionResponseOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun getPermissions ()Ldev/kord/common/entity/Permissions; + public fun getResolvedObjects ()Ldev/kord/core/entity/interaction/ResolvedObjects; + public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; + public fun getToken ()Ljava/lang/String; + public fun getType ()Ldev/kord/common/entity/InteractionType; + public fun getUser ()Ldev/kord/core/entity/Member; + public synthetic fun getUser ()Ldev/kord/core/entity/User; + public fun getVersion ()I + public fun hashCode ()I + public fun openActivity (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun toString ()Ljava/lang/String; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ActionInteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/GuildInteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/InteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Strategizable; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/ActionInteraction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/ApplicationCommandInteraction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/GuildInteraction; + public fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/GuildPrimaryEntryPointCommandInteraction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/Interaction; + public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction; +} + public final class dev/kord/core/entity/interaction/GuildSelectMenuInteraction : dev/kord/core/entity/interaction/GuildComponentInteraction, dev/kord/core/entity/interaction/SelectMenuInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V public fun compareTo (Ldev/kord/core/entity/Entity;)I @@ -10785,7 +10886,6 @@ public final class dev/kord/core/entity/interaction/Interaction$DefaultImpls { public static fun getToken (Ldev/kord/core/entity/interaction/Interaction;)Ljava/lang/String; public static fun getType (Ldev/kord/core/entity/interaction/Interaction;)Ldev/kord/common/entity/InteractionType; public static fun getVersion (Ldev/kord/core/entity/interaction/Interaction;)I - public static fun openActivity (Ldev/kord/core/entity/interaction/Interaction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/entity/interaction/InteractionCommand : dev/kord/core/KordObject { @@ -10948,6 +11048,40 @@ public final class dev/kord/core/entity/interaction/OptionValueKt { public static final fun OptionValue (Ldev/kord/common/entity/CommandArgument;Ldev/kord/core/entity/interaction/ResolvedObjects;)Ldev/kord/core/entity/interaction/OptionValue; } +public abstract interface class dev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction : dev/kord/core/entity/interaction/ApplicationCommandInteraction { + public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction; +} + +public final class dev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction$DefaultImpls { + public static fun compareTo (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Ldev/kord/core/entity/Entity;)I + public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getApplicationId (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getAuthorizingIntegrationOwners (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ljava/util/Map; + public static fun getChannel (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; + public static fun getChannel (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getChannelId (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getContext (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/entity/InteractionContextType; + public static fun getEntitlements (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ljava/util/List; + public static fun getGuildLocale (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/Locale; + public static fun getId (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getInvokedCommandGuildId (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getInvokedCommandId (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/entity/Snowflake; + public static fun getInvokedCommandName (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ljava/lang/String; + public static fun getInvokedCommandType (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/entity/ApplicationCommandType; + public static fun getLocale (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/Locale; + public static fun getOriginalInteractionResponse (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getOriginalInteractionResponseOrNull (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static fun getResolvedObjects (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/core/entity/interaction/ResolvedObjects; + public static fun getToken (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ljava/lang/String; + public static fun getType (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)Ldev/kord/common/entity/InteractionType; + public static fun getVersion (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;)I + public static fun openActivity (Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; +} + public abstract interface class dev/kord/core/entity/interaction/ResolvableOptionValue : dev/kord/core/entity/interaction/OptionValue { public abstract fun getResolvedObject ()Ldev/kord/core/entity/Entity; } @@ -13003,6 +13137,20 @@ public final class dev/kord/core/event/interaction/GlobalModalSubmitInteractionC public fun getShard ()I } +public final class dev/kord/core/event/interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent : dev/kord/core/event/interaction/GlobalApplicationCommandInteractionCreateEvent, dev/kord/core/event/interaction/PrimaryEntryPointCommandInteractionCreateEvent { + public fun (Ldev/kord/core/entity/interaction/GlobalPrimaryEntryPointCommandInteraction;Ldev/kord/core/Kord;ILjava/lang/Object;)V + public fun getCustomContext ()Ljava/lang/Object; + public fun getGateway ()Ldev/kord/gateway/Gateway; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/ActionInteraction; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/ApplicationCommandInteraction; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction; + public fun getInteraction ()Ldev/kord/core/entity/interaction/GlobalPrimaryEntryPointCommandInteraction; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/Interaction; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction; + public fun getKord ()Ldev/kord/core/Kord; + public fun getShard ()I +} + public final class dev/kord/core/event/interaction/GlobalSelectMenuInteractionCreateEvent : dev/kord/core/event/interaction/GlobalComponentInteractionCreateEvent, dev/kord/core/event/interaction/SelectMenuInteractionCreateEvent { public fun (Ldev/kord/core/entity/interaction/GlobalSelectMenuInteraction;Ldev/kord/core/Kord;ILjava/lang/Object;)V public fun getCustomContext ()Ljava/lang/Object; @@ -13113,6 +13261,20 @@ public final class dev/kord/core/event/interaction/GuildModalSubmitInteractionCr public fun getShard ()I } +public final class dev/kord/core/event/interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent : dev/kord/core/event/interaction/GuildApplicationCommandInteractionCreateEvent, dev/kord/core/event/interaction/PrimaryEntryPointCommandInteractionCreateEvent { + public fun (Ldev/kord/core/entity/interaction/GuildPrimaryEntryPointCommandInteraction;Ldev/kord/core/Kord;ILjava/lang/Object;)V + public fun getCustomContext ()Ljava/lang/Object; + public fun getGateway ()Ldev/kord/gateway/Gateway; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/ActionInteraction; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/ApplicationCommandInteraction; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction; + public fun getInteraction ()Ldev/kord/core/entity/interaction/GuildPrimaryEntryPointCommandInteraction; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/Interaction; + public synthetic fun getInteraction ()Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction; + public fun getKord ()Ldev/kord/core/Kord; + public fun getShard ()I +} + public final class dev/kord/core/event/interaction/GuildSelectMenuInteractionCreateEvent : dev/kord/core/event/interaction/GuildComponentInteractionCreateEvent, dev/kord/core/event/interaction/SelectMenuInteractionCreateEvent { public fun (Ldev/kord/core/entity/interaction/GuildSelectMenuInteraction;Ldev/kord/core/Kord;ILjava/lang/Object;)V public fun getCustomContext ()Ljava/lang/Object; @@ -13195,6 +13357,14 @@ public final class dev/kord/core/event/interaction/ModalSubmitInteractionCreateE public static fun getGateway (Ldev/kord/core/event/interaction/ModalSubmitInteractionCreateEvent;)Ldev/kord/gateway/Gateway; } +public abstract interface class dev/kord/core/event/interaction/PrimaryEntryPointCommandInteractionCreateEvent : dev/kord/core/event/interaction/ApplicationCommandInteractionCreateEvent { + public abstract fun getInteraction ()Ldev/kord/core/entity/interaction/PrimaryEntryPointCommandInteraction; +} + +public final class dev/kord/core/event/interaction/PrimaryEntryPointCommandInteractionCreateEvent$DefaultImpls { + public static fun getGateway (Ldev/kord/core/event/interaction/PrimaryEntryPointCommandInteractionCreateEvent;)Ldev/kord/gateway/Gateway; +} + public abstract interface class dev/kord/core/event/interaction/SelectMenuInteractionCreateEvent : dev/kord/core/event/interaction/ComponentInteractionCreateEvent { public abstract fun getInteraction ()Ldev/kord/core/entity/interaction/SelectMenuInteraction; } diff --git a/core/api/core.klib.api b/core/api/core.klib.api index 7cbe38a9016..8f78b907734 100644 --- a/core/api/core.klib.api +++ b/core/api/core.klib.api @@ -357,6 +357,7 @@ abstract interface dev.kord.core.behavior.interaction/ActionInteractionBehavior open suspend fun deferPublicResponseUnsafe(): dev.kord.core.behavior.interaction.response/PublicMessageInteractionResponseBehavior // dev.kord.core.behavior.interaction/ActionInteractionBehavior.deferPublicResponseUnsafe|deferPublicResponseUnsafe(){}[0] open suspend fun getOriginalInteractionResponse(): dev.kord.core.entity/Message // dev.kord.core.behavior.interaction/ActionInteractionBehavior.getOriginalInteractionResponse|getOriginalInteractionResponse(){}[0] open suspend fun getOriginalInteractionResponseOrNull(): dev.kord.core.entity/Message? // dev.kord.core.behavior.interaction/ActionInteractionBehavior.getOriginalInteractionResponseOrNull|getOriginalInteractionResponseOrNull(){}[0] + open suspend fun openActivity() // dev.kord.core.behavior.interaction/ActionInteractionBehavior.openActivity|openActivity(){}[0] } abstract interface dev.kord.core.behavior.interaction/ApplicationCommandInteractionBehavior : dev.kord.core.behavior.interaction/ModalParentInteractionBehavior { // dev.kord.core.behavior.interaction/ApplicationCommandInteractionBehavior|null[0] @@ -409,7 +410,6 @@ abstract interface dev.kord.core.behavior.interaction/InteractionBehavior : dev. abstract fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.behavior.interaction/InteractionBehavior // dev.kord.core.behavior.interaction/InteractionBehavior.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] open suspend fun getChannel(): dev.kord.core.entity.channel/MessageChannel // dev.kord.core.behavior.interaction/InteractionBehavior.getChannel|getChannel(){}[0] open suspend fun getChannelOrNull(): dev.kord.core.entity.channel/MessageChannel? // dev.kord.core.behavior.interaction/InteractionBehavior.getChannelOrNull|getChannelOrNull(){}[0] - open suspend fun openActivity() // dev.kord.core.behavior.interaction/InteractionBehavior.openActivity|openActivity(){}[0] } abstract interface dev.kord.core.behavior.interaction/ModalParentInteractionBehavior : dev.kord.core.behavior.interaction/ActionInteractionBehavior { // dev.kord.core.behavior.interaction/ModalParentInteractionBehavior|null[0] @@ -442,7 +442,7 @@ abstract interface dev.kord.core.behavior/ChatInputCommandBehavior : dev.kord.co } abstract interface dev.kord.core.behavior/EntryPointCommandBehavior : dev.kord.core.behavior/ApplicationCommandBehavior { // dev.kord.core.behavior/EntryPointCommandBehavior|null[0] - abstract suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/EntryPointCommand // dev.kord.core.behavior/EntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] + abstract suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/PrimaryEntryPointCommand // dev.kord.core.behavior/EntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] } abstract interface dev.kord.core.behavior/GlobalApplicationCommandBehavior : dev.kord.core.behavior/ApplicationCommandBehavior { // dev.kord.core.behavior/GlobalApplicationCommandBehavior|null[0] @@ -454,7 +454,7 @@ abstract interface dev.kord.core.behavior/GlobalChatInputCommandBehavior : dev.k } abstract interface dev.kord.core.behavior/GlobalEntryPointCommandBehavior : dev.kord.core.behavior/EntryPointCommandBehavior, dev.kord.core.behavior/GlobalApplicationCommandBehavior { // dev.kord.core.behavior/GlobalEntryPointCommandBehavior|null[0] - open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GlobalEntryPointCommand // dev.kord.core.behavior/GlobalEntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] + open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand // dev.kord.core.behavior/GlobalEntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] } abstract interface dev.kord.core.behavior/GlobalMessageCommandBehavior : dev.kord.core.behavior/GlobalApplicationCommandBehavior, dev.kord.core.behavior/MessageCommandBehavior { // dev.kord.core.behavior/GlobalMessageCommandBehavior|null[0] @@ -574,7 +574,7 @@ abstract interface dev.kord.core.behavior/GuildEmojiBehavior : dev.kord.core.ent } abstract interface dev.kord.core.behavior/GuildEntryPointCommandBehavior : dev.kord.core.behavior/EntryPointCommandBehavior, dev.kord.core.behavior/GuildApplicationCommandBehavior { // dev.kord.core.behavior/GuildEntryPointCommandBehavior|null[0] - open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GuildEntryPointCommand // dev.kord.core.behavior/GuildEntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] + open suspend fun edit(kotlin.coroutines/SuspendFunction1): dev.kord.core.entity.application/GuildPrimaryEntryPointCommand // dev.kord.core.behavior/GuildEntryPointCommandBehavior.edit|edit(kotlin.coroutines.SuspendFunction1){}[0] } abstract interface dev.kord.core.behavior/GuildMessageCommandBehavior : dev.kord.core.behavior/GuildApplicationCommandBehavior, dev.kord.core.behavior/MessageCommandBehavior { // dev.kord.core.behavior/GuildMessageCommandBehavior|null[0] @@ -747,13 +747,13 @@ abstract interface dev.kord.core.behavior/WebhookBehavior : dev.kord.core.entity open suspend fun getMessageOrNull(kotlin/String, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake? = ...): dev.kord.core.entity/Message? // dev.kord.core.behavior/WebhookBehavior.getMessageOrNull|getMessageOrNull(kotlin.String;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake?){}[0] } -abstract interface dev.kord.core.entity.application/EntryPointCommand : dev.kord.core.behavior/EntryPointCommandBehavior, dev.kord.core.entity.application/ApplicationCommand // dev.kord.core.entity.application/EntryPointCommand|null[0] - abstract interface dev.kord.core.entity.application/GlobalApplicationCommand : dev.kord.core.behavior/GlobalApplicationCommandBehavior, dev.kord.core.entity.application/ApplicationCommand { // dev.kord.core.entity.application/GlobalApplicationCommand|null[0] open val dmPermission // dev.kord.core.entity.application/GlobalApplicationCommand.dmPermission|{}dmPermission[0] open fun (): kotlin/Boolean // dev.kord.core.entity.application/GlobalApplicationCommand.dmPermission.|(){}[0] } +abstract interface dev.kord.core.entity.application/PrimaryEntryPointCommand : dev.kord.core.behavior/EntryPointCommandBehavior, dev.kord.core.entity.application/ApplicationCommand // dev.kord.core.entity.application/PrimaryEntryPointCommand|null[0] + abstract interface dev.kord.core.entity.channel.thread/ThreadChannel : dev.kord.core.behavior.channel.threads/ThreadChannelBehavior, dev.kord.core.entity.channel/GuildMessageChannel { // dev.kord.core.entity.channel.thread/ThreadChannel|null[0] open val appliedTags // dev.kord.core.entity.channel.thread/ThreadChannel.appliedTags|{}appliedTags[0] open fun (): kotlin.collections/List // dev.kord.core.entity.channel.thread/ThreadChannel.appliedTags.|(){}[0] @@ -1479,6 +1479,10 @@ sealed interface dev.kord.core.entity.interaction/ModalSubmitInteraction : dev.k abstract fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.entity.interaction/ModalSubmitInteraction // dev.kord.core.entity.interaction/ModalSubmitInteraction.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] } +sealed interface dev.kord.core.entity.interaction/PrimaryEntryPointCommandInteraction : dev.kord.core.entity.interaction/ApplicationCommandInteraction { // dev.kord.core.entity.interaction/PrimaryEntryPointCommandInteraction|null[0] + abstract fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.entity.interaction/PrimaryEntryPointCommandInteraction // dev.kord.core.entity.interaction/PrimaryEntryPointCommandInteraction.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] +} + sealed interface dev.kord.core.entity.interaction/SelectMenuInteraction : dev.kord.core.entity.interaction/ComponentInteraction { // dev.kord.core.entity.interaction/SelectMenuInteraction|null[0] open val component // dev.kord.core.entity.interaction/SelectMenuInteraction.component|{}component[0] open fun (): dev.kord.core.entity.component/SelectMenuComponent // dev.kord.core.entity.interaction/SelectMenuInteraction.component.|(){}[0] @@ -1676,6 +1680,11 @@ sealed interface dev.kord.core.event.interaction/ModalSubmitInteractionCreateEve abstract fun (): dev.kord.core.entity.interaction/ModalSubmitInteraction // dev.kord.core.event.interaction/ModalSubmitInteractionCreateEvent.interaction.|(){}[0] } +sealed interface dev.kord.core.event.interaction/PrimaryEntryPointCommandInteractionCreateEvent : dev.kord.core.event.interaction/ApplicationCommandInteractionCreateEvent { // dev.kord.core.event.interaction/PrimaryEntryPointCommandInteractionCreateEvent|null[0] + abstract val interaction // dev.kord.core.event.interaction/PrimaryEntryPointCommandInteractionCreateEvent.interaction|{}interaction[0] + abstract fun (): dev.kord.core.entity.interaction/PrimaryEntryPointCommandInteraction // dev.kord.core.event.interaction/PrimaryEntryPointCommandInteractionCreateEvent.interaction.|(){}[0] +} + sealed interface dev.kord.core.event.interaction/SelectMenuInteractionCreateEvent : dev.kord.core.event.interaction/ComponentInteractionCreateEvent { // dev.kord.core.event.interaction/SelectMenuInteractionCreateEvent|null[0] abstract val interaction // dev.kord.core.event.interaction/SelectMenuInteractionCreateEvent.interaction|{}interaction[0] abstract fun (): dev.kord.core.entity.interaction/SelectMenuInteraction // dev.kord.core.event.interaction/SelectMenuInteractionCreateEvent.interaction.|(){}[0] @@ -5934,15 +5943,6 @@ final class dev.kord.core.entity.application/GlobalChatInputCommand : dev.kord.c final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GlobalChatInputCommand.service.|(){}[0] } -final class dev.kord.core.entity.application/GlobalEntryPointCommand : dev.kord.core.behavior/GlobalEntryPointCommandBehavior, dev.kord.core.entity.application/EntryPointCommand, dev.kord.core.entity.application/GlobalApplicationCommand { // dev.kord.core.entity.application/GlobalEntryPointCommand|null[0] - constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GlobalEntryPointCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] - - final val data // dev.kord.core.entity.application/GlobalEntryPointCommand.data|{}data[0] - final fun (): dev.kord.core.cache.data/ApplicationCommandData // dev.kord.core.entity.application/GlobalEntryPointCommand.data.|(){}[0] - final val service // dev.kord.core.entity.application/GlobalEntryPointCommand.service|{}service[0] - final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GlobalEntryPointCommand.service.|(){}[0] -} - final class dev.kord.core.entity.application/GlobalMessageCommand : dev.kord.core.behavior/GlobalMessageCommandBehavior, dev.kord.core.entity.application/GlobalApplicationCommand, dev.kord.core.entity.application/MessageCommand { // dev.kord.core.entity.application/GlobalMessageCommand|null[0] constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GlobalMessageCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] @@ -5952,6 +5952,15 @@ final class dev.kord.core.entity.application/GlobalMessageCommand : dev.kord.cor final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GlobalMessageCommand.service.|(){}[0] } +final class dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand : dev.kord.core.behavior/GlobalEntryPointCommandBehavior, dev.kord.core.entity.application/GlobalApplicationCommand, dev.kord.core.entity.application/PrimaryEntryPointCommand { // dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand|null[0] + constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] + + final val data // dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand.data|{}data[0] + final fun (): dev.kord.core.cache.data/ApplicationCommandData // dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand.data.|(){}[0] + final val service // dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand.service|{}service[0] + final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand.service.|(){}[0] +} + final class dev.kord.core.entity.application/GlobalUserCommand : dev.kord.core.behavior/GlobalUserCommandBehavior, dev.kord.core.entity.application/GlobalApplicationCommand, dev.kord.core.entity.application/UserCommand { // dev.kord.core.entity.application/GlobalUserCommand|null[0] constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GlobalUserCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] @@ -5985,17 +5994,6 @@ final class dev.kord.core.entity.application/GuildChatInputCommand : dev.kord.co final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GuildChatInputCommand.service.|(){}[0] } -final class dev.kord.core.entity.application/GuildEntryPointCommand : dev.kord.core.behavior/GuildEntryPointCommandBehavior, dev.kord.core.entity.application/EntryPointCommand, dev.kord.core.entity.application/GuildApplicationCommand { // dev.kord.core.entity.application/GuildEntryPointCommand|null[0] - constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GuildEntryPointCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] - - final val data // dev.kord.core.entity.application/GuildEntryPointCommand.data|{}data[0] - final fun (): dev.kord.core.cache.data/ApplicationCommandData // dev.kord.core.entity.application/GuildEntryPointCommand.data.|(){}[0] - final val guildId // dev.kord.core.entity.application/GuildEntryPointCommand.guildId|{}guildId[0] - final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.entity.application/GuildEntryPointCommand.guildId.|(){}[0] - final val service // dev.kord.core.entity.application/GuildEntryPointCommand.service|{}service[0] - final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GuildEntryPointCommand.service.|(){}[0] -} - final class dev.kord.core.entity.application/GuildMessageCommand : dev.kord.core.behavior/GuildMessageCommandBehavior, dev.kord.core.entity.application/GuildApplicationCommand, dev.kord.core.entity.application/MessageCommand { // dev.kord.core.entity.application/GuildMessageCommand|null[0] constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GuildMessageCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] @@ -6007,6 +6005,17 @@ final class dev.kord.core.entity.application/GuildMessageCommand : dev.kord.core final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GuildMessageCommand.service.|(){}[0] } +final class dev.kord.core.entity.application/GuildPrimaryEntryPointCommand : dev.kord.core.behavior/GuildEntryPointCommandBehavior, dev.kord.core.entity.application/GuildApplicationCommand, dev.kord.core.entity.application/PrimaryEntryPointCommand { // dev.kord.core.entity.application/GuildPrimaryEntryPointCommand|null[0] + constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GuildPrimaryEntryPointCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] + + final val data // dev.kord.core.entity.application/GuildPrimaryEntryPointCommand.data|{}data[0] + final fun (): dev.kord.core.cache.data/ApplicationCommandData // dev.kord.core.entity.application/GuildPrimaryEntryPointCommand.data.|(){}[0] + final val guildId // dev.kord.core.entity.application/GuildPrimaryEntryPointCommand.guildId|{}guildId[0] + final fun (): dev.kord.common.entity/Snowflake // dev.kord.core.entity.application/GuildPrimaryEntryPointCommand.guildId.|(){}[0] + final val service // dev.kord.core.entity.application/GuildPrimaryEntryPointCommand.service|{}service[0] + final fun (): dev.kord.rest.service/InteractionService // dev.kord.core.entity.application/GuildPrimaryEntryPointCommand.service.|(){}[0] +} + final class dev.kord.core.entity.application/GuildUserCommand : dev.kord.core.behavior/GuildUserCommandBehavior, dev.kord.core.entity.application/GuildApplicationCommand, dev.kord.core.entity.application/UserCommand { // dev.kord.core.entity.application/GuildUserCommand|null[0] constructor (dev.kord.core.cache.data/ApplicationCommandData, dev.kord.rest.service/InteractionService) // dev.kord.core.entity.application/GuildUserCommand.|(dev.kord.core.cache.data.ApplicationCommandData;dev.kord.rest.service.InteractionService){}[0] @@ -6810,6 +6819,22 @@ final class dev.kord.core.entity.interaction/GlobalModalSubmitInteraction : dev. final fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.entity.interaction/GlobalModalSubmitInteraction // dev.kord.core.entity.interaction/GlobalModalSubmitInteraction.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] } +final class dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction : dev.kord.core.entity.interaction/GlobalApplicationCommandInteraction, dev.kord.core.entity.interaction/PrimaryEntryPointCommandInteraction { // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction|null[0] + constructor (dev.kord.core.cache.data/InteractionData, dev.kord.core/Kord, dev.kord.core.supplier/EntitySupplier) // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.|(dev.kord.core.cache.data.InteractionData;dev.kord.core.Kord;dev.kord.core.supplier.EntitySupplier){}[0] + + final val data // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.data|{}data[0] + final fun (): dev.kord.core.cache.data/InteractionData // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.data.|(){}[0] + final val kord // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.kord|{}kord[0] + final fun (): dev.kord.core/Kord // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.kord.|(){}[0] + final val supplier // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.supplier|{}supplier[0] + final fun (): dev.kord.core.supplier/EntitySupplier // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.supplier.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.toString|toString(){}[0] + final fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction // dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] +} + final class dev.kord.core.entity.interaction/GlobalSelectMenuInteraction : dev.kord.core.entity.interaction/GlobalComponentInteraction, dev.kord.core.entity.interaction/SelectMenuInteraction { // dev.kord.core.entity.interaction/GlobalSelectMenuInteraction|null[0] constructor (dev.kord.core.cache.data/InteractionData, dev.kord.core/Kord, dev.kord.core.supplier/EntitySupplier) // dev.kord.core.entity.interaction/GlobalSelectMenuInteraction.|(dev.kord.core.cache.data.InteractionData;dev.kord.core.Kord;dev.kord.core.supplier.EntitySupplier){}[0] @@ -6937,6 +6962,22 @@ final class dev.kord.core.entity.interaction/GuildModalSubmitInteraction : dev.k final fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.entity.interaction/GuildModalSubmitInteraction // dev.kord.core.entity.interaction/GuildModalSubmitInteraction.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] } +final class dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction : dev.kord.core.entity.interaction/GuildApplicationCommandInteraction, dev.kord.core.entity.interaction/PrimaryEntryPointCommandInteraction { // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction|null[0] + constructor (dev.kord.core.cache.data/InteractionData, dev.kord.core/Kord, dev.kord.core.supplier/EntitySupplier) // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.|(dev.kord.core.cache.data.InteractionData;dev.kord.core.Kord;dev.kord.core.supplier.EntitySupplier){}[0] + + final val data // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.data|{}data[0] + final fun (): dev.kord.core.cache.data/InteractionData // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.data.|(){}[0] + final val kord // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.kord|{}kord[0] + final fun (): dev.kord.core/Kord // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.kord.|(){}[0] + final val supplier // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.supplier|{}supplier[0] + final fun (): dev.kord.core.supplier/EntitySupplier // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.supplier.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.hashCode|hashCode(){}[0] + final fun toString(): kotlin/String // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.toString|toString(){}[0] + final fun withStrategy(dev.kord.core.supplier/EntitySupplyStrategy<*>): dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction // dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction.withStrategy|withStrategy(dev.kord.core.supplier.EntitySupplyStrategy<*>){}[0] +} + final class dev.kord.core.entity.interaction/GuildSelectMenuInteraction : dev.kord.core.entity.interaction/GuildComponentInteraction, dev.kord.core.entity.interaction/SelectMenuInteraction { // dev.kord.core.entity.interaction/GuildSelectMenuInteraction|null[0] constructor (dev.kord.core.cache.data/InteractionData, dev.kord.core/Kord, dev.kord.core.supplier/EntitySupplier) // dev.kord.core.entity.interaction/GuildSelectMenuInteraction.|(dev.kord.core.cache.data.InteractionData;dev.kord.core.Kord;dev.kord.core.supplier.EntitySupplier){}[0] @@ -10586,6 +10627,19 @@ final class dev.kord.core.event.interaction/GlobalModalSubmitInteractionCreateEv final fun (): kotlin/Int // dev.kord.core.event.interaction/GlobalModalSubmitInteractionCreateEvent.shard.|(){}[0] } +final class dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent : dev.kord.core.event.interaction/GlobalApplicationCommandInteractionCreateEvent, dev.kord.core.event.interaction/PrimaryEntryPointCommandInteractionCreateEvent { // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent|null[0] + constructor (dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction, dev.kord.core/Kord, kotlin/Int, kotlin/Any?) // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.|(dev.kord.core.entity.interaction.GlobalPrimaryEntryPointCommandInteraction;dev.kord.core.Kord;kotlin.Int;kotlin.Any?){}[0] + + final val customContext // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.customContext|{}customContext[0] + final fun (): kotlin/Any? // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.customContext.|(){}[0] + final val interaction // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.interaction|{}interaction[0] + final fun (): dev.kord.core.entity.interaction/GlobalPrimaryEntryPointCommandInteraction // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.interaction.|(){}[0] + final val kord // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.kord|{}kord[0] + final fun (): dev.kord.core/Kord // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.kord.|(){}[0] + final val shard // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.shard|{}shard[0] + final fun (): kotlin/Int // dev.kord.core.event.interaction/GlobalPrimaryEntryPointCommandInteractionCreateEvent.shard.|(){}[0] +} + final class dev.kord.core.event.interaction/GlobalSelectMenuInteractionCreateEvent : dev.kord.core.event.interaction/GlobalComponentInteractionCreateEvent, dev.kord.core.event.interaction/SelectMenuInteractionCreateEvent { // dev.kord.core.event.interaction/GlobalSelectMenuInteractionCreateEvent|null[0] constructor (dev.kord.core.entity.interaction/GlobalSelectMenuInteraction, dev.kord.core/Kord, kotlin/Int, kotlin/Any?) // dev.kord.core.event.interaction/GlobalSelectMenuInteractionCreateEvent.|(dev.kord.core.entity.interaction.GlobalSelectMenuInteraction;dev.kord.core.Kord;kotlin.Int;kotlin.Any?){}[0] @@ -10677,6 +10731,19 @@ final class dev.kord.core.event.interaction/GuildModalSubmitInteractionCreateEve final fun (): kotlin/Int // dev.kord.core.event.interaction/GuildModalSubmitInteractionCreateEvent.shard.|(){}[0] } +final class dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent : dev.kord.core.event.interaction/GuildApplicationCommandInteractionCreateEvent, dev.kord.core.event.interaction/PrimaryEntryPointCommandInteractionCreateEvent { // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent|null[0] + constructor (dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction, dev.kord.core/Kord, kotlin/Int, kotlin/Any?) // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.|(dev.kord.core.entity.interaction.GuildPrimaryEntryPointCommandInteraction;dev.kord.core.Kord;kotlin.Int;kotlin.Any?){}[0] + + final val customContext // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.customContext|{}customContext[0] + final fun (): kotlin/Any? // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.customContext.|(){}[0] + final val interaction // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.interaction|{}interaction[0] + final fun (): dev.kord.core.entity.interaction/GuildPrimaryEntryPointCommandInteraction // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.interaction.|(){}[0] + final val kord // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.kord|{}kord[0] + final fun (): dev.kord.core/Kord // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.kord.|(){}[0] + final val shard // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.shard|{}shard[0] + final fun (): kotlin/Int // dev.kord.core.event.interaction/GuildPrimaryEntryPointCommandInteractionCreateEvent.shard.|(){}[0] +} + final class dev.kord.core.event.interaction/GuildSelectMenuInteractionCreateEvent : dev.kord.core.event.interaction/GuildComponentInteractionCreateEvent, dev.kord.core.event.interaction/SelectMenuInteractionCreateEvent { // dev.kord.core.event.interaction/GuildSelectMenuInteractionCreateEvent|null[0] constructor (dev.kord.core.entity.interaction/GuildSelectMenuInteraction, dev.kord.core/Kord, kotlin/Int, kotlin/Any?) // dev.kord.core.event.interaction/GuildSelectMenuInteractionCreateEvent.|(dev.kord.core.entity.interaction.GuildSelectMenuInteraction;dev.kord.core.Kord;kotlin.Int;kotlin.Any?){}[0] @@ -11873,14 +11940,14 @@ final class dev.kord.core/Kord : kotlinx.coroutines/CoroutineScope { // dev.kord final suspend inline fun <#A1: reified dev.kord.core.entity.channel/Channel> getChannelOf(dev.kord.common.entity/Snowflake, dev.kord.core.supplier/EntitySupplyStrategy<*> = ...): #A1? // dev.kord.core/Kord.getChannelOf|getChannelOf(dev.kord.common.entity.Snowflake;dev.kord.core.supplier.EntitySupplyStrategy<*>){0§}[0] final suspend inline fun createGlobalApplicationCommands(kotlin/Function1): kotlinx.coroutines.flow/Flow // dev.kord.core/Kord.createGlobalApplicationCommands|createGlobalApplicationCommands(kotlin.Function1){}[0] final suspend inline fun createGlobalChatInputCommand(kotlin/String, kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalChatInputCommand // dev.kord.core/Kord.createGlobalChatInputCommand|createGlobalChatInputCommand(kotlin.String;kotlin.String;kotlin.Function1){}[0] - final suspend inline fun createGlobalEntryPointCommand(kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalEntryPointCommand // dev.kord.core/Kord.createGlobalEntryPointCommand|createGlobalEntryPointCommand(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGlobalMessageCommand(kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalMessageCommand // dev.kord.core/Kord.createGlobalMessageCommand|createGlobalMessageCommand(kotlin.String;kotlin.Function1){}[0] + final suspend inline fun createGlobalPrimaryEntryPointCommand(kotlin/String, kotlin/String, dev.kord.common.entity/PrimaryEntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalPrimaryEntryPointCommand // dev.kord.core/Kord.createGlobalPrimaryEntryPointCommand|createGlobalPrimaryEntryPointCommand(kotlin.String;kotlin.String;dev.kord.common.entity.PrimaryEntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGlobalUserCommand(kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GlobalUserCommand // dev.kord.core/Kord.createGlobalUserCommand|createGlobalUserCommand(kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGuild(kotlin/String, kotlin/Function1): dev.kord.core.entity/Guild // dev.kord.core/Kord.createGuild|createGuild(kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGuildApplicationCommands(dev.kord.common.entity/Snowflake, kotlin/Function1): kotlinx.coroutines.flow/Flow // dev.kord.core/Kord.createGuildApplicationCommands|createGuildApplicationCommands(dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun createGuildChatInputCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildChatInputCommand // dev.kord.core/Kord.createGuildChatInputCommand|createGuildChatInputCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Function1){}[0] - final suspend inline fun createGuildEntryPointCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildEntryPointCommand // dev.kord.core/Kord.createGuildEntryPointCommand|createGuildEntryPointCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGuildMessageCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildMessageCommand // dev.kord.core/Kord.createGuildMessageCommand|createGuildMessageCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] + final suspend inline fun createGuildPrimaryEntryPointCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/PrimaryEntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildPrimaryEntryPointCommand // dev.kord.core/Kord.createGuildPrimaryEntryPointCommand|createGuildPrimaryEntryPointCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.PrimaryEntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGuildUserCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.core.entity.application/GuildUserCommand // dev.kord.core/Kord.createGuildUserCommand|createGuildUserCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun editPresence(kotlin/Function1) // dev.kord.core/Kord.editPresence|editPresence(kotlin.Function1){}[0] final suspend inline fun login(kotlin/Function1 = ...) // dev.kord.core/Kord.login|login(kotlin.Function1){}[0] diff --git a/rest/api/rest.api b/rest/api/rest.api index 7bbd461679e..d500ad32087 100644 --- a/rest/api/rest.api +++ b/rest/api/rest.api @@ -1504,16 +1504,24 @@ public final class dev/kord/rest/builder/interaction/ApplicationCommandCreateBui } public abstract interface class dev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder : dev/kord/rest/builder/RequestBuilder, dev/kord/rest/builder/interaction/LocalizedNameModifyBuilder { + public abstract fun getContexts ()Ljava/util/List; public abstract fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public abstract fun getDefaultPermission ()Ljava/lang/Boolean; + public abstract fun getIntegrationTypes ()Ljava/util/List; public abstract fun getNsfw ()Ljava/lang/Boolean; + public abstract fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public abstract fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public abstract fun setContexts (Ljava/util/List;)V public abstract fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public abstract fun setDefaultPermission (Ljava/lang/Boolean;)V + public abstract fun setIntegrationTypes (Ljava/util/List;)V public abstract fun setNsfw (Ljava/lang/Boolean;)V } public final class dev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder$DefaultImpls { public static fun name (Ldev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/AttachmentBuilder : dev/kord/rest/builder/interaction/OptionsBuilder { @@ -1607,26 +1615,34 @@ public abstract interface class dev/kord/rest/builder/interaction/ChatInputModif public final class dev/kord/rest/builder/interaction/ChatInputModifyBuilder$DefaultImpls { public static fun description (Ldev/kord/rest/builder/interaction/ChatInputModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V public static fun name (Ldev/kord/rest/builder/interaction/ChatInputModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/ChatInputModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/ChatInputModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/ChatInputModifyBuilderImpl : dev/kord/rest/builder/interaction/GlobalChatInputModifyBuilder { public fun ()V public fun description (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun getContexts ()Ljava/util/List; public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public fun getDefaultPermission ()Ljava/lang/Boolean; public fun getDescription ()Ljava/lang/String; public fun getDescriptionLocalizations ()Ljava/util/Map; public fun getDmPermission ()Ljava/lang/Boolean; + public fun getIntegrationTypes ()Ljava/util/List; public fun getName ()Ljava/lang/String; public fun getNameLocalizations ()Ljava/util/Map; public fun getNsfw ()Ljava/lang/Boolean; public fun getOptions ()Ljava/util/List; public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public fun setContexts (Ljava/util/List;)V public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public fun setDefaultPermission (Ljava/lang/Boolean;)V public fun setDescription (Ljava/lang/String;)V public fun setDescriptionLocalizations (Ljava/util/Map;)V public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setIntegrationTypes (Ljava/util/List;)V public fun setName (Ljava/lang/String;)V public fun setNameLocalizations (Ljava/util/Map;)V public fun setNsfw (Ljava/lang/Boolean;)V @@ -1647,7 +1663,7 @@ public final class dev/kord/rest/builder/interaction/ChoiceLocalizationsBuilder } public abstract interface class dev/kord/rest/builder/interaction/EntryPointCreateBuilder : dev/kord/rest/builder/interaction/ApplicationCommandCreateBuilder, dev/kord/rest/builder/interaction/LocalizedDescriptionCreateBuilder { - public abstract fun getHandler ()Ldev/kord/common/entity/EntryPointCommandHandlerType; + public abstract fun getHandler ()Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType; } public final class dev/kord/rest/builder/interaction/EntryPointCreateBuilder$DefaultImpls { @@ -1659,7 +1675,7 @@ public final class dev/kord/rest/builder/interaction/EntryPointCreateBuilder$Def } public final class dev/kord/rest/builder/interaction/EntryPointCreateBuilderImpl : dev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder { - public fun (Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;)V public fun description (Ldev/kord/common/Locale;Ljava/lang/String;)V public fun disableCommandInGuilds ()V public fun getContexts ()Ljava/util/List; @@ -1668,7 +1684,7 @@ public final class dev/kord/rest/builder/interaction/EntryPointCreateBuilderImpl public fun getDescription ()Ljava/lang/String; public fun getDescriptionLocalizations ()Ljava/util/Map; public fun getDmPermission ()Ljava/lang/Boolean; - public fun getHandler ()Ldev/kord/common/entity/EntryPointCommandHandlerType; + public fun getHandler ()Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType; public fun getIntegrationTypes ()Ljava/util/List; public fun getName ()Ljava/lang/String; public fun getNameLocalizations ()Ljava/util/Map; @@ -1692,32 +1708,40 @@ public final class dev/kord/rest/builder/interaction/EntryPointCreateBuilderImpl } public abstract interface class dev/kord/rest/builder/interaction/EntryPointModifyBuilder : dev/kord/rest/builder/interaction/ApplicationCommandModifyBuilder, dev/kord/rest/builder/interaction/LocalizedDescriptionModifyBuilder { - public abstract fun getHandler ()Ldev/kord/common/entity/EntryPointCommandHandlerType; + public abstract fun getHandler ()Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType; } public final class dev/kord/rest/builder/interaction/EntryPointModifyBuilder$DefaultImpls { public static fun description (Ldev/kord/rest/builder/interaction/EntryPointModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V public static fun name (Ldev/kord/rest/builder/interaction/EntryPointModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/EntryPointModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/EntryPointModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/EntryPointModifyBuilderImpl : dev/kord/rest/builder/interaction/EntryPointModifyBuilder, dev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder { public fun ()V public fun description (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun getContexts ()Ljava/util/List; public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public fun getDefaultPermission ()Ljava/lang/Boolean; public fun getDescription ()Ljava/lang/String; public fun getDescriptionLocalizations ()Ljava/util/Map; public fun getDmPermission ()Ljava/lang/Boolean; - public fun getHandler ()Ldev/kord/common/entity/EntryPointCommandHandlerType; + public fun getHandler ()Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType; + public fun getIntegrationTypes ()Ljava/util/List; public fun getName ()Ljava/lang/String; public fun getNameLocalizations ()Ljava/util/Map; public fun getNsfw ()Ljava/lang/Boolean; public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public fun setContexts (Ljava/util/List;)V public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public fun setDefaultPermission (Ljava/lang/Boolean;)V public fun setDescription (Ljava/lang/String;)V public fun setDescriptionLocalizations (Ljava/util/Map;)V public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setIntegrationTypes (Ljava/util/List;)V public fun setName (Ljava/lang/String;)V public fun setNameLocalizations (Ljava/util/Map;)V public fun setNsfw (Ljava/lang/Boolean;)V @@ -1744,6 +1768,8 @@ public abstract interface class dev/kord/rest/builder/interaction/GlobalApplicat public final class dev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder$DefaultImpls { public static fun name (Ldev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalApplicationCommandModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public abstract interface class dev/kord/rest/builder/interaction/GlobalChatInputCreateBuilder : dev/kord/rest/builder/interaction/ChatInputCreateBuilder, dev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder { @@ -1763,6 +1789,8 @@ public abstract interface class dev/kord/rest/builder/interaction/GlobalChatInpu public final class dev/kord/rest/builder/interaction/GlobalChatInputModifyBuilder$DefaultImpls { public static fun description (Ldev/kord/rest/builder/interaction/GlobalChatInputModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V public static fun name (Ldev/kord/rest/builder/interaction/GlobalChatInputModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalChatInputModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalChatInputModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public abstract interface class dev/kord/rest/builder/interaction/GlobalEntryPointCreateBuilder : dev/kord/rest/builder/interaction/EntryPointCreateBuilder, dev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder { @@ -1782,6 +1810,8 @@ public abstract interface class dev/kord/rest/builder/interaction/GlobalEntryPoi public final class dev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder$DefaultImpls { public static fun description (Ldev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V public static fun name (Ldev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalEntryPointModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public abstract interface class dev/kord/rest/builder/interaction/GlobalMessageCommandCreateBuilder : dev/kord/rest/builder/interaction/GlobalApplicationCommandCreateBuilder, dev/kord/rest/builder/interaction/MessageCommandCreateBuilder { @@ -1799,12 +1829,14 @@ public abstract interface class dev/kord/rest/builder/interaction/GlobalMessageC public final class dev/kord/rest/builder/interaction/GlobalMessageCommandModifyBuilder$DefaultImpls { public static fun name (Ldev/kord/rest/builder/interaction/GlobalMessageCommandModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalMessageCommandModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalMessageCommandModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/GlobalMultiApplicationCommandBuilder : dev/kord/rest/builder/interaction/MultiApplicationCommandBuilder { public fun ()V - public final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V - public static synthetic fun entryPoint$default (Ldev/kord/rest/builder/interaction/GlobalMultiApplicationCommandBuilder;Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun entryPoint$default (Ldev/kord/rest/builder/interaction/GlobalMultiApplicationCommandBuilder;Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public final fun input (Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun input$default (Ldev/kord/rest/builder/interaction/GlobalMultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public final fun message (Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1828,6 +1860,8 @@ public abstract interface class dev/kord/rest/builder/interaction/GlobalUserComm public final class dev/kord/rest/builder/interaction/GlobalUserCommandModifyBuilder$DefaultImpls { public static fun name (Ldev/kord/rest/builder/interaction/GlobalUserCommandModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/GlobalUserCommandModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/GlobalUserCommandModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/GroupCommandBuilder : dev/kord/rest/builder/interaction/BaseCommandOptionBuilder { @@ -1837,7 +1871,7 @@ public final class dev/kord/rest/builder/interaction/GroupCommandBuilder : dev/k public final class dev/kord/rest/builder/interaction/GuildMultiApplicationCommandBuilder : dev/kord/rest/builder/interaction/MultiApplicationCommandBuilder { public fun ()V - public final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V + public final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V public final fun input (Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun input$default (Ldev/kord/rest/builder/interaction/GuildMultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public final fun message (Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1981,20 +2015,28 @@ public abstract interface class dev/kord/rest/builder/interaction/MessageCommand public final class dev/kord/rest/builder/interaction/MessageCommandModifyBuilder$DefaultImpls { public static fun name (Ldev/kord/rest/builder/interaction/MessageCommandModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/MessageCommandModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/MessageCommandModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/MessageCommandModifyBuilderImpl : dev/kord/rest/builder/interaction/GlobalMessageCommandModifyBuilder { public fun ()V + public fun getContexts ()Ljava/util/List; public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public fun getDefaultPermission ()Ljava/lang/Boolean; public fun getDmPermission ()Ljava/lang/Boolean; + public fun getIntegrationTypes ()Ljava/util/List; public fun getName ()Ljava/lang/String; public fun getNameLocalizations ()Ljava/util/Map; public fun getNsfw ()Ljava/lang/Boolean; public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public fun setContexts (Ljava/util/List;)V public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public fun setDefaultPermission (Ljava/lang/Boolean;)V public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setIntegrationTypes (Ljava/util/List;)V public fun setName (Ljava/lang/String;)V public fun setNameLocalizations (Ljava/util/Map;)V public fun setNsfw (Ljava/lang/Boolean;)V @@ -2020,7 +2062,7 @@ public abstract class dev/kord/rest/builder/interaction/MultiApplicationCommandB } public final class dev/kord/rest/builder/interaction/MultiApplicationCommandBuilderKt { - public static final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V + public static final fun entryPoint (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;)V public static final fun input (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun input$default (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun message (Ldev/kord/rest/builder/interaction/MultiApplicationCommandBuilder;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -2137,20 +2179,28 @@ public abstract interface class dev/kord/rest/builder/interaction/UserCommandMod public final class dev/kord/rest/builder/interaction/UserCommandModifyBuilder$DefaultImpls { public static fun name (Ldev/kord/rest/builder/interaction/UserCommandModifyBuilder;Ldev/kord/common/Locale;Ljava/lang/String;)V + public static fun requireContext (Ldev/kord/rest/builder/interaction/UserCommandModifyBuilder;[Ldev/kord/common/entity/InteractionContextType;)V + public static fun requireIntegrationTypes (Ldev/kord/rest/builder/interaction/UserCommandModifyBuilder;[Ldev/kord/common/entity/ApplicationIntegrationType;)V } public final class dev/kord/rest/builder/interaction/UserCommandModifyBuilderImpl : dev/kord/rest/builder/interaction/GlobalUserCommandModifyBuilder { public fun ()V + public fun getContexts ()Ljava/util/List; public fun getDefaultMemberPermissions ()Ldev/kord/common/entity/Permissions; public fun getDefaultPermission ()Ljava/lang/Boolean; public fun getDmPermission ()Ljava/lang/Boolean; + public fun getIntegrationTypes ()Ljava/util/List; public fun getName ()Ljava/lang/String; public fun getNameLocalizations ()Ljava/util/Map; public fun getNsfw ()Ljava/lang/Boolean; public fun name (Ldev/kord/common/Locale;Ljava/lang/String;)V + public fun requireContext ([Ldev/kord/common/entity/InteractionContextType;)V + public fun requireIntegrationTypes ([Ldev/kord/common/entity/ApplicationIntegrationType;)V + public fun setContexts (Ljava/util/List;)V public fun setDefaultMemberPermissions (Ldev/kord/common/entity/Permissions;)V public fun setDefaultPermission (Ljava/lang/Boolean;)V public fun setDmPermission (Ljava/lang/Boolean;)V + public fun setIntegrationTypes (Ljava/util/List;)V public fun setName (Ljava/lang/String;)V public fun setNameLocalizations (Ljava/util/Map;)V public fun setNsfw (Ljava/lang/Boolean;)V @@ -3015,10 +3065,12 @@ public final class dev/kord/rest/json/request/ApplicationCommandCreateRequest$Co public final class dev/kord/rest/json/request/ApplicationCommandModifyRequest { public static final field Companion Ldev/kord/rest/json/request/ApplicationCommandModifyRequest$Companion; public fun ()V - public fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;)V - public synthetic fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/kord/common/entity/optional/Optional; public final fun component10 ()Ldev/kord/common/entity/optional/Optional; + public final fun component11 ()Ldev/kord/common/entity/optional/Optional; + public final fun component12 ()Ldev/kord/common/entity/optional/Optional; public final fun component2 ()Ldev/kord/common/entity/optional/Optional; public final fun component3 ()Ldev/kord/common/entity/optional/Optional; public final fun component4 ()Ldev/kord/common/entity/optional/Optional; @@ -3027,15 +3079,17 @@ public final class dev/kord/rest/json/request/ApplicationCommandModifyRequest { public final fun component7 ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun component8 ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun component9 ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun copy (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; - public static synthetic fun copy$default (Ldev/kord/rest/json/request/ApplicationCommandModifyRequest;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; + public final fun copy (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; + public static synthetic fun copy$default (Ldev/kord/rest/json/request/ApplicationCommandModifyRequest;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/rest/json/request/ApplicationCommandModifyRequest; public fun equals (Ljava/lang/Object;)Z + public final fun getContexts ()Ldev/kord/common/entity/optional/Optional; public final fun getDefaultMemberPermissions ()Ldev/kord/common/entity/optional/Optional; public final fun getDefaultPermission ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getDescription ()Ldev/kord/common/entity/optional/Optional; public final fun getDescriptionLocalizations ()Ldev/kord/common/entity/optional/Optional; public final fun getDmPermission ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getHandler ()Ldev/kord/common/entity/optional/Optional; + public final fun getIntegrationTypes ()Ldev/kord/common/entity/optional/Optional; public final fun getName ()Ldev/kord/common/entity/optional/Optional; public final fun getNameLocalizations ()Ldev/kord/common/entity/optional/Optional; public final fun getNsfw ()Ldev/kord/common/entity/optional/OptionalBoolean; @@ -7729,10 +7783,10 @@ public final class dev/kord/rest/service/InteractionService : dev/kord/rest/serv public final fun createGlobalApplicationCommands (Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGlobalChatInputApplicationCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalChatInputApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; - public final fun createGlobalEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun createGlobalEntryPointCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGlobalMessageCommandApplicationCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalMessageCommandApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public final fun createGlobalPrimaryEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun createGlobalPrimaryEntryPointCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGlobalUserCommandApplicationCommand (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGlobalUserCommandApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/ApplicationCommandCreateRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -7740,10 +7794,10 @@ public final class dev/kord/rest/service/InteractionService : dev/kord/rest/serv public final fun createGuildApplicationCommands (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createGuildChatInputApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildChatInputApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; - public final fun createGuildEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun createGuildEntryPointCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/EntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildMessageCommandApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildMessageCommandApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public final fun createGuildPrimaryEntryPointCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun createGuildPrimaryEntryPointCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ldev/kord/common/entity/PrimaryEntryPointCommandHandlerType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createGuildUserCommandApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createGuildUserCommandApplicationCommand$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createIntAutoCompleteInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -7778,13 +7832,13 @@ public final class dev/kord/rest/service/InteractionService : dev/kord/rest/serv public static synthetic fun modifyFollowupMessage$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun modifyGlobalApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/ApplicationCommandModifyRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGlobalChatInputApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun modifyGlobalEntryPointApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGlobalMessageApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun modifyGlobalPrimaryEntryPointApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGlobalUserApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/ApplicationCommandModifyRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildChatInputApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun modifyGuildEntryPointApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildMessageApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final fun modifyGuildPrimaryEntryPointApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildUserApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/rest/json/request/InteractionResponseModifyRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/rest/json/request/MultipartInteractionResponseModifyRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; diff --git a/rest/api/rest.klib.api b/rest/api/rest.klib.api index 3fca901f6af..d15986279a5 100644 --- a/rest/api/rest.klib.api +++ b/rest/api/rest.klib.api @@ -275,15 +275,24 @@ abstract interface dev.kord.rest.builder.interaction/ApplicationCommandCreateBui } abstract interface dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder : dev.kord.rest.builder.interaction/LocalizedNameModifyBuilder, dev.kord.rest.builder/RequestBuilder { // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder|null[0] + abstract var contexts // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.contexts|{}contexts[0] + abstract fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.contexts.|(){}[0] + abstract fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.contexts.|(kotlin.collections.MutableList?){}[0] abstract var defaultMemberPermissions // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.defaultMemberPermissions|{}defaultMemberPermissions[0] abstract fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.defaultMemberPermissions.|(){}[0] abstract fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] abstract var defaultPermission // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.defaultPermission|{}defaultPermission[0] abstract fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.defaultPermission.|(){}[0] abstract fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.defaultPermission.|(kotlin.Boolean?){}[0] + abstract var integrationTypes // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.integrationTypes|{}integrationTypes[0] + abstract fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.integrationTypes.|(){}[0] + abstract fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.integrationTypes.|(kotlin.collections.MutableList?){}[0] abstract var nsfw // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.nsfw|{}nsfw[0] abstract fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.nsfw.|(){}[0] abstract fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.nsfw.|(kotlin.Boolean?){}[0] + + open fun requireContext(kotlin/Array...) // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.requireContext|requireContext(kotlin.Array...){}[0] + open fun requireIntegrationTypes(kotlin/Array...) // dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder.requireIntegrationTypes|requireIntegrationTypes(kotlin.Array...){}[0] } abstract interface dev.kord.rest.builder.interaction/ChatInputCreateBuilder : dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder, dev.kord.rest.builder.interaction/LocalizedDescriptionCreateBuilder, dev.kord.rest.builder.interaction/RootInputChatBuilder // dev.kord.rest.builder.interaction/ChatInputCreateBuilder|null[0] @@ -292,12 +301,12 @@ abstract interface dev.kord.rest.builder.interaction/ChatInputModifyBuilder : de abstract interface dev.kord.rest.builder.interaction/EntryPointCreateBuilder : dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder, dev.kord.rest.builder.interaction/LocalizedDescriptionCreateBuilder { // dev.kord.rest.builder.interaction/EntryPointCreateBuilder|null[0] abstract val handler // dev.kord.rest.builder.interaction/EntryPointCreateBuilder.handler|{}handler[0] - abstract fun (): dev.kord.common.entity/EntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointCreateBuilder.handler.|(){}[0] + abstract fun (): dev.kord.common.entity/PrimaryEntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointCreateBuilder.handler.|(){}[0] } abstract interface dev.kord.rest.builder.interaction/EntryPointModifyBuilder : dev.kord.rest.builder.interaction/ApplicationCommandModifyBuilder, dev.kord.rest.builder.interaction/LocalizedDescriptionModifyBuilder { // dev.kord.rest.builder.interaction/EntryPointModifyBuilder|null[0] abstract val handler // dev.kord.rest.builder.interaction/EntryPointModifyBuilder.handler|{}handler[0] - abstract fun (): dev.kord.common.entity/EntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointModifyBuilder.handler.|(){}[0] + abstract fun (): dev.kord.common.entity/PrimaryEntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointModifyBuilder.handler.|(){}[0] } abstract interface dev.kord.rest.builder.interaction/GlobalApplicationCommandCreateBuilder : dev.kord.rest.builder.interaction/ApplicationCommandCreateBuilder { // dev.kord.rest.builder.interaction/GlobalApplicationCommandCreateBuilder|null[0] @@ -2246,6 +2255,9 @@ final class dev.kord.rest.builder.interaction/ChatInputCreateBuilderImpl : dev.k final class dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl : dev.kord.rest.builder.interaction/GlobalChatInputModifyBuilder { // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl|null[0] constructor () // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.|(){}[0] + final var contexts // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.contexts|{}contexts[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.contexts.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.contexts.|(kotlin.collections.MutableList?){}[0] final var defaultMemberPermissions // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.defaultMemberPermissions.|(){}[0] final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] @@ -2261,6 +2273,9 @@ final class dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl : dev.k final var dmPermission // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.dmPermission|{}dmPermission[0] final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.dmPermission.|(){}[0] final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var integrationTypes // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.integrationTypes|{}integrationTypes[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.integrationTypes.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.integrationTypes.|(kotlin.collections.MutableList?){}[0] final var name // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.name|{}name[0] final fun (): kotlin/String? // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.name.|(){}[0] final fun (kotlin/String?) // dev.kord.rest.builder.interaction/ChatInputModifyBuilderImpl.name.|(kotlin.String?){}[0] @@ -2292,10 +2307,10 @@ final class dev.kord.rest.builder.interaction/ChoiceLocalizationsBuilder : dev.k } final class dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl : dev.kord.rest.builder.interaction/GlobalEntryPointCreateBuilder { // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl|null[0] - constructor (kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.|(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType){}[0] + constructor (kotlin/String, kotlin/String, dev.kord.common.entity/PrimaryEntryPointCommandHandlerType) // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.|(kotlin.String;kotlin.String;dev.kord.common.entity.PrimaryEntryPointCommandHandlerType){}[0] final val handler // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.handler|{}handler[0] - final fun (): dev.kord.common.entity/EntryPointCommandHandlerType // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.handler.|(){}[0] + final fun (): dev.kord.common.entity/PrimaryEntryPointCommandHandlerType // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.handler.|(){}[0] final val type // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.type|{}type[0] final fun (): dev.kord.common.entity/ApplicationCommandType // dev.kord.rest.builder.interaction/EntryPointCreateBuilderImpl.type.|(){}[0] @@ -2337,8 +2352,11 @@ final class dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl : dev. constructor () // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.|(){}[0] final val handler // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.handler|{}handler[0] - final fun (): dev.kord.common.entity/EntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.handler.|(){}[0] + final fun (): dev.kord.common.entity/PrimaryEntryPointCommandHandlerType? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.handler.|(){}[0] + final var contexts // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.contexts|{}contexts[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.contexts.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.contexts.|(kotlin.collections.MutableList?){}[0] final var defaultMemberPermissions // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultMemberPermissions.|(){}[0] final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] @@ -2354,6 +2372,9 @@ final class dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl : dev. final var dmPermission // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.dmPermission|{}dmPermission[0] final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.dmPermission.|(){}[0] final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var integrationTypes // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.integrationTypes|{}integrationTypes[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.integrationTypes.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.integrationTypes.|(kotlin.collections.MutableList?){}[0] final var name // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.name|{}name[0] final fun (): kotlin/String? // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.name.|(){}[0] final fun (kotlin/String?) // dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl.name.|(kotlin.String?){}[0] @@ -2370,7 +2391,7 @@ final class dev.kord.rest.builder.interaction/EntryPointModifyBuilderImpl : dev. final class dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder : dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder { // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder|null[0] constructor () // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.|(){}[0] - final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] + final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/PrimaryEntryPointCommandHandlerType, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.PrimaryEntryPointCommandHandlerType;kotlin.Function1){}[0] final inline fun input(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.input|input(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun message(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.message|message(kotlin.String;kotlin.Function1){}[0] final inline fun user(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GlobalMultiApplicationCommandBuilder.user|user(kotlin.String;kotlin.Function1){}[0] @@ -2385,7 +2406,7 @@ final class dev.kord.rest.builder.interaction/GroupCommandBuilder : dev.kord.res final class dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder : dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder { // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder|null[0] constructor () // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.|(){}[0] - final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] + final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/PrimaryEntryPointCommandHandlerType, kotlin/Function1) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.PrimaryEntryPointCommandHandlerType;kotlin.Function1){}[0] final inline fun input(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.input|input(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun message(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.message|message(kotlin.String;kotlin.Function1){}[0] final inline fun user(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/GuildMultiApplicationCommandBuilder.user|user(kotlin.String;kotlin.Function1){}[0] @@ -2438,6 +2459,9 @@ final class dev.kord.rest.builder.interaction/MessageCommandCreateBuilderImpl : final class dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl : dev.kord.rest.builder.interaction/GlobalMessageCommandModifyBuilder { // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl|null[0] constructor () // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.|(){}[0] + final var contexts // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.contexts|{}contexts[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.contexts.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.contexts.|(kotlin.collections.MutableList?){}[0] final var defaultMemberPermissions // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.defaultMemberPermissions.|(){}[0] final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] @@ -2447,6 +2471,9 @@ final class dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl : final var dmPermission // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.dmPermission|{}dmPermission[0] final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.dmPermission.|(){}[0] final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var integrationTypes // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.integrationTypes|{}integrationTypes[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.integrationTypes.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.integrationTypes.|(kotlin.collections.MutableList?){}[0] final var name // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.name|{}name[0] final fun (): kotlin/String? // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.name.|(){}[0] final fun (kotlin/String?) // dev.kord.rest.builder.interaction/MessageCommandModifyBuilderImpl.name.|(kotlin.String?){}[0] @@ -2546,6 +2573,9 @@ final class dev.kord.rest.builder.interaction/UserCommandCreateBuilderImpl : dev final class dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl : dev.kord.rest.builder.interaction/GlobalUserCommandModifyBuilder { // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl|null[0] constructor () // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.|(){}[0] + final var contexts // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.contexts|{}contexts[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.contexts.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.contexts.|(kotlin.collections.MutableList?){}[0] final var defaultMemberPermissions // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity/Permissions? // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.defaultMemberPermissions.|(){}[0] final fun (dev.kord.common.entity/Permissions?) // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.defaultMemberPermissions.|(dev.kord.common.entity.Permissions?){}[0] @@ -2555,6 +2585,9 @@ final class dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl : dev final var dmPermission // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.dmPermission|{}dmPermission[0] final fun (): kotlin/Boolean? // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.dmPermission.|(){}[0] final fun (kotlin/Boolean?) // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.dmPermission.|(kotlin.Boolean?){}[0] + final var integrationTypes // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.integrationTypes|{}integrationTypes[0] + final fun (): kotlin.collections/MutableList? // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.integrationTypes.|(){}[0] + final fun (kotlin.collections/MutableList?) // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.integrationTypes.|(kotlin.collections.MutableList?){}[0] final var name // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.name|{}name[0] final fun (): kotlin/String? // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.name.|(){}[0] final fun (kotlin/String?) // dev.kord.rest.builder.interaction/UserCommandModifyBuilderImpl.name.|(kotlin.String?){}[0] @@ -3181,7 +3214,7 @@ final class dev.kord.rest.builder.webhook/WebhookModifyBuilder : dev.kord.rest.b } final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev.kord.rest.json.request/ApplicationCommandCreateRequest|null[0] - constructor (kotlin/String, dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/ApplicationCommandType, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.rest.json.request/ApplicationCommandCreateRequest.|(kotlin.String;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.ApplicationCommandType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional){}[0] + constructor (kotlin/String, dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/ApplicationCommandType, dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.rest.json.request/ApplicationCommandCreateRequest.|(kotlin.String;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.ApplicationCommandType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional){}[0] final val contexts // dev.kord.rest.json.request/ApplicationCommandCreateRequest.contexts|{}contexts[0] final fun (): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.contexts.|(){}[0] @@ -3196,7 +3229,7 @@ final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev. final val dmPermission // dev.kord.rest.json.request/ApplicationCommandCreateRequest.dmPermission|{}dmPermission[0] final fun (): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.rest.json.request/ApplicationCommandCreateRequest.dmPermission.|(){}[0] final val handler // dev.kord.rest.json.request/ApplicationCommandCreateRequest.handler|{}handler[0] - final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.handler.|(){}[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.handler.|(){}[0] final val integrationTypes // dev.kord.rest.json.request/ApplicationCommandCreateRequest.integrationTypes|{}integrationTypes[0] final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.integrationTypes.|(){}[0] final val name // dev.kord.rest.json.request/ApplicationCommandCreateRequest.name|{}name[0] @@ -3214,7 +3247,7 @@ final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev. final fun component10(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component10|component10(){}[0] final fun component11(): dev.kord.common.entity.optional/Optional> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component11|component11(){}[0] final fun component12(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component12|component12(){}[0] - final fun component13(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component13|component13(){}[0] + final fun component13(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component13|component13(){}[0] final fun component2(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component2|component2(){}[0] final fun component3(): dev.kord.common.entity/ApplicationCommandType // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component3|component3(){}[0] final fun component4(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component4|component4(){}[0] @@ -3223,7 +3256,7 @@ final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev. final fun component7(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component7|component7(){}[0] final fun component8(): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/ApplicationCommandCreateRequest.component9|component9(){}[0] - final fun copy(kotlin/String = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/ApplicationCommandType = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.rest.json.request/ApplicationCommandCreateRequest // dev.kord.rest.json.request/ApplicationCommandCreateRequest.copy|copy(kotlin.String;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.ApplicationCommandType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional){}[0] + final fun copy(kotlin/String = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity/ApplicationCommandType = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.rest.json.request/ApplicationCommandCreateRequest // dev.kord.rest.json.request/ApplicationCommandCreateRequest.copy|copy(kotlin.String;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.ApplicationCommandType;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.rest.json.request/ApplicationCommandCreateRequest.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.rest.json.request/ApplicationCommandCreateRequest.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.rest.json.request/ApplicationCommandCreateRequest.toString|toString(){}[0] @@ -3245,8 +3278,10 @@ final class dev.kord.rest.json.request/ApplicationCommandCreateRequest { // dev. } final class dev.kord.rest.json.request/ApplicationCommandModifyRequest { // dev.kord.rest.json.request/ApplicationCommandModifyRequest|null[0] - constructor (dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.rest.json.request/ApplicationCommandModifyRequest.|(dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional){}[0] + constructor (dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ...) // dev.kord.rest.json.request/ApplicationCommandModifyRequest.|(dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional){}[0] + final val contexts // dev.kord.rest.json.request/ApplicationCommandModifyRequest.contexts|{}contexts[0] + final fun (): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.contexts.|(){}[0] final val defaultMemberPermissions // dev.kord.rest.json.request/ApplicationCommandModifyRequest.defaultMemberPermissions|{}defaultMemberPermissions[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.defaultMemberPermissions.|(){}[0] final val defaultPermission // dev.kord.rest.json.request/ApplicationCommandModifyRequest.defaultPermission|{}defaultPermission[0] @@ -3258,7 +3293,9 @@ final class dev.kord.rest.json.request/ApplicationCommandModifyRequest { // dev. final val dmPermission // dev.kord.rest.json.request/ApplicationCommandModifyRequest.dmPermission|{}dmPermission[0] final fun (): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.rest.json.request/ApplicationCommandModifyRequest.dmPermission.|(){}[0] final val handler // dev.kord.rest.json.request/ApplicationCommandModifyRequest.handler|{}handler[0] - final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.handler.|(){}[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.handler.|(){}[0] + final val integrationTypes // dev.kord.rest.json.request/ApplicationCommandModifyRequest.integrationTypes|{}integrationTypes[0] + final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.integrationTypes.|(){}[0] final val name // dev.kord.rest.json.request/ApplicationCommandModifyRequest.name|{}name[0] final fun (): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.name.|(){}[0] final val nameLocalizations // dev.kord.rest.json.request/ApplicationCommandModifyRequest.nameLocalizations|{}nameLocalizations[0] @@ -3269,7 +3306,9 @@ final class dev.kord.rest.json.request/ApplicationCommandModifyRequest { // dev. final fun (): dev.kord.common.entity.optional/Optional> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.options.|(){}[0] final fun component1(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component1|component1(){}[0] - final fun component10(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component10|component10(){}[0] + final fun component10(): dev.kord.common.entity.optional/Optional> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component10|component10(){}[0] + final fun component11(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component11|component11(){}[0] + final fun component12(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component12|component12(){}[0] final fun component2(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component2|component2(){}[0] final fun component3(): dev.kord.common.entity.optional/Optional // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component3|component3(){}[0] final fun component4(): dev.kord.common.entity.optional/Optional?> // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component4|component4(){}[0] @@ -3278,7 +3317,7 @@ final class dev.kord.rest.json.request/ApplicationCommandModifyRequest { // dev. final fun component7(): dev.kord.common.entity.optional/OptionalBoolean? // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component7|component7(){}[0] final fun component8(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component8|component8(){}[0] final fun component9(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/ApplicationCommandModifyRequest.component9|component9(){}[0] - final fun copy(dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.rest.json.request/ApplicationCommandModifyRequest // dev.kord.rest.json.request/ApplicationCommandModifyRequest.copy|copy(dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional){}[0] + final fun copy(dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional = ..., dev.kord.common.entity.optional/OptionalBoolean? = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional> = ..., dev.kord.common.entity.optional/Optional?> = ..., dev.kord.common.entity.optional/Optional = ...): dev.kord.rest.json.request/ApplicationCommandModifyRequest // dev.kord.rest.json.request/ApplicationCommandModifyRequest.copy|copy(dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional;dev.kord.common.entity.optional.OptionalBoolean?;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional>;dev.kord.common.entity.optional.Optional?>;dev.kord.common.entity.optional.Optional){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.rest.json.request/ApplicationCommandModifyRequest.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.rest.json.request/ApplicationCommandModifyRequest.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.rest.json.request/ApplicationCommandModifyRequest.toString|toString(){}[0] @@ -7031,13 +7070,13 @@ final class dev.kord.rest.service/InteractionService : dev.kord.rest.service/Res final suspend inline fun createFollowupMessage(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Boolean = ..., kotlin/Function1): dev.kord.common.entity/DiscordMessage // dev.kord.rest.service/InteractionService.createFollowupMessage|createFollowupMessage(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Boolean;kotlin.Function1){}[0] final suspend inline fun createGlobalApplicationCommands(dev.kord.common.entity/Snowflake, kotlin/Function1): kotlin.collections/List // dev.kord.rest.service/InteractionService.createGlobalApplicationCommands|createGlobalApplicationCommands(dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun createGlobalChatInputApplicationCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalChatInputApplicationCommand|createGlobalChatInputApplicationCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Function1){}[0] - final suspend inline fun createGlobalEntryPointCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalEntryPointCommand|createGlobalEntryPointCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGlobalMessageCommandApplicationCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalMessageCommandApplicationCommand|createGlobalMessageCommandApplicationCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] + final suspend inline fun createGlobalPrimaryEntryPointCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/PrimaryEntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalPrimaryEntryPointCommand|createGlobalPrimaryEntryPointCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.PrimaryEntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGlobalUserCommandApplicationCommand(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGlobalUserCommandApplicationCommand|createGlobalUserCommandApplicationCommand(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun createGuildApplicationCommands(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): kotlin.collections/List // dev.kord.rest.service/InteractionService.createGuildApplicationCommands|createGuildApplicationCommands(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun createGuildChatInputApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildChatInputApplicationCommand|createGuildChatInputApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;kotlin.Function1){}[0] - final suspend inline fun createGuildEntryPointCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildEntryPointCommand|createGuildEntryPointCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGuildMessageCommandApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildMessageCommandApplicationCommand|createGuildMessageCommandApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] + final suspend inline fun createGuildPrimaryEntryPointCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/String, dev.kord.common.entity/PrimaryEntryPointCommandHandlerType, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildPrimaryEntryPointCommand|createGuildPrimaryEntryPointCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.String;dev.kord.common.entity.PrimaryEntryPointCommandHandlerType;kotlin.Function1){}[0] final suspend inline fun createGuildUserCommandApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1 = ...): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.createGuildUserCommandApplicationCommand|createGuildUserCommandApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun createIntAutoCompleteInteractionResponse(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1) // dev.kord.rest.service/InteractionService.createIntAutoCompleteInteractionResponse|createIntAutoCompleteInteractionResponse(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun createInteractionResponse(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Boolean = ..., kotlin/Function1) // dev.kord.rest.service/InteractionService.createInteractionResponse|createInteractionResponse(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Boolean;kotlin.Function1){}[0] @@ -7046,12 +7085,12 @@ final class dev.kord.rest.service/InteractionService : dev.kord.rest.service/Res final suspend inline fun createStringAutoCompleteInteractionResponse(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1) // dev.kord.rest.service/InteractionService.createStringAutoCompleteInteractionResponse|createStringAutoCompleteInteractionResponse(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] final suspend inline fun modifyFollowupMessage(dev.kord.common.entity/Snowflake, kotlin/String, dev.kord.common.entity/Snowflake, kotlin/Function1 = ...): dev.kord.common.entity/DiscordMessage // dev.kord.rest.service/InteractionService.modifyFollowupMessage|modifyFollowupMessage(dev.kord.common.entity.Snowflake;kotlin.String;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGlobalChatInputApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalChatInputApplicationCommand|modifyGlobalChatInputApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] - final suspend inline fun modifyGlobalEntryPointApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalEntryPointApplicationCommand|modifyGlobalEntryPointApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGlobalMessageApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalMessageApplicationCommand|modifyGlobalMessageApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] + final suspend inline fun modifyGlobalPrimaryEntryPointApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalPrimaryEntryPointApplicationCommand|modifyGlobalPrimaryEntryPointApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGlobalUserApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGlobalUserApplicationCommand|modifyGlobalUserApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGuildChatInputApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildChatInputApplicationCommand|modifyGuildChatInputApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] - final suspend inline fun modifyGuildEntryPointApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildEntryPointApplicationCommand|modifyGuildEntryPointApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGuildMessageApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildMessageApplicationCommand|modifyGuildMessageApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] + final suspend inline fun modifyGuildPrimaryEntryPointApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildPrimaryEntryPointApplicationCommand|modifyGuildPrimaryEntryPointApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyGuildUserApplicationCommand(dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, dev.kord.common.entity/Snowflake, kotlin/Function1): dev.kord.common.entity/DiscordApplicationCommand // dev.kord.rest.service/InteractionService.modifyGuildUserApplicationCommand|modifyGuildUserApplicationCommand(dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;dev.kord.common.entity.Snowflake;kotlin.Function1){}[0] final suspend inline fun modifyInteractionResponse(dev.kord.common.entity/Snowflake, kotlin/String, kotlin/Function1): dev.kord.common.entity/DiscordMessage // dev.kord.rest.service/InteractionService.modifyInteractionResponse|modifyInteractionResponse(dev.kord.common.entity.Snowflake;kotlin.String;kotlin.Function1){}[0] } @@ -8233,7 +8272,7 @@ final inline fun (dev.kord.rest.builder.interaction/BaseInputChatBuilder).dev.ko final inline fun (dev.kord.rest.builder.interaction/BaseInputChatBuilder).dev.kord.rest.builder.interaction/role(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/role|role@dev.kord.rest.builder.interaction.BaseInputChatBuilder(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/BaseInputChatBuilder).dev.kord.rest.builder.interaction/string(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/string|string@dev.kord.rest.builder.interaction.BaseInputChatBuilder(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/BaseInputChatBuilder).dev.kord.rest.builder.interaction/user(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/user|user@dev.kord.rest.builder.interaction.BaseInputChatBuilder(kotlin.String;kotlin.String;kotlin.Function1){}[0] -final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/EntryPointCommandHandlerType, kotlin/Function1) // dev.kord.rest.builder.interaction/entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.EntryPointCommandHandlerType;kotlin.Function1){}[0] +final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/entryPoint(kotlin/String, kotlin/String, dev.kord.common.entity/PrimaryEntryPointCommandHandlerType, kotlin/Function1) // dev.kord.rest.builder.interaction/entryPoint|entryPoint@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;dev.kord.common.entity.PrimaryEntryPointCommandHandlerType;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/input(kotlin/String, kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/input|input@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.String;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/message(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/message|message@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.Function1){}[0] final inline fun (dev.kord.rest.builder.interaction/MultiApplicationCommandBuilder).dev.kord.rest.builder.interaction/user(kotlin/String, kotlin/Function1 = ...) // dev.kord.rest.builder.interaction/user|user@dev.kord.rest.builder.interaction.MultiApplicationCommandBuilder(kotlin.String;kotlin.Function1){}[0] From 8660e92e80c941ff455732826af02f45756987e3 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Wed, 6 Nov 2024 16:52:22 +0100 Subject: [PATCH 22/22] Fix Serialization issue --- common/api/common.api | 12 +++++++----- common/api/common.klib.api | 10 ++++++---- .../commonMain/kotlin/entity/DiscordApplication.kt | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/common/api/common.api b/common/api/common.api index 0cad2d7834f..2b8e8ed36e7 100644 --- a/common/api/common.api +++ b/common/api/common.api @@ -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 (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 ()V + public fun (Ldev/kord/common/entity/optional/Optional;)V + public synthetic fun (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; } diff --git a/common/api/common.klib.api b/common/api/common.klib.api index 675b54d84e8..3cfdadba328 100644 --- a/common/api/common.klib.api +++ b/common/api/common.klib.api @@ -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 (dev.kord.common.entity/InstallParams) // dev.kord.common.entity/ApplicationIntegrationTypeConfig.|(dev.kord.common.entity.InstallParams){}[0] + constructor (dev.kord.common.entity.optional/Optional = ...) // dev.kord.common.entity/ApplicationIntegrationTypeConfig.|(dev.kord.common.entity.optional.Optional){}[0] final val oauth2InstallParams // dev.kord.common.entity/ApplicationIntegrationTypeConfig.oauth2InstallParams|{}oauth2InstallParams[0] - final fun (): dev.kord.common.entity/InstallParams // dev.kord.common.entity/ApplicationIntegrationTypeConfig.oauth2InstallParams.|(){}[0] + final fun (): dev.kord.common.entity.optional/Optional // dev.kord.common.entity/ApplicationIntegrationTypeConfig.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/ApplicationIntegrationTypeConfig.component1|component1(){}[0] + final fun copy(dev.kord.common.entity.optional/Optional = ...): dev.kord.common.entity/ApplicationIntegrationTypeConfig // dev.kord.common.entity/ApplicationIntegrationTypeConfig.copy|copy(dev.kord.common.entity.optional.Optional){}[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] @@ -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.Companion.serializer|serializer(){}[0] } } diff --git a/common/src/commonMain/kotlin/entity/DiscordApplication.kt b/common/src/commonMain/kotlin/entity/DiscordApplication.kt index 784a5ecdbb5..a07502a0352 100644 --- a/common/src/commonMain/kotlin/entity/DiscordApplication.kt +++ b/common/src/commonMain/kotlin/entity/DiscordApplication.kt @@ -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 = Optional.Missing() )