From 259e75556ad34ba9b6809d828bc5b328865e97dc Mon Sep 17 00:00:00 2001 From: Lukellmann Date: Tue, 13 Sep 2022 23:33:23 +0200 Subject: [PATCH 1/3] Bump `DeprecationLevel`s `WARNING` -> `ERROR` `ERROR` -> `HIDDEN` `HIDDEN` -> remove --- common/api/common.api | 10 +- .../src/main/kotlin/entity/DiscordChannel.kt | 4 +- common/src/main/kotlin/entity/DiscordGuild.kt | 11 +- .../main/kotlin/entity/DiscordIntegration.kt | 4 +- .../src/main/kotlin/entity/DiscordInvite.kt | 4 +- .../src/main/kotlin/entity/DiscordMessage.kt | 11 +- common/src/main/kotlin/entity/Invite.kt | 4 +- common/src/main/kotlin/entity/Permission.kt | 16 - common/src/main/kotlin/entity/Snowflake.kt | 21 +- .../kotlin/ratelimit/BucketRateLimiter.kt | 4 +- core/api/core.api | 390 ++++++------------ core/src/main/kotlin/Kord.kt | 6 +- core/src/main/kotlin/Unsafe.kt | 8 +- core/src/main/kotlin/Util.kt | 12 +- .../src/main/kotlin/behavior/GuildBehavior.kt | 39 +- .../main/kotlin/behavior/MemberBehavior.kt | 4 +- .../main/kotlin/behavior/MessageBehavior.kt | 17 +- .../kotlin/behavior/StageInstanceBehavior.kt | 8 +- .../behavior/channel/ChannelBehavior.kt | 6 +- .../behavior/channel/StageChannelBehavior.kt | 9 - .../behavior/channel/StoreChannelBehavior.kt | 24 +- .../interaction/ActionInteractionBehavior.kt | 31 +- .../ComponentInteractionBehavior.kt | 10 +- .../interaction/GuildInteractionBehavior.kt | 7 - ...upPermittingInteractionResponseBehavior.kt | 6 +- .../response/InteractionResponseBehavior.kt | 44 -- .../kotlin/cache/data/InviteCreateData.kt | 7 +- core/src/main/kotlin/cache/data/InviteData.kt | 13 +- core/src/main/kotlin/cache/data/UserData.kt | 6 +- core/src/main/kotlin/entity/Activity.kt | 11 +- core/src/main/kotlin/entity/Application.kt | 10 +- core/src/main/kotlin/entity/Guild.kt | 27 +- core/src/main/kotlin/entity/Invite.kt | 21 +- core/src/main/kotlin/entity/Message.kt | 4 +- core/src/main/kotlin/entity/Presence.kt | 20 - core/src/main/kotlin/entity/User.kt | 19 - core/src/main/kotlin/entity/VoiceState.kt | 17 - core/src/main/kotlin/entity/Webhook.kt | 16 +- .../src/main/kotlin/entity/channel/Channel.kt | 2 +- .../kotlin/entity/channel/MessageChannel.kt | 12 - .../kotlin/entity/channel/StoreChannel.kt | 4 +- .../entity/channel/thread/ThreadChannel.kt | 12 - .../interaction/MessageCommandInteraction.kt | 5 - .../interaction/UserCommandInteraction.kt | 5 - .../event/channel/ChannelCreateEvent.kt | 6 +- .../event/channel/ChannelDeleteEvent.kt | 6 +- .../event/channel/ChannelUpdateEvent.kt | 8 +- .../kotlin/event/guild/InviteCreateEvent.kt | 38 -- .../kotlin/event/guild/InviteDeleteEvent.kt | 11 - .../kotlin/event/guild/MemberUpdateEvent.kt | 44 +- .../gateway/handler/ChannelEventHandler.kt | 6 +- .../main/kotlin/live/channel/LiveChannel.kt | 2 +- .../kotlin/supplier/StoreEntitySupplier.kt | 10 - gateway/api/gateway.api | 2 +- gateway/src/main/kotlin/Event.kt | 8 +- rest/api/rest.api | 117 +----- .../channel/EditGuildChannelBuilder.kt | 4 +- .../builder/channel/InviteCreateBuilder.kt | 8 +- rest/src/main/kotlin/json/JsonErrorCode.kt | 43 -- .../main/kotlin/json/request/GuildRequests.kt | 28 +- .../json/request/InviteCreateRequest.kt | 10 +- .../json/request/StageInstanceRequests.kt | 4 +- .../kotlin/json/request/VoiceStateRequests.kt | 11 +- .../kotlin/json/response/EmbedResponse.kt | 22 - .../src/main/kotlin/request/RequestBuilder.kt | 8 - .../kotlin/request/RestRequestException.kt | 4 +- .../StackTraceRecoveringKtorRequestHandler.kt | 4 +- rest/src/main/kotlin/route/Route.kt | 12 - .../src/main/kotlin/service/ChannelService.kt | 8 +- rest/src/main/kotlin/service/GuildService.kt | 17 - .../main/kotlin/service/InteractionService.kt | 18 +- .../kotlin/service/StageInstanceService.kt | 14 +- 72 files changed, 311 insertions(+), 1083 deletions(-) delete mode 100644 rest/src/main/kotlin/json/response/EmbedResponse.kt diff --git a/common/api/common.api b/common/api/common.api index 55786141313f..97f225004f54 100644 --- a/common/api/common.api +++ b/common/api/common.api @@ -4007,7 +4007,7 @@ public final class dev/kord/common/entity/DiscordInvite : dev/kord/common/entity public fun getTargetApplication ()Ldev/kord/common/entity/optional/Optional; public fun getTargetType ()Ldev/kord/common/entity/optional/Optional; public fun getTargetUser ()Ldev/kord/common/entity/optional/Optional; - public final fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; + public final synthetic fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; public fun hashCode ()I public fun toString ()Ljava/lang/String; public static final fun write$Self (Ldev/kord/common/entity/DiscordInvite;Lkotlinx/serialization/encoding/CompositeEncoder;Lkotlinx/serialization/descriptors/SerialDescriptor;)V @@ -6263,7 +6263,7 @@ public final class dev/kord/common/entity/IntegrationApplication { public final fun getIcon ()Ljava/lang/String; public final fun getId ()Ldev/kord/common/entity/Snowflake; public final fun getName ()Ljava/lang/String; - public final fun getSummary ()Ljava/lang/String; + public final synthetic fun getSummary ()Ljava/lang/String; public fun hashCode ()I public fun toString ()Ljava/lang/String; public static final fun write$Self (Ldev/kord/common/entity/IntegrationApplication;Lkotlinx/serialization/encoding/CompositeEncoder;Lkotlinx/serialization/descriptors/SerialDescriptor;)V @@ -7022,8 +7022,6 @@ public final class dev/kord/common/entity/Permission$ChangeNickname : dev/kord/c } public final class dev/kord/common/entity/Permission$Companion { - public final synthetic fun getManageEmojis ()Ldev/kord/common/entity/Permission$ManageEmojisAndStickers; - public final synthetic fun getUseSlashCommands ()Ldev/kord/common/entity/Permission$UseApplicationCommands; public final fun getValues ()Ljava/util/Set; } @@ -7412,11 +7410,10 @@ public final class dev/kord/common/entity/Snowflake : java/lang/Comparable { public final fun component3-w2LRezQ ()B public final fun component4-Mh2AYeg ()S public fun equals (Ljava/lang/Object;)Z - public final fun getAsString ()Ljava/lang/String; + public final synthetic fun getAsString ()Ljava/lang/String; public final fun getIncrement-Mh2AYeg ()S public final fun getProcessId-w2LRezQ ()B public final fun getTimeMark ()Lkotlin/time/TimeMark; - public final synthetic fun getTimeStamp ()Lkotlinx/datetime/Instant; public final fun getTimestamp ()Lkotlinx/datetime/Instant; public final fun getValue-s-VKNKU ()J public final fun getWorkerId-w2LRezQ ()B @@ -7426,7 +7423,6 @@ public final class dev/kord/common/entity/Snowflake : java/lang/Comparable { public final class dev/kord/common/entity/Snowflake$Companion { public final fun getDiscordEpoch ()Lkotlinx/datetime/Instant; - public final synthetic fun getDiscordEpochStart ()Lkotlinx/datetime/Instant; public final fun getEndOfTime ()Lkotlinx/datetime/Instant; public final fun getMax ()Ldev/kord/common/entity/Snowflake; public final fun getMin ()Ldev/kord/common/entity/Snowflake; diff --git a/common/src/main/kotlin/entity/DiscordChannel.kt b/common/src/main/kotlin/entity/DiscordChannel.kt index 01d3a7d8863d..053b4e1c560b 100644 --- a/common/src/main/kotlin/entity/DiscordChannel.kt +++ b/common/src/main/kotlin/entity/DiscordChannel.kt @@ -16,7 +16,7 @@ import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.time.Duration import kotlin.time.Duration.Companion.minutes @@ -131,7 +131,7 @@ public sealed class ChannelType(public val value: Int) { See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public object GuildStore : ChannelType(6) diff --git a/common/src/main/kotlin/entity/DiscordGuild.kt b/common/src/main/kotlin/entity/DiscordGuild.kt index 50d94139368d..903acec306d8 100644 --- a/common/src/main/kotlin/entity/DiscordGuild.kt +++ b/common/src/main/kotlin/entity/DiscordGuild.kt @@ -14,6 +14,7 @@ import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder +import kotlin.DeprecationLevel.ERROR /** * A partial representation of a [DiscordGuild] that may be [unavailable]. @@ -230,7 +231,7 @@ public sealed class GuildFeature(public val value: String) { See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = DeprecationLevel.ERROR, + level = ERROR, ) public object Commerce : GuildFeature("COMMERCE") @@ -262,11 +263,11 @@ public sealed class GuildFeature(public val value: String) { public object MoreStickers : GuildFeature("MORE_STICKERS") /** Guild has access to the three-day archive time for threads */ - @Deprecated("Thread archive durations are no longer boost locked") + @Deprecated("Thread archive durations are no longer boost locked", level = ERROR) public object ThreeDayThreadArchive : GuildFeature("THREE_DAY_THREAD_ARCHIVE") /** Guild has access to the seven day archive time for threads */ - @Deprecated("Thread archive durations are no longer boost locked") + @Deprecated("Thread archive durations are no longer boost locked", level = ERROR) public object SevenDayThreadArchive : GuildFeature("SEVEN_DAY_THREAD_ARCHIVE") /** Guild has access to create private threads */ @@ -305,8 +306,8 @@ public sealed class GuildFeature(public val value: String) { "TICKETED_EVENTS_ENABLED" -> TicketedEventsEnabled "MONETIZATION_ENABLED" -> MonetizationEnabled "MORE_STICKERS" -> MoreStickers - "THREE_DAY_THREAD_ARCHIVE" -> @Suppress("DEPRECATION") ThreeDayThreadArchive - "SEVEN_DAY_THREAD_ARCHIVE" -> @Suppress("DEPRECATION") SevenDayThreadArchive + "THREE_DAY_THREAD_ARCHIVE" -> @Suppress("DEPRECATION_ERROR") ThreeDayThreadArchive + "SEVEN_DAY_THREAD_ARCHIVE" -> @Suppress("DEPRECATION_ERROR") SevenDayThreadArchive "PRIVATE_THREADS" -> PrivateThreads "MEMBER_VERIFICATION_GATE_ENABLED" -> MemberVerificationGateEnabled "PREVIEW_ENABLED" -> PreviewEnabled diff --git a/common/src/main/kotlin/entity/DiscordIntegration.kt b/common/src/main/kotlin/entity/DiscordIntegration.kt index 68db354d8d51..5325cace2f7f 100644 --- a/common/src/main/kotlin/entity/DiscordIntegration.kt +++ b/common/src/main/kotlin/entity/DiscordIntegration.kt @@ -12,7 +12,7 @@ import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN @Serializable public data class DiscordIntegration( @@ -53,7 +53,7 @@ public data class IntegrationApplication( val icon: String?, val description: String, /** @suppress */ - @Deprecated("This is deprecated and will always be empty.", level = ERROR) + @Deprecated("This is deprecated and will always be empty.", level = HIDDEN) val summary: String, val bot: Optional = Optional.Missing(), ) diff --git a/common/src/main/kotlin/entity/DiscordInvite.kt b/common/src/main/kotlin/entity/DiscordInvite.kt index 63d4fce675d4..5da9da9a1934 100644 --- a/common/src/main/kotlin/entity/DiscordInvite.kt +++ b/common/src/main/kotlin/entity/DiscordInvite.kt @@ -12,7 +12,7 @@ import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN public sealed interface BaseDiscordInvite { public val code: String @@ -41,7 +41,7 @@ public data class DiscordInvite( @SerialName("target_application") override val targetApplication: Optional = Optional.Missing(), /** @suppress */ - @Deprecated("This is no longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = ERROR) + @Deprecated("This is no longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = HIDDEN) @SerialName("target_user_type") val targetUserType: Optional<@Suppress("DEPRECATION_ERROR") TargetUserType> = Optional.Missing(), @SerialName("approximate_presence_count") diff --git a/common/src/main/kotlin/entity/DiscordMessage.kt b/common/src/main/kotlin/entity/DiscordMessage.kt index c2488e89e180..0a80502bc6a3 100644 --- a/common/src/main/kotlin/entity/DiscordMessage.kt +++ b/common/src/main/kotlin/entity/DiscordMessage.kt @@ -14,6 +14,7 @@ import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder +import kotlin.DeprecationLevel.ERROR import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -792,27 +793,27 @@ public sealed class MessageType(public val code: Int) { public object ChannelPinnedMessage : MessageType(6) /** @suppress */ - @Deprecated("Renamed to 'UserJoin'.", ReplaceWith("UserJoin")) + @Deprecated("Renamed to 'UserJoin'.", ReplaceWith("UserJoin"), level = ERROR) public object GuildMemberJoin : MessageType(7) public object UserJoin : MessageType(7) /** @suppress */ - @Deprecated("Renamed to 'GuildBoost'.", ReplaceWith("GuildBoost")) + @Deprecated("Renamed to 'GuildBoost'.", ReplaceWith("GuildBoost"), level = ERROR) public object UserPremiumGuildSubscription : MessageType(8) public object GuildBoost : MessageType(8) /** @suppress */ - @Deprecated("Renamed to 'GuildBoostTier1'.", ReplaceWith("GuildBoostTier1")) + @Deprecated("Renamed to 'GuildBoostTier1'.", ReplaceWith("GuildBoostTier1"), level = ERROR) public object UserPremiumGuildSubscriptionTierOne : MessageType(9) public object GuildBoostTier1 : MessageType(9) /** @suppress */ - @Deprecated("Renamed to 'GuildBoostTier2'.", ReplaceWith("GuildBoostTier2")) + @Deprecated("Renamed to 'GuildBoostTier2'.", ReplaceWith("GuildBoostTier2"), level = ERROR) public object UserPremiumGuildSubscriptionTwo : MessageType(10) public object GuildBoostTier2 : MessageType(10) /** @suppress */ - @Deprecated("Renamed to 'GuildBoostTier3'.", ReplaceWith("GuildBoostTier3")) + @Deprecated("Renamed to 'GuildBoostTier3'.", ReplaceWith("GuildBoostTier3"), level = ERROR) public object UserPremiumGuildSubscriptionThree : MessageType(11) public object GuildBoostTier3 : MessageType(11) public object ChannelFollowAdd : MessageType(12) diff --git a/common/src/main/kotlin/entity/Invite.kt b/common/src/main/kotlin/entity/Invite.kt index dc1028afccd3..54d772313b59 100644 --- a/common/src/main/kotlin/entity/Invite.kt +++ b/common/src/main/kotlin/entity/Invite.kt @@ -7,14 +7,14 @@ import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN /** @suppress */ @Suppress("DEPRECATION_ERROR") @Deprecated( "This is no longer documented. Use 'InviteTargetType' instead.", ReplaceWith("InviteTargetType", "dev.kord.common.entity.InviteTargetType"), - level = ERROR, + level = HIDDEN, ) @Serializable(with = TargetUserType.Serializer::class) public sealed class TargetUserType(public val value: Int) { diff --git a/common/src/main/kotlin/entity/Permission.kt b/common/src/main/kotlin/entity/Permission.kt index 08fac8274800..803ce719e905 100644 --- a/common/src/main/kotlin/entity/Permission.kt +++ b/common/src/main/kotlin/entity/Permission.kt @@ -288,22 +288,6 @@ public sealed class Permission(public val code: DiscordBitSet) { public companion object { - @Deprecated( - "Renamed to 'ManageEmojisAndStickers'.", - ReplaceWith("Permission.ManageEmojisAndStickers", "dev.kord.common.entity.Permission"), - DeprecationLevel.HIDDEN, - ) - public val ManageEmojis: ManageEmojisAndStickers - get() = ManageEmojisAndStickers - - @Deprecated( - "Renamed to 'UseApplicationCommands'.", - ReplaceWith("Permission.UseApplicationCommands", "dev.kord.common.entity.Permission"), - DeprecationLevel.HIDDEN, - ) - public val UseSlashCommands: UseApplicationCommands - get() = UseApplicationCommands - // We cannot inline this into the "All" object, because that causes a weird compiler error private fun buildAll(): DiscordBitSet = values.fold(EmptyBitSet()) { acc, value -> acc + value.code } diff --git a/common/src/main/kotlin/entity/Snowflake.kt b/common/src/main/kotlin/entity/Snowflake.kt index 7d691c65de65..0803db030a26 100644 --- a/common/src/main/kotlin/entity/Snowflake.kt +++ b/common/src/main/kotlin/entity/Snowflake.kt @@ -10,7 +10,6 @@ import kotlinx.serialization.builtins.serializer import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder -import kotlin.DeprecationLevel.ERROR import kotlin.DeprecationLevel.HIDDEN import kotlin.time.Duration import kotlin.time.TimeMark @@ -72,17 +71,10 @@ public class Snowflake : Comparable { * * @suppress */ - @Deprecated("Use toString() instead", ReplaceWith("toString()"), level = ERROR) + @Deprecated("Use toString() instead", ReplaceWith("toString()"), level = HIDDEN) public val asString: String get() = value.toString() - /** - * The point in time this Snowflake represents. - */ - @Deprecated("timeStamp was renamed to timestamp.", ReplaceWith("timestamp"), level = HIDDEN) - public val timeStamp: Instant - get() = timestamp - /** * The point in time this Snowflake represents. */ @@ -205,17 +197,6 @@ public class Snowflake : Comparable { */ public val max: Snowflake = Snowflake(validValues.last) - /** - * The point in time that marks the Discord Epoch (the first second of 2015). - */ - @Deprecated( - "Snowflake.discordEpochStart was renamed to Snowflake.discordEpoch.", - ReplaceWith("Snowflake.discordEpoch"), - level = HIDDEN, - ) - public val discordEpochStart: Instant - get() = discordEpoch - /** * The point in time that marks the Discord Epoch (the first second of 2015). */ diff --git a/common/src/main/kotlin/ratelimit/BucketRateLimiter.kt b/common/src/main/kotlin/ratelimit/BucketRateLimiter.kt index 437071069689..798d815646f7 100644 --- a/common/src/main/kotlin/ratelimit/BucketRateLimiter.kt +++ b/common/src/main/kotlin/ratelimit/BucketRateLimiter.kt @@ -1,7 +1,7 @@ package dev.kord.common.ratelimit import kotlinx.datetime.Clock -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.time.Duration @@ -20,7 +20,7 @@ import kotlin.time.Duration "IntervalRateLimiter(limit = capacity, interval = refillInterval)", "dev.kord.common.ratelimit.IntervalRateLimiter", ), - level = ERROR, + level = HIDDEN, ) public class BucketRateLimiter( capacity: Int, diff --git a/core/api/core.api b/core/api/core.api index eecc4838f367..52937950d8b6 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -19,7 +19,7 @@ public final class dev/kord/core/Kord : kotlinx/coroutines/CoroutineScope { 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 createGuild (Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final synthetic fun createGuild (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; @@ -44,7 +44,7 @@ public final class dev/kord/core/Kord : kotlinx/coroutines/CoroutineScope { public final fun getGlobalApplicationCommandOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getGlobalApplicationCommands (Ljava/lang/Boolean;)Lkotlinx/coroutines/flow/Flow; public static synthetic fun getGlobalApplicationCommands$default (Ldev/kord/core/Kord;Ljava/lang/Boolean;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow; - public final fun getGlobalCommands ()Lkotlinx/coroutines/flow/Flow; + public final synthetic fun getGlobalCommands ()Lkotlinx/coroutines/flow/Flow; public final fun getGuild (Ldev/kord/common/entity/Snowflake;Ldev/kord/core/supplier/EntitySupplyStrategy;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun getGuild$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ldev/kord/core/supplier/EntitySupplyStrategy;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun getGuildApplicationCommand (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -135,7 +135,7 @@ public final class dev/kord/core/Unsafe { public final fun role (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)Ldev/kord/core/behavior/RoleBehavior; public final fun spamAutoModerationRule (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)Ldev/kord/core/behavior/automoderation/SpamAutoModerationRuleBehavior; public final fun stageInstance (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)Ldev/kord/core/behavior/StageInstanceBehavior; - public final fun storeChannel (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)Ldev/kord/core/behavior/channel/StoreChannelBehavior; + public final synthetic fun storeChannel (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)Ldev/kord/core/behavior/channel/StoreChannelBehavior; public final fun textChannel (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)Ldev/kord/core/behavior/channel/TextChannelBehavior; public final fun thread (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)Ldev/kord/core/behavior/channel/threads/ThreadChannelBehavior; public final fun threadMember (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)Ldev/kord/core/behavior/ThreadMemberBehavior; @@ -148,12 +148,12 @@ public final class dev/kord/core/Unsafe { } public final class dev/kord/core/UtilKt { - public static final fun any (Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun any (Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun enableEvent (Ldev/kord/gateway/Intents$IntentsBuilder;Lkotlin/reflect/KClass;)V public static final fun enableEvents (Ldev/kord/gateway/Intents$IntentsBuilder;Ljava/lang/Iterable;)V public static final fun enableEvents (Ldev/kord/gateway/Intents$IntentsBuilder;[Lkotlin/reflect/KClass;)V - public static final fun firstOrNull (Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun sorted (Lkotlinx/coroutines/flow/Flow;)Lkotlinx/coroutines/flow/Flow; + public static final synthetic fun firstOrNull (Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun sorted (Lkotlinx/coroutines/flow/Flow;)Lkotlinx/coroutines/flow/Flow; } public abstract interface class dev/kord/core/behavior/ApplicationCommandBehavior : dev/kord/core/entity/Entity { @@ -253,7 +253,7 @@ public abstract interface class dev/kord/core/behavior/GuildBehavior : dev/kord/ public abstract fun getChannel (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getChannelOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getChannels ()Lkotlinx/coroutines/flow/Flow; - public abstract fun getCommands ()Lkotlinx/coroutines/flow/Flow; + public abstract synthetic fun getCommands ()Lkotlinx/coroutines/flow/Flow; public abstract fun getEmojis ()Lkotlinx/coroutines/flow/Flow; public abstract fun getGateway ()Ldev/kord/gateway/Gateway; public abstract fun getGuildScheduledEvent (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -290,7 +290,6 @@ public abstract interface class dev/kord/core/behavior/GuildBehavior : dev/kord/ public abstract fun getWidgetOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun kick (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun leave (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract synthetic fun modifySelfNickname (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun prune (ILjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun requestMembers (Ldev/kord/gateway/RequestGuildMembers;)Lkotlinx/coroutines/flow/Flow; public abstract fun unban (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -326,7 +325,7 @@ public final class dev/kord/core/behavior/GuildBehavior$DefaultImpls { public static fun getChannel (Ldev/kord/core/behavior/GuildBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannelOrNull (Ldev/kord/core/behavior/GuildBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannels (Ldev/kord/core/behavior/GuildBehavior;)Lkotlinx/coroutines/flow/Flow; - public static fun getCommands (Ldev/kord/core/behavior/GuildBehavior;)Lkotlinx/coroutines/flow/Flow; + public static synthetic fun getCommands (Ldev/kord/core/behavior/GuildBehavior;)Lkotlinx/coroutines/flow/Flow; public static fun getEmojis (Ldev/kord/core/behavior/GuildBehavior;)Lkotlinx/coroutines/flow/Flow; public static fun getGateway (Ldev/kord/core/behavior/GuildBehavior;)Ldev/kord/gateway/Gateway; public static fun getGuildScheduledEvent (Ldev/kord/core/behavior/GuildBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -368,8 +367,6 @@ public final class dev/kord/core/behavior/GuildBehavior$DefaultImpls { public static fun kick (Ldev/kord/core/behavior/GuildBehavior;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun kick$default (Ldev/kord/core/behavior/GuildBehavior;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static fun leave (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun modifySelfNickname (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun modifySelfNickname$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static fun prune (Ldev/kord/core/behavior/GuildBehavior;ILjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun prune$default (Ldev/kord/core/behavior/GuildBehavior;ILjava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static fun requestMembers (Ldev/kord/core/behavior/GuildBehavior;Ldev/kord/gateway/RequestGuildMembers;)Lkotlinx/coroutines/flow/Flow; @@ -381,17 +378,15 @@ public final class dev/kord/core/behavior/GuildBehavior$DefaultImpls { public final class dev/kord/core/behavior/GuildBehaviorKt { public static final fun GuildBehavior (Ldev/kord/common/entity/Snowflake;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/GuildBehavior; public static synthetic fun GuildBehavior$default (Ldev/kord/common/entity/Snowflake;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplyStrategy;ILjava/lang/Object;)Ldev/kord/core/behavior/GuildBehavior; - public static final synthetic fun addRole (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun addRole$default (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun ban (Ldev/kord/core/behavior/GuildBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun createApplicationCommands (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun createCategory (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun createCategory (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun createCategory (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createCategory$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun createChatInputCommand (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createChatInputCommand$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun createEmoji (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ldev/kord/rest/Image;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun createEmoji (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun createEmoji (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createEmoji$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ldev/kord/rest/Image;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun createKeywordAutoModerationRule (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createKeywordAutoModerationRule$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; @@ -402,7 +397,7 @@ public final class dev/kord/core/behavior/GuildBehaviorKt { public static final fun createMessageCommand (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createMessageCommand$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun createNewsChannel (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun createNewsChannel (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun createNewsChannel (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createNewsChannel$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun createRole (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createRole$default (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; @@ -410,12 +405,12 @@ public final class dev/kord/core/behavior/GuildBehaviorKt { public static final fun createSpamAutoModerationRule (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createSpamAutoModerationRule$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun createTextChannel (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun createTextChannel (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun createTextChannel (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createTextChannel$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun createUserCommand (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createUserCommand$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun createVoiceChannel (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun createVoiceChannel (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun createVoiceChannel (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createVoiceChannel$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun edit (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun editWidget (Ldev/kord/core/behavior/GuildBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -524,7 +519,7 @@ public abstract interface class dev/kord/core/behavior/MemberBehavior : dev/kord public abstract fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getGuildId ()Ldev/kord/common/entity/Snowflake; public abstract fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract fun getNicknameMention ()Ljava/lang/String; + public abstract synthetic fun getNicknameMention ()Ljava/lang/String; public abstract fun getPresence (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getPresenceOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getVoiceState (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -556,7 +551,7 @@ public final class dev/kord/core/behavior/MemberBehavior$DefaultImpls { public static fun getGuild (Ldev/kord/core/behavior/MemberBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getGuildOrNull (Ldev/kord/core/behavior/MemberBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getMention (Ldev/kord/core/behavior/MemberBehavior;)Ljava/lang/String; - public static fun getNicknameMention (Ldev/kord/core/behavior/MemberBehavior;)Ljava/lang/String; + public static synthetic fun getNicknameMention (Ldev/kord/core/behavior/MemberBehavior;)Ljava/lang/String; public static fun getPresence (Ldev/kord/core/behavior/MemberBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getPresenceOrNull (Ldev/kord/core/behavior/MemberBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getVoiceState (Ldev/kord/core/behavior/MemberBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -634,7 +629,6 @@ public final class dev/kord/core/behavior/MessageBehaviorKt { public static final fun edit (Ldev/kord/core/behavior/MessageBehavior;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun edit (Ldev/kord/core/behavior/MessageBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun edit$default (Ldev/kord/core/behavior/MessageBehavior;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 static final synthetic fun editWebhookMessage (Ldev/kord/core/behavior/MessageBehavior;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun reply (Ldev/kord/core/behavior/MessageBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } @@ -688,7 +682,7 @@ public abstract interface class dev/kord/core/behavior/StageInstanceBehavior : d public abstract fun fetchStageInstance (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun fetchStageInstanceOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getChannelId ()Ldev/kord/common/entity/Snowflake; - public abstract fun update (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public abstract synthetic fun update (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/StageInstanceBehavior; } @@ -700,7 +694,7 @@ public final class dev/kord/core/behavior/StageInstanceBehavior$DefaultImpls { public static synthetic fun delete$default (Ldev/kord/core/behavior/StageInstanceBehavior;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static fun fetchStageInstance (Ldev/kord/core/behavior/StageInstanceBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun fetchStageInstanceOrNull (Ldev/kord/core/behavior/StageInstanceBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun update (Ldev/kord/core/behavior/StageInstanceBehavior;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun update (Ldev/kord/core/behavior/StageInstanceBehavior;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun withStrategy (Ldev/kord/core/behavior/StageInstanceBehavior;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/StageInstanceBehavior; } @@ -1277,7 +1271,6 @@ public final class dev/kord/core/behavior/channel/NewsChannelBehaviorKt { } public abstract interface class dev/kord/core/behavior/channel/StageChannelBehavior : dev/kord/core/behavior/channel/BaseVoiceChannelBehavior { - public abstract synthetic fun createStageInstance (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getStageInstance (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getStageInstanceOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/channel/StageChannelBehavior; @@ -1288,7 +1281,6 @@ public final class dev/kord/core/behavior/channel/StageChannelBehavior$DefaultIm public static fun asChannel (Ldev/kord/core/behavior/channel/StageChannelBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun asChannelOrNull (Ldev/kord/core/behavior/channel/StageChannelBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/behavior/channel/StageChannelBehavior;Ldev/kord/core/entity/Entity;)I - public static synthetic fun createStageInstance (Ldev/kord/core/behavior/channel/StageChannelBehavior;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun delete (Ldev/kord/core/behavior/channel/StageChannelBehavior;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun fetchChannel (Ldev/kord/core/behavior/channel/StageChannelBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun fetchChannelOrNull (Ldev/kord/core/behavior/channel/StageChannelBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -1340,9 +1332,9 @@ public final class dev/kord/core/behavior/channel/StoreChannelBehavior$DefaultIm } public final class dev/kord/core/behavior/channel/StoreChannelBehaviorKt { - public static final fun StoreChannelBehavior (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/channel/StoreChannelBehavior; + public static final synthetic fun StoreChannelBehavior (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/channel/StoreChannelBehavior; public static synthetic fun StoreChannelBehavior$default (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplyStrategy;ILjava/lang/Object;)Ldev/kord/core/behavior/channel/StoreChannelBehavior; - public static final fun edit (Ldev/kord/core/behavior/channel/StoreChannelBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun edit (Ldev/kord/core/behavior/channel/StoreChannelBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/channel/TextChannelBehavior : dev/kord/core/behavior/channel/threads/PrivateThreadParentChannelBehavior { @@ -1670,12 +1662,10 @@ public final class dev/kord/core/behavior/channel/threads/ThreadParentChannelBeh } public abstract interface class dev/kord/core/behavior/interaction/ActionInteractionBehavior : dev/kord/core/behavior/interaction/InteractionBehavior { - public abstract synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public abstract synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public abstract synthetic fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getOriginalInteractionResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -1684,13 +1674,11 @@ public abstract interface class dev/kord/core/behavior/interaction/ActionInterac } public final class dev/kord/core/behavior/interaction/ActionInteractionBehavior$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponse (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannel (Ldev/kord/core/behavior/interaction/ActionInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; @@ -1713,13 +1701,11 @@ public abstract interface class dev/kord/core/behavior/interaction/ApplicationCo } public final class dev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponse (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannel (Ldev/kord/core/behavior/interaction/ApplicationCommandInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; @@ -1748,24 +1734,22 @@ public final class dev/kord/core/behavior/interaction/AutoCompleteInteractionBeh } public abstract interface class dev/kord/core/behavior/interaction/ComponentInteractionBehavior : dev/kord/core/behavior/interaction/ActionInteractionBehavior { - public abstract fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public abstract synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public abstract synthetic fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun deferEphemeralMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun deferPublicMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; } public final class dev/kord/core/behavior/interaction/ComponentInteractionBehavior$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralMessageUpdate (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicMessageUpdate (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponse (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -1780,8 +1764,8 @@ public final class dev/kord/core/behavior/interaction/ComponentInteractionBehavi public final class dev/kord/core/behavior/interaction/ComponentInteractionBehaviorKt { public static final fun ComponentInteractionBehavior (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/Snowflake;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; public static synthetic fun ComponentInteractionBehavior$default (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/Snowflake;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplyStrategy;ILjava/lang/Object;)Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior; - public static final fun acknowledgeEphemeralUpdateMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun acknowledgePublicUpdateMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun acknowledgeEphemeralUpdateMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun acknowledgePublicUpdateMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun updateEphemeralMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun updatePublicMessage (Ldev/kord/core/behavior/interaction/ComponentInteractionBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } @@ -1814,7 +1798,6 @@ public abstract interface class dev/kord/core/behavior/interaction/GuildInteract public abstract fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public abstract fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract synthetic fun getGuildBehavior ()Ldev/kord/core/behavior/GuildBehavior; public abstract fun getGuildId ()Ldev/kord/common/entity/Snowflake; public abstract fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/GuildInteractionBehavior; @@ -1827,7 +1810,6 @@ public final class dev/kord/core/behavior/interaction/GuildInteractionBehavior$D public static fun getChannelOrNull (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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 synthetic fun getGuildBehavior (Ldev/kord/core/behavior/interaction/GuildInteractionBehavior;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuildOrNull (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; } @@ -1859,13 +1841,11 @@ public abstract interface class dev/kord/core/behavior/interaction/ModalParentIn } public final class dev/kord/core/behavior/interaction/ModalParentInteractionBehavior$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponse (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getChannel (Ldev/kord/core/behavior/interaction/ModalParentInteractionBehavior;)Ldev/kord/core/behavior/channel/MessageChannelBehavior; @@ -2030,8 +2010,8 @@ public final class dev/kord/core/behavior/interaction/response/FollowupPermittin public static synthetic fun FollowupPermittingInteractionResponseBehavior$default (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;ILjava/lang/Object;)Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior; public static final fun createEphemeralFollowup (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun createPublicFollowup (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun followUp (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun followUpEphemeral (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun followUp (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun followUpEphemeral (Ldev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public abstract interface class dev/kord/core/behavior/interaction/response/InteractionResponseBehavior : dev/kord/core/KordObject, dev/kord/core/entity/Strategizable { @@ -2047,11 +2027,6 @@ public final class dev/kord/core/behavior/interaction/response/InteractionRespon public static fun getFollowupMessageOrNull (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } -public final class dev/kord/core/behavior/interaction/response/InteractionResponseBehaviorKt { - public static final synthetic fun followUp (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final synthetic fun followUpEphemeral (Ldev/kord/core/behavior/interaction/response/InteractionResponseBehavior;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - public abstract interface class dev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior : dev/kord/core/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior { public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/interaction/response/MessageInteractionResponseBehavior; } @@ -4030,7 +4005,7 @@ public final class dev/kord/core/cache/data/InviteCreateData { public final fun getTargetApplication ()Ldev/kord/common/entity/optional/Optional; public final fun getTargetType ()Ldev/kord/common/entity/optional/Optional; public final fun getTargetUserId ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; + public final synthetic fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; public final fun getTemporary ()Z public final fun getUses ()I public fun hashCode ()I @@ -4086,7 +4061,7 @@ public final class dev/kord/core/cache/data/InviteData : dev/kord/core/cache/dat public fun getTargetApplication ()Ldev/kord/common/entity/optional/Optional; public fun getTargetType ()Ldev/kord/common/entity/optional/Optional; public fun getTargetUserId ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; + public final synthetic fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; public fun hashCode ()I public fun toString ()Ljava/lang/String; public static final fun write$Self (Ldev/kord/core/cache/data/InviteData;Lkotlinx/serialization/encoding/CompositeEncoder;Lkotlinx/serialization/descriptors/SerialDescriptor;)V @@ -5547,7 +5522,7 @@ public final class dev/kord/core/cache/data/UserData$$serializer : kotlinx/seria public final class dev/kord/core/cache/data/UserData$Companion { public final fun from (Ldev/kord/common/entity/DiscordOptionallyMemberUser;)Ldev/kord/core/cache/data/UserData; public final fun from (Ldev/kord/common/entity/DiscordUser;)Ldev/kord/core/cache/data/UserData; - public final fun from (Ldev/kord/gateway/DiscordInviteUser;)Ldev/kord/core/cache/data/UserData; + public final synthetic fun from (Ldev/kord/gateway/DiscordInviteUser;)Ldev/kord/core/cache/data/UserData; public final fun getDescription ()Ldev/kord/cache/api/data/DataDescription; public final fun serializer ()Lkotlinx/serialization/KSerializer; } @@ -5751,8 +5726,6 @@ public final class dev/kord/core/entity/Activity { public final fun getSecrets ()Ldev/kord/core/entity/Activity$Secrets; public final fun getStart ()Lkotlinx/datetime/Instant; public final fun getState ()Ljava/lang/String; - public final synthetic fun getStop ()Lkotlinx/datetime/Instant; - public static fun getStop$delegate (Ldev/kord/core/entity/Activity;)Ljava/lang/Object; public final fun getType ()Ldev/kord/common/entity/ActivityType; public final fun getUrl ()Ljava/lang/String; public final fun isInstance ()Ljava/lang/Boolean; @@ -5811,7 +5784,6 @@ public final class dev/kord/core/entity/Application : dev/kord/core/entity/BaseA public synthetic fun (Ldev/kord/core/cache/data/ApplicationData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public fun getData ()Ldev/kord/core/cache/data/ApplicationData; public synthetic fun getData ()Ldev/kord/core/cache/data/BaseApplicationData; - public final synthetic fun getOwner (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getRequireCodeGrant ()Z public final fun getTeam ()Ldev/kord/core/entity/Team; public final fun getTeamId ()Ldev/kord/common/entity/Snowflake; @@ -6153,7 +6125,7 @@ public final class dev/kord/core/entity/Guild : dev/kord/core/behavior/GuildBeha public final fun getChannelIds ()Ljava/util/Set; public fun getChannelOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannels ()Lkotlinx/coroutines/flow/Flow; - public fun getCommands ()Lkotlinx/coroutines/flow/Flow; + public synthetic fun getCommands ()Lkotlinx/coroutines/flow/Flow; public final fun getContentFilter ()Ldev/kord/common/entity/ExplicitContentFilter; public final fun getData ()Ldev/kord/core/cache/data/GuildData; public final fun getDefaultMessageNotificationLevel ()Ldev/kord/common/entity/DefaultMessageNotificationLevel; @@ -6161,11 +6133,7 @@ public final class dev/kord/core/entity/Guild : dev/kord/core/behavior/GuildBeha public final fun getDiscoverySplash (Ldev/kord/rest/Image$Format;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getDiscoverySplashHash ()Ljava/lang/String; public final fun getDiscoverySplashUrl (Ldev/kord/rest/Image$Format;)Ljava/lang/String; - public final synthetic fun getEmbedChannel ()Ldev/kord/core/behavior/channel/TopGuildChannelBehavior; public final fun getEmbedChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun getEmbedChannel$delegate (Ldev/kord/core/entity/Guild;)Ljava/lang/Object; - public final synthetic fun getEmbedChannelId ()Ldev/kord/common/entity/Snowflake; - public static fun getEmbedChannelId$delegate (Ldev/kord/core/entity/Guild;)Ljava/lang/Object; public final fun getEmoji (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getEmojiIds ()Ljava/util/Set; public final fun getEmojiOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -6261,7 +6229,6 @@ public final class dev/kord/core/entity/Guild : dev/kord/core/behavior/GuildBeha public final fun isWidgetEnabled ()Z public fun kick (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun leave (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun modifySelfNickname (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun prune (ILjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun requestMembers (Ldev/kord/gateway/RequestGuildMembers;)Lkotlinx/coroutines/flow/Flow; public fun toString ()Ljava/lang/String; @@ -6482,7 +6449,6 @@ public class dev/kord/core/entity/Invite : dev/kord/core/KordObject, dev/kord/co public final fun getApproximateMemberCount ()Ljava/lang/Integer; public final fun getApproximatePresenceCount ()Ljava/lang/Integer; public final fun getChannel ()Ldev/kord/core/behavior/channel/ChannelBehavior; - public final synthetic fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getChannelId ()Ldev/kord/common/entity/Snowflake; public final fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getCode ()Ljava/lang/String; @@ -6490,7 +6456,6 @@ public class dev/kord/core/entity/Invite : dev/kord/core/KordObject, dev/kord/co public final fun getExpiresAt ()Lkotlinx/datetime/Instant; public final fun getGuildScheduledEvent ()Ldev/kord/core/entity/GuildScheduledEvent; public final fun getInviter ()Ldev/kord/core/behavior/UserBehavior; - public final synthetic fun getInviter (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getInviterId ()Ldev/kord/common/entity/Snowflake; public final fun getInviterOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getKord ()Ldev/kord/core/Kord; @@ -6499,10 +6464,9 @@ public class dev/kord/core/entity/Invite : dev/kord/core/KordObject, dev/kord/co public final fun getTargetApplication ()Ldev/kord/core/entity/PartialApplication; public final fun getTargetType ()Ldev/kord/common/entity/InviteTargetType; public final fun getTargetUser ()Ldev/kord/core/behavior/UserBehavior; - public final synthetic fun getTargetUser (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getTargetUserId ()Ldev/kord/common/entity/Snowflake; public final fun getTargetUserOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun getTargetUserType ()Ldev/kord/common/entity/TargetUserType; + public final synthetic fun getTargetUserType ()Ldev/kord/common/entity/TargetUserType; public fun toString ()Ljava/lang/String; public fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Invite; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Strategizable; @@ -6554,7 +6518,7 @@ public final class dev/kord/core/entity/Member : dev/kord/core/entity/User, dev/ public final fun getMemberAvatar ()Ldev/kord/core/entity/Icon; public final fun getMemberData ()Ldev/kord/core/cache/data/MemberData; public final fun getNickname ()Ljava/lang/String; - public fun getNicknameMention ()Ljava/lang/String; + public synthetic fun getNicknameMention ()Ljava/lang/String; public final fun getPermissions (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getPremiumSince ()Lkotlinx/datetime/Instant; public fun getPresence (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -6604,7 +6568,7 @@ public final class dev/kord/core/entity/Message : dev/kord/core/behavior/Message 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 final fun getComponents ()Ljava/util/List; + public final synthetic fun getComponents ()Ljava/util/List; public final fun getContent ()Ljava/lang/String; public final fun getData ()Ldev/kord/core/cache/data/MessageData; public final fun getEditedTimestamp ()Lkotlinx/datetime/Instant; @@ -6715,7 +6679,7 @@ public final class dev/kord/core/entity/PartialGuild : dev/kord/core/behavior/Gu public fun getChannel (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelOrNull (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannels ()Lkotlinx/coroutines/flow/Flow; - public fun getCommands ()Lkotlinx/coroutines/flow/Flow; + public synthetic fun getCommands ()Lkotlinx/coroutines/flow/Flow; public final fun getData ()Ldev/kord/core/cache/data/PartialGuildData; public final fun getDescription ()Ljava/lang/String; public final fun getDiscoverySplash (Ldev/kord/rest/Image$Format;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -6774,7 +6738,6 @@ public final class dev/kord/core/entity/PartialGuild : dev/kord/core/behavior/Gu public fun hashCode ()I public fun kick (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun leave (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun modifySelfNickname (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun prune (ILjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun requestMembers (Ldev/kord/gateway/RequestGuildMembers;)Lkotlinx/coroutines/flow/Flow; public fun toString ()Ljava/lang/String; @@ -6832,11 +6795,8 @@ public final class dev/kord/core/entity/Presence : dev/kord/core/KordObject, dev public final fun getActivities ()Ljava/util/List; public final fun getClientStatus ()Ldev/kord/core/entity/ClientStatus; public final fun getData ()Ldev/kord/core/cache/data/PresenceData; - public final synthetic fun getGame ()Ldev/kord/core/entity/Activity; public final fun getGuildId ()Ldev/kord/common/entity/Snowflake; public fun getKord ()Ldev/kord/core/Kord; - public final synthetic fun getRoleIds ()Ljava/util/Set; - public final synthetic fun getRoles ()Lkotlinx/coroutines/flow/Flow; public final fun getStatus ()Ldev/kord/common/entity/PresenceStatus; public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; public final fun getUser (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -6994,7 +6954,7 @@ public final class dev/kord/core/entity/StageInstance : dev/kord/core/behavior/S public final fun getPrivacyLevel ()Ldev/kord/common/entity/StageInstancePrivacyLevel; public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; public final fun getTopic ()Ljava/lang/String; - public fun update (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun update (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/behavior/StageInstanceBehavior; public fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/StageInstance; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Strategizable; @@ -7124,12 +7084,9 @@ public class dev/kord/core/entity/User : dev/kord/core/behavior/UserBehavior { public final fun getDiscriminator ()Ljava/lang/String; public fun getDmChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getDmChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final synthetic fun getFlags ()Ldev/kord/common/entity/UserFlags; - public static fun getFlags$delegate (Ldev/kord/core/entity/User;)Ljava/lang/Object; public fun getId ()Ldev/kord/common/entity/Snowflake; public fun getKord ()Ldev/kord/core/Kord; public fun getMention ()Ljava/lang/String; - public final synthetic fun getPremiumType ()Ldev/kord/common/entity/UserPremium; public final fun getPublicFlags ()Ldev/kord/common/entity/UserFlags; public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; public final fun getTag ()Ljava/lang/String; @@ -7171,7 +7128,6 @@ public final class dev/kord/core/entity/User$Avatar : dev/kord/core/KordObject { public final class dev/kord/core/entity/VoiceState : dev/kord/core/KordObject, dev/kord/core/entity/Strategizable { public fun (Ldev/kord/core/cache/data/VoiceStateData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V public synthetic fun (Ldev/kord/core/cache/data/VoiceStateData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final synthetic fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getChannelId ()Ldev/kord/common/entity/Snowflake; public final fun getChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getData ()Ldev/kord/core/cache/data/VoiceStateData; @@ -7189,7 +7145,6 @@ public final class dev/kord/core/entity/VoiceState : dev/kord/core/KordObject, d public final fun isMuted ()Z public final fun isSelfDeafened ()Z public final fun isSelfMuted ()Z - public final synthetic fun isSelfSteaming ()Z public final fun isSelfStreaming ()Z public final fun isSelfVideo ()Z public final fun isSuppressed ()Z @@ -7219,7 +7174,6 @@ public final class dev/kord/core/entity/Webhook : dev/kord/core/behavior/Webhook public final fun getCreatorId ()Ldev/kord/common/entity/Snowflake; public final fun getData ()Ldev/kord/core/cache/data/WebhookData; public final fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; - public final synthetic fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getGuildId ()Ldev/kord/common/entity/Snowflake; public final fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getId ()Ldev/kord/common/entity/Snowflake; @@ -7839,7 +7793,6 @@ public final class dev/kord/core/entity/channel/DmChannel : dev/kord/core/entity public fun getLastMessage ()Ldev/kord/core/behavior/MessageBehavior; public fun getLastMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getLastMessageId ()Ldev/kord/common/entity/Snowflake; - public synthetic fun getLastPinTimeStamp ()Lkotlinx/datetime/Instant; public fun getLastPinTimestamp ()Lkotlinx/datetime/Instant; public fun getMention ()Ljava/lang/String; public fun getMessage (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -7912,7 +7865,6 @@ public final class dev/kord/core/entity/channel/GuildMessageChannel$DefaultImpls public static fun getLastMessage (Ldev/kord/core/entity/channel/GuildMessageChannel;)Ldev/kord/core/behavior/MessageBehavior; public static fun getLastMessage (Ldev/kord/core/entity/channel/GuildMessageChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getLastMessageId (Ldev/kord/core/entity/channel/GuildMessageChannel;)Ldev/kord/common/entity/Snowflake; - public static synthetic fun getLastPinTimeStamp (Ldev/kord/core/entity/channel/GuildMessageChannel;)Lkotlinx/datetime/Instant; public static fun getLastPinTimestamp (Ldev/kord/core/entity/channel/GuildMessageChannel;)Lkotlinx/datetime/Instant; public static fun getMention (Ldev/kord/core/entity/channel/GuildMessageChannel;)Ljava/lang/String; public static fun getMessage (Ldev/kord/core/entity/channel/GuildMessageChannel;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -7933,7 +7885,6 @@ public abstract interface class dev/kord/core/entity/channel/MessageChannel : de public abstract fun getLastMessage ()Ldev/kord/core/behavior/MessageBehavior; public abstract fun getLastMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getLastMessageId ()Ldev/kord/common/entity/Snowflake; - public abstract synthetic fun getLastPinTimeStamp ()Lkotlinx/datetime/Instant; public abstract fun getLastPinTimestamp ()Lkotlinx/datetime/Instant; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/channel/MessageChannel; } @@ -7951,7 +7902,6 @@ public final class dev/kord/core/entity/channel/MessageChannel$DefaultImpls { public static fun getLastMessage (Ldev/kord/core/entity/channel/MessageChannel;)Ldev/kord/core/behavior/MessageBehavior; public static fun getLastMessage (Ldev/kord/core/entity/channel/MessageChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getLastMessageId (Ldev/kord/core/entity/channel/MessageChannel;)Ldev/kord/common/entity/Snowflake; - public static synthetic fun getLastPinTimeStamp (Ldev/kord/core/entity/channel/MessageChannel;)Lkotlinx/datetime/Instant; public static fun getLastPinTimestamp (Ldev/kord/core/entity/channel/MessageChannel;)Lkotlinx/datetime/Instant; public static fun getMention (Ldev/kord/core/entity/channel/MessageChannel;)Ljava/lang/String; public static fun getMessage (Ldev/kord/core/entity/channel/MessageChannel;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -7998,7 +7948,6 @@ public final class dev/kord/core/entity/channel/NewsChannel : dev/kord/core/beha public fun getLastMessage ()Ldev/kord/core/behavior/MessageBehavior; public fun getLastMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getLastMessageId ()Ldev/kord/common/entity/Snowflake; - public synthetic fun getLastPinTimeStamp ()Lkotlinx/datetime/Instant; public fun getLastPinTimestamp ()Lkotlinx/datetime/Instant; public fun getMention ()Ljava/lang/String; public fun getMessage (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -8080,7 +8029,6 @@ public final class dev/kord/core/entity/channel/StageChannel : dev/kord/core/beh public fun asChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public synthetic fun createStageInstance (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun delete (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun equals (Ljava/lang/Object;)Z public fun fetchChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -8208,7 +8156,6 @@ public final class dev/kord/core/entity/channel/TextChannel : dev/kord/core/beha public fun getLastMessage ()Ldev/kord/core/behavior/MessageBehavior; public fun getLastMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getLastMessageId ()Ldev/kord/common/entity/Snowflake; - public synthetic fun getLastPinTimeStamp ()Lkotlinx/datetime/Instant; public fun getLastPinTimestamp ()Lkotlinx/datetime/Instant; public fun getMention ()Ljava/lang/String; public fun getMessage (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -8289,7 +8236,6 @@ public final class dev/kord/core/entity/channel/ThreadParentChannel$DefaultImpls public static fun getLastMessage (Ldev/kord/core/entity/channel/ThreadParentChannel;)Ldev/kord/core/behavior/MessageBehavior; public static fun getLastMessage (Ldev/kord/core/entity/channel/ThreadParentChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getLastMessageId (Ldev/kord/core/entity/channel/ThreadParentChannel;)Ldev/kord/common/entity/Snowflake; - public static synthetic fun getLastPinTimeStamp (Ldev/kord/core/entity/channel/ThreadParentChannel;)Lkotlinx/datetime/Instant; public static fun getLastPinTimestamp (Ldev/kord/core/entity/channel/ThreadParentChannel;)Lkotlinx/datetime/Instant; public static fun getMention (Ldev/kord/core/entity/channel/ThreadParentChannel;)Ljava/lang/String; public static fun getMessage (Ldev/kord/core/entity/channel/ThreadParentChannel;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -8376,7 +8322,6 @@ public final class dev/kord/core/entity/channel/TopGuildMessageChannel$DefaultIm public static fun getLastMessage (Ldev/kord/core/entity/channel/TopGuildMessageChannel;)Ldev/kord/core/behavior/MessageBehavior; public static fun getLastMessage (Ldev/kord/core/entity/channel/TopGuildMessageChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getLastMessageId (Ldev/kord/core/entity/channel/TopGuildMessageChannel;)Ldev/kord/common/entity/Snowflake; - public static synthetic fun getLastPinTimeStamp (Ldev/kord/core/entity/channel/TopGuildMessageChannel;)Lkotlinx/datetime/Instant; public static fun getLastPinTimestamp (Ldev/kord/core/entity/channel/TopGuildMessageChannel;)Lkotlinx/datetime/Instant; public static fun getMention (Ldev/kord/core/entity/channel/TopGuildMessageChannel;)Ljava/lang/String; public static fun getMessage (Ldev/kord/core/entity/channel/TopGuildMessageChannel;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -8430,7 +8375,6 @@ public final class dev/kord/core/entity/channel/VoiceChannel : dev/kord/core/beh public fun getLastMessage ()Ldev/kord/core/behavior/MessageBehavior; public fun getLastMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getLastMessageId ()Ldev/kord/common/entity/Snowflake; - public synthetic fun getLastPinTimeStamp ()Lkotlinx/datetime/Instant; public fun getLastPinTimestamp ()Lkotlinx/datetime/Instant; public fun getMention ()Ljava/lang/String; public fun getMessage (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -8536,7 +8480,6 @@ public final class dev/kord/core/entity/channel/thread/NewsChannelThread : dev/k public fun deleteMessage (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun fetchChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun fetchChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun getArchiveTimeStamp ()Lkotlinx/datetime/Instant; public fun getArchiveTimestamp ()Lkotlinx/datetime/Instant; public fun getAutoArchiveDuration ()Ldev/kord/common/entity/ArchiveDuration; public fun getCreateTimestamp ()Lkotlinx/datetime/Instant; @@ -8551,7 +8494,6 @@ public final class dev/kord/core/entity/channel/thread/NewsChannelThread : dev/k public fun getLastMessage ()Ldev/kord/core/behavior/MessageBehavior; public fun getLastMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getLastMessageId ()Ldev/kord/common/entity/Snowflake; - public synthetic fun getLastPinTimeStamp ()Lkotlinx/datetime/Instant; public fun getLastPinTimestamp ()Lkotlinx/datetime/Instant; public fun getMember ()Ldev/kord/core/entity/channel/thread/ThreadMember; public fun getMemberCount ()Ldev/kord/common/entity/optional/OptionalInt; @@ -8612,7 +8554,6 @@ public final class dev/kord/core/entity/channel/thread/TextChannelThread : dev/k public fun deleteMessage (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun fetchChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun fetchChannelOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun getArchiveTimeStamp ()Lkotlinx/datetime/Instant; public fun getArchiveTimestamp ()Lkotlinx/datetime/Instant; public fun getAutoArchiveDuration ()Ldev/kord/common/entity/ArchiveDuration; public fun getCreateTimestamp ()Lkotlinx/datetime/Instant; @@ -8627,7 +8568,6 @@ public final class dev/kord/core/entity/channel/thread/TextChannelThread : dev/k public fun getLastMessage ()Ldev/kord/core/behavior/MessageBehavior; public fun getLastMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getLastMessageId ()Ldev/kord/common/entity/Snowflake; - public synthetic fun getLastPinTimeStamp ()Lkotlinx/datetime/Instant; public fun getLastPinTimestamp ()Lkotlinx/datetime/Instant; public fun getMember ()Ldev/kord/core/entity/channel/thread/ThreadMember; public fun getMemberCount ()Ldev/kord/common/entity/optional/OptionalInt; @@ -8677,7 +8617,6 @@ public final class dev/kord/core/entity/channel/thread/TextChannelThread : dev/k } public abstract interface class dev/kord/core/entity/channel/thread/ThreadChannel : dev/kord/core/behavior/channel/threads/ThreadChannelBehavior, dev/kord/core/entity/channel/GuildMessageChannel { - public abstract synthetic fun getArchiveTimeStamp ()Lkotlinx/datetime/Instant; public abstract fun getArchiveTimestamp ()Lkotlinx/datetime/Instant; public abstract fun getAutoArchiveDuration ()Ldev/kord/common/entity/ArchiveDuration; public abstract fun getCreateTimestamp ()Lkotlinx/datetime/Instant; @@ -8706,7 +8645,6 @@ public final class dev/kord/core/entity/channel/thread/ThreadChannel$DefaultImpl public static fun deleteMessage (Ldev/kord/core/entity/channel/thread/ThreadChannel;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun fetchChannel (Ldev/kord/core/entity/channel/thread/ThreadChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun fetchChannelOrNull (Ldev/kord/core/entity/channel/thread/ThreadChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun getArchiveTimeStamp (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Lkotlinx/datetime/Instant; public static fun getArchiveTimestamp (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Lkotlinx/datetime/Instant; public static fun getAutoArchiveDuration (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Ldev/kord/common/entity/ArchiveDuration; public static fun getCreateTimestamp (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Lkotlinx/datetime/Instant; @@ -8719,7 +8657,6 @@ public final class dev/kord/core/entity/channel/thread/ThreadChannel$DefaultImpl public static fun getLastMessage (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Ldev/kord/core/behavior/MessageBehavior; public static fun getLastMessage (Ldev/kord/core/entity/channel/thread/ThreadChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getLastMessageId (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Ldev/kord/common/entity/Snowflake; - public static synthetic fun getLastPinTimeStamp (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Lkotlinx/datetime/Instant; public static fun getLastPinTimestamp (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Lkotlinx/datetime/Instant; public static fun getMember (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Ldev/kord/core/entity/channel/thread/ThreadMember; public static fun getMemberCount (Ldev/kord/core/entity/channel/thread/ThreadChannel;)Ldev/kord/common/entity/optional/OptionalInt; @@ -8883,13 +8820,11 @@ public abstract interface class dev/kord/core/entity/interaction/ActionInteracti } public final class dev/kord/core/entity/interaction/ActionInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/ActionInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/ActionInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -8917,13 +8852,11 @@ public abstract interface class dev/kord/core/entity/interaction/ApplicationComm } public final class dev/kord/core/entity/interaction/ApplicationCommandInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/ApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -9000,16 +8933,14 @@ public abstract interface class dev/kord/core/entity/interaction/ButtonInteracti } public final class dev/kord/core/entity/interaction/ButtonInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/ButtonInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralMessageUpdate (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicMessageUpdate (Ldev/kord/core/entity/interaction/ButtonInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -9048,13 +8979,11 @@ public abstract interface class dev/kord/core/entity/interaction/ChatInputComman } public final class dev/kord/core/entity/interaction/ChatInputCommandInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/ChatInputCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -9087,16 +9016,14 @@ public abstract interface class dev/kord/core/entity/interaction/ComponentIntera } public final class dev/kord/core/entity/interaction/ComponentInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/ComponentInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralMessageUpdate (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicMessageUpdate (Ldev/kord/core/entity/interaction/ComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -9147,13 +9074,11 @@ public abstract interface class dev/kord/core/entity/interaction/GlobalApplicati } public final class dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/GlobalApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -9217,17 +9142,15 @@ public final class dev/kord/core/entity/interaction/GlobalAutoCompleteInteractio public final class dev/kord/core/entity/interaction/GlobalButtonInteraction : dev/kord/core/entity/interaction/ButtonInteraction, dev/kord/core/entity/interaction/GlobalComponentInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9273,14 +9196,12 @@ public final class dev/kord/core/entity/interaction/GlobalButtonInteraction : de public final class dev/kord/core/entity/interaction/GlobalChatInputCommandInteraction : dev/kord/core/entity/interaction/ChatInputCommandInteraction, dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (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 @@ -9329,16 +9250,14 @@ public abstract interface class dev/kord/core/entity/interaction/GlobalComponent } public final class dev/kord/core/entity/interaction/GlobalComponentInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralMessageUpdate (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicMessageUpdate (Ldev/kord/core/entity/interaction/GlobalComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -9384,14 +9303,12 @@ public final class dev/kord/core/entity/interaction/GlobalInteraction$DefaultImp public final class dev/kord/core/entity/interaction/GlobalMessageCommandInteraction : dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction, dev/kord/core/entity/interaction/MessageCommandInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (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 @@ -9416,7 +9333,6 @@ public final class dev/kord/core/entity/interaction/GlobalMessageCommandInteract public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; public fun getTarget ()Ldev/kord/core/behavior/MessageBehavior; public fun getTarget (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun getTargetBehavior ()Ldev/kord/core/behavior/MessageBehavior; public fun getTargetId ()Ldev/kord/common/entity/Snowflake; public fun getTargetOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getToken ()Ljava/lang/String; @@ -9443,17 +9359,15 @@ public final class dev/kord/core/entity/interaction/GlobalMessageCommandInteract public final class dev/kord/core/entity/interaction/GlobalModalSubmitInteraction : dev/kord/core/entity/interaction/GlobalInteraction, dev/kord/core/entity/interaction/ModalSubmitInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V public synthetic fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9495,17 +9409,15 @@ public final class dev/kord/core/entity/interaction/GlobalModalSubmitInteraction 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 synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9552,14 +9464,12 @@ public final class dev/kord/core/entity/interaction/GlobalSelectMenuInteraction public final class dev/kord/core/entity/interaction/GlobalUserCommandInteraction : dev/kord/core/entity/interaction/GlobalApplicationCommandInteraction, dev/kord/core/entity/interaction/UserCommandInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (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 @@ -9583,7 +9493,6 @@ public final class dev/kord/core/entity/interaction/GlobalUserCommandInteraction public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; public fun getTarget ()Ldev/kord/core/behavior/UserBehavior; public fun getTarget (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun getTargetBehavior ()Ldev/kord/core/behavior/UserBehavior; public fun getTargetId ()Ldev/kord/common/entity/Snowflake; public fun getTargetOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getToken ()Ljava/lang/String; @@ -9635,13 +9544,11 @@ public abstract interface class dev/kord/core/entity/interaction/GuildApplicatio } public final class dev/kord/core/entity/interaction/GuildApplicationCommandInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -9652,7 +9559,6 @@ public final class dev/kord/core/entity/interaction/GuildApplicationCommandInter public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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 synthetic fun getGuildBehavior (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuildId (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;)Ldev/kord/common/Locale; public static fun getGuildOrNull (Ldev/kord/core/entity/interaction/GuildApplicationCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9691,7 +9597,6 @@ public final class dev/kord/core/entity/interaction/GuildAutoCompleteInteraction public fun getFocusedOption ()Ldev/kord/core/entity/interaction/StringOptionValue; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun getGuildBehavior ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuildId ()Ldev/kord/common/entity/Snowflake; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9721,17 +9626,15 @@ public final class dev/kord/core/entity/interaction/GuildAutoCompleteInteraction public final class dev/kord/core/entity/interaction/GuildButtonInteraction : dev/kord/core/entity/interaction/ButtonInteraction, dev/kord/core/entity/interaction/GuildComponentInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9750,7 +9653,6 @@ public final class dev/kord/core/entity/interaction/GuildButtonInteraction : dev 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; - public synthetic fun getGuildBehavior ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuildId ()Ldev/kord/common/entity/Snowflake; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9786,14 +9688,12 @@ public final class dev/kord/core/entity/interaction/GuildButtonInteraction : dev public final class dev/kord/core/entity/interaction/GuildChatInputCommandInteraction : dev/kord/core/entity/interaction/ChatInputCommandInteraction, dev/kord/core/entity/interaction/GuildApplicationCommandInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (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 @@ -9808,7 +9708,6 @@ public final class dev/kord/core/entity/interaction/GuildChatInputCommandInterac 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; - public synthetic fun getGuildBehavior ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuildId ()Ldev/kord/common/entity/Snowflake; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9851,16 +9750,14 @@ public abstract interface class dev/kord/core/entity/interaction/GuildComponentI } public final class dev/kord/core/entity/interaction/GuildComponentInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralMessageUpdate (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicMessageUpdate (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9874,7 +9771,6 @@ public final class dev/kord/core/entity/interaction/GuildComponentInteraction$De public static fun getComponentType (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/ComponentType; 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 synthetic fun getGuildBehavior (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuildId (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/GuildComponentInteraction;)Ldev/kord/common/Locale; public static fun getGuildOrNull (Ldev/kord/core/entity/interaction/GuildComponentInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9908,7 +9804,6 @@ public final class dev/kord/core/entity/interaction/GuildInteraction$DefaultImpl public static fun getChannelOrNull (Ldev/kord/core/entity/interaction/GuildInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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 synthetic fun getGuildBehavior (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/core/behavior/GuildBehavior; public static fun getGuildId (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getGuildLocale (Ldev/kord/core/entity/interaction/GuildInteraction;)Ldev/kord/common/Locale; public static fun getGuildOrNull (Ldev/kord/core/entity/interaction/GuildInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9923,14 +9818,12 @@ public final class dev/kord/core/entity/interaction/GuildInteraction$DefaultImpl public final class dev/kord/core/entity/interaction/GuildMessageCommandInteraction : dev/kord/core/entity/interaction/GuildApplicationCommandInteraction, dev/kord/core/entity/interaction/MessageCommandInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (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 @@ -9944,7 +9837,6 @@ public final class dev/kord/core/entity/interaction/GuildMessageCommandInteracti 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; - public synthetic fun getGuildBehavior ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuildId ()Ldev/kord/common/entity/Snowflake; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9963,7 +9855,6 @@ public final class dev/kord/core/entity/interaction/GuildMessageCommandInteracti public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; public fun getTarget ()Ldev/kord/core/behavior/MessageBehavior; public fun getTarget (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun getTargetBehavior ()Ldev/kord/core/behavior/MessageBehavior; public fun getTargetId ()Ldev/kord/common/entity/Snowflake; public fun getTargetOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getToken ()Ljava/lang/String; @@ -9991,17 +9882,15 @@ public final class dev/kord/core/entity/interaction/GuildMessageCommandInteracti public final class dev/kord/core/entity/interaction/GuildModalSubmitInteraction : dev/kord/core/entity/interaction/GuildInteraction, dev/kord/core/entity/interaction/ModalSubmitInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V public synthetic fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10017,7 +9906,6 @@ public final class dev/kord/core/entity/interaction/GuildModalSubmitInteraction 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; - public synthetic fun getGuildBehavior ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuildId ()Ldev/kord/common/entity/Snowflake; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10052,17 +9940,15 @@ public final class dev/kord/core/entity/interaction/GuildModalSubmitInteraction 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 synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun acknowledgePublicDeferredMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicMessageUpdate (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferPublicResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10081,7 +9967,6 @@ public final class dev/kord/core/entity/interaction/GuildSelectMenuInteraction : 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; - public synthetic fun getGuildBehavior ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuildId ()Ldev/kord/common/entity/Snowflake; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10118,14 +10003,12 @@ public final class dev/kord/core/entity/interaction/GuildSelectMenuInteraction : public final class dev/kord/core/entity/interaction/GuildUserCommandInteraction : dev/kord/core/entity/interaction/GuildApplicationCommandInteraction, dev/kord/core/entity/interaction/UserCommandInteraction { public fun (Ldev/kord/core/cache/data/InteractionData;Ldev/kord/core/Kord;Ldev/kord/core/supplier/EntitySupplier;)V - public synthetic fun acknowledgeEphemeral (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun acknowledgePublic (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun compareTo (Ldev/kord/core/entity/Entity;)I public synthetic fun compareTo (Ljava/lang/Object;)I - public fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferEphemeralMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponse (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun deferEphemeralResponseUnsafe (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deferPublicMessage (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deferPublicMessage (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 @@ -10139,7 +10022,6 @@ public final class dev/kord/core/entity/interaction/GuildUserCommandInteraction 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; - public synthetic fun getGuildBehavior ()Ldev/kord/core/behavior/GuildBehavior; public fun getGuildId ()Ldev/kord/common/entity/Snowflake; public fun getGuildLocale ()Ldev/kord/common/Locale; public fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10157,7 +10039,6 @@ public final class dev/kord/core/entity/interaction/GuildUserCommandInteraction public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; public fun getTarget ()Ldev/kord/core/behavior/UserBehavior; public fun getTarget (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public synthetic fun getTargetBehavior ()Ldev/kord/core/behavior/UserBehavior; public fun getTargetId ()Ldev/kord/common/entity/Snowflake; public fun getTargetOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getToken ()Ljava/lang/String; @@ -10285,20 +10166,17 @@ public abstract interface class dev/kord/core/entity/interaction/MessageCommandI public abstract fun getMessages ()Ljava/util/Map; public abstract fun getTarget ()Ldev/kord/core/behavior/MessageBehavior; public abstract fun getTarget (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract synthetic fun getTargetBehavior ()Ldev/kord/core/behavior/MessageBehavior; public abstract fun getTargetId ()Ldev/kord/common/entity/Snowflake; public abstract fun getTargetOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/interaction/MessageCommandInteraction; } public final class dev/kord/core/entity/interaction/MessageCommandInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -10319,7 +10197,6 @@ public final class dev/kord/core/entity/interaction/MessageCommandInteraction$De public static fun getResolvedObjects (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/core/entity/interaction/ResolvedObjects; public static fun getTarget (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/core/behavior/MessageBehavior; public static fun getTarget (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun getTargetBehavior (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/core/behavior/MessageBehavior; public static fun getTargetId (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getTargetOrNull (Ldev/kord/core/entity/interaction/MessageCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getToken (Ldev/kord/core/entity/interaction/MessageCommandInteraction;)Ljava/lang/String; @@ -10336,16 +10213,14 @@ public abstract interface class dev/kord/core/entity/interaction/ModalSubmitInte } public final class dev/kord/core/entity/interaction/ModalSubmitInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralMessageUpdate (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicMessageUpdate (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponse (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicResponseUnsafe (Ldev/kord/core/entity/interaction/ModalSubmitInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -10445,16 +10320,14 @@ public abstract interface class dev/kord/core/entity/interaction/SelectMenuInter } public final class dev/kord/core/entity/interaction/SelectMenuInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgeEphemeralDeferredMessageUpdate (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun acknowledgePublicDeferredMessageUpdate (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralMessageUpdate (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferPublicMessageUpdate (Ldev/kord/core/entity/interaction/SelectMenuInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -10510,7 +10383,6 @@ public final class dev/kord/core/entity/interaction/SubCommand : dev/kord/core/e public abstract interface class dev/kord/core/entity/interaction/UserCommandInteraction : dev/kord/core/entity/interaction/ApplicationCommandInteraction { public abstract fun getTarget ()Ldev/kord/core/behavior/UserBehavior; public abstract fun getTarget (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public abstract synthetic fun getTargetBehavior ()Ldev/kord/core/behavior/UserBehavior; public abstract fun getTargetId ()Ldev/kord/common/entity/Snowflake; public abstract fun getTargetOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getUsers ()Ljava/util/Map; @@ -10518,13 +10390,11 @@ public abstract interface class dev/kord/core/entity/interaction/UserCommandInte } public final class dev/kord/core/entity/interaction/UserCommandInteraction$DefaultImpls { - public static synthetic fun acknowledgeEphemeral (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun acknowledgePublic (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun compareTo (Ldev/kord/core/entity/interaction/UserCommandInteraction;Ldev/kord/core/entity/Entity;)I - public static fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferEphemeralMessage (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponse (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun deferEphemeralResponseUnsafe (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static fun deferPublicMessage (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun deferPublicMessage (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; 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; @@ -10544,7 +10414,6 @@ public final class dev/kord/core/entity/interaction/UserCommandInteraction$Defau public static fun getResolvedObjects (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/core/entity/interaction/ResolvedObjects; public static fun getTarget (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/core/behavior/UserBehavior; public static fun getTarget (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun getTargetBehavior (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/core/behavior/UserBehavior; public static fun getTargetId (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ldev/kord/common/entity/Snowflake; public static fun getTargetOrNull (Ldev/kord/core/entity/interaction/UserCommandInteraction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static fun getToken (Ldev/kord/core/entity/interaction/UserCommandInteraction;)Ljava/lang/String; @@ -11904,12 +11773,9 @@ public final class dev/kord/core/event/guild/InviteCreateEvent : dev/kord/core/e public final fun getData ()Ldev/kord/core/cache/data/InviteCreateData; public fun getGateway ()Ldev/kord/gateway/Gateway; public final fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; - public final synthetic fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getGuildId ()Ldev/kord/common/entity/Snowflake; public final fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getInviter ()Ldev/kord/core/behavior/UserBehavior; - public final synthetic fun getInviter (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final synthetic fun getInviterAsMember (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getInviterAsMemberOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getInviterId ()Ldev/kord/common/entity/Snowflake; public final fun getInviterMember ()Ldev/kord/core/behavior/MemberBehavior; @@ -11945,7 +11811,6 @@ public final class dev/kord/core/event/guild/InviteDeleteEvent : dev/kord/core/e public final fun getData ()Ldev/kord/core/cache/data/InviteDeleteData; public fun getGateway ()Ldev/kord/gateway/Gateway; public final fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; - public final synthetic fun getGuild (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getGuildId ()Ldev/kord/common/entity/Snowflake; public final fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getKord ()Ldev/kord/core/Kord; @@ -11992,12 +11857,6 @@ public final class dev/kord/core/event/guild/MemberLeaveEvent : dev/kord/core/ev public final class dev/kord/core/event/guild/MemberUpdateEvent : dev/kord/core/entity/Strategizable, dev/kord/core/event/Event { public fun (Ldev/kord/core/entity/Member;Ldev/kord/core/entity/Member;Ldev/kord/core/Kord;ILjava/lang/Object;Ldev/kord/core/supplier/EntitySupplier;)V public synthetic fun (Ldev/kord/core/entity/Member;Ldev/kord/core/entity/Member;Ldev/kord/core/Kord;ILjava/lang/Object;Ldev/kord/core/supplier/EntitySupplier;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final synthetic fun getCurrentNickName ()Ljava/lang/String; - public static fun getCurrentNickName$delegate (Ldev/kord/core/event/guild/MemberUpdateEvent;)Ljava/lang/Object; - public final synthetic fun getCurrentRoleIds ()Ljava/util/Set; - public static fun getCurrentRoleIds$delegate (Ldev/kord/core/event/guild/MemberUpdateEvent;)Ljava/lang/Object; - public final synthetic fun getCurrentRoles ()Lkotlinx/coroutines/flow/Flow; - public static fun getCurrentRoles$delegate (Ldev/kord/core/event/guild/MemberUpdateEvent;)Ljava/lang/Object; public fun getCustomContext ()Ljava/lang/Object; public fun getGateway ()Ldev/kord/gateway/Gateway; public final fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; @@ -12006,17 +11865,9 @@ public final class dev/kord/core/event/guild/MemberUpdateEvent : dev/kord/core/e public final fun getGuildOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getKord ()Ldev/kord/core/Kord; public final fun getMember ()Ldev/kord/core/entity/Member; - public final synthetic fun getMember (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final synthetic fun getMemberId ()Ldev/kord/common/entity/Snowflake; - public static fun getMemberId$delegate (Ldev/kord/core/event/guild/MemberUpdateEvent;)Ljava/lang/Object; - public final synthetic fun getMemberOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getOld ()Ldev/kord/core/entity/Member; - public final synthetic fun getPremiumSince ()Lkotlinx/datetime/Instant; - public static fun getPremiumSince$delegate (Ldev/kord/core/event/guild/MemberUpdateEvent;)Ljava/lang/Object; public fun getShard ()I public fun getSupplier ()Ldev/kord/core/supplier/EntitySupplier; - public final synthetic fun getUser ()Ldev/kord/core/entity/User; - public static fun getUser$delegate (Ldev/kord/core/event/guild/MemberUpdateEvent;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; public synthetic fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/entity/Strategizable; public fun withStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)Ldev/kord/core/event/guild/MemberUpdateEvent; @@ -13683,7 +13534,6 @@ public final class dev/kord/core/supplier/RestEntitySupplier : dev/kord/core/sup public final class dev/kord/core/supplier/StoreEntitySupplier : dev/kord/core/supplier/EntitySupplier { public fun (Ldev/kord/core/supplier/EntitySupplier;Ldev/kord/cache/api/DataCache;)V - public synthetic fun (Ldev/kord/core/supplier/EntitySupplier;Ldev/kord/cache/api/DataCache;Ldev/kord/core/Kord;)V public fun getActiveThreads (Ldev/kord/common/entity/Snowflake;)Lkotlinx/coroutines/flow/Flow; public fun getApplicationCommandPermissions (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getApplicationCommandPermissionsOrNull (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; diff --git a/core/src/main/kotlin/Kord.kt b/core/src/main/kotlin/Kord.kt index 6c6ea31a9298..72170c96f82d 100644 --- a/core/src/main/kotlin/Kord.kt +++ b/core/src/main/kotlin/Kord.kt @@ -35,7 +35,7 @@ import kotlinx.coroutines.* import kotlinx.coroutines.flow.* import mu.KLogger import mu.KotlinLogging -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract import kotlin.coroutines.CoroutineContext @@ -63,7 +63,7 @@ public class Kord( * * @suppress */ - @Deprecated("Replace with function call for localizations", ReplaceWith("getGlobalApplicationCommands()"), level = ERROR) + @Deprecated("Replace with function call for localizations", ReplaceWith("getGlobalApplicationCommands()"), level = HIDDEN) public val globalCommands: Flow get() = defaultSupplier.getGlobalApplicationCommands(resources.applicationId) @@ -168,7 +168,7 @@ public class Kord( @Deprecated( "guild name is a mandatory field", ReplaceWith("createGuild(\"name\", builder)"), - level = ERROR, + level = HIDDEN, ) public suspend inline fun createGuild(builder: GuildCreateBuilder.() -> Unit): Guild { contract { diff --git a/core/src/main/kotlin/Unsafe.kt b/core/src/main/kotlin/Unsafe.kt index f4fec1fb7621..c211fd99ec7a 100644 --- a/core/src/main/kotlin/Unsafe.kt +++ b/core/src/main/kotlin/Unsafe.kt @@ -12,7 +12,7 @@ import dev.kord.core.behavior.channel.threads.ThreadParentChannelBehavior import dev.kord.core.behavior.interaction.ApplicationCommandInteractionBehavior import dev.kord.core.behavior.interaction.ComponentInteractionBehavior import dev.kord.rest.service.InteractionService -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN /** * A class that exposes the creation of `{Entity}Behavior` classes. @@ -92,10 +92,10 @@ public class Unsafe(private val kord: Kord) { See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) - public fun storeChannel(guildId: Snowflake, id: Snowflake): StoreChannelBehavior = - StoreChannelBehavior(guildId = guildId, id = id, kord = kord) + public fun storeChannel(guildId: Snowflake, id: Snowflake): dev.kord.core.behavior.channel.StoreChannelBehavior = + createStoreChannelBehavior(guildId = guildId, id = id, kord = kord) public fun publicThreadParent(guildId: Snowflake, id: Snowflake): ThreadParentChannelBehavior = ThreadParentChannelBehavior(guildId, id, kord) diff --git a/core/src/main/kotlin/Util.kt b/core/src/main/kotlin/Util.kt index 6a2022f9e43d..b2f8d0537734 100644 --- a/core/src/main/kotlin/Util.kt +++ b/core/src/main/kotlin/Util.kt @@ -63,7 +63,7 @@ internal inline fun catchDiscordError(vararg codes: JsonErrorCode, block: () @Deprecated( "This is an internal utility function.", ReplaceWith("this.toList().sorted()", "kotlinx.coroutines.flow.toList"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun Flow.sorted(): Flow = internalSorted() @@ -82,7 +82,7 @@ internal fun > Flow.internalSorted(): Flow = flow { @Deprecated( "Use the function with the same name from kotlinx.coroutines.flow instead.", ReplaceWith("this.firstOrNull(predicate)", "kotlinx.coroutines.flow.firstOrNull"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public suspend inline fun Flow.firstOrNull(crossinline predicate: suspend (T) -> Boolean): T? = filter { predicate(it) }.coroutinesFirstOrNull() @@ -96,7 +96,7 @@ public suspend inline fun Flow.firstOrNull(crossinline predicate: s @Deprecated( "This is an internal utility function.", ReplaceWith("this.firstOrNull(predicate) != null", "kotlinx.coroutines.flow.firstOrNull"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public suspend inline fun Flow.any(crossinline predicate: suspend (T) -> Boolean): Boolean = coroutinesFirstOrNull { predicate(it) } != null @@ -374,7 +374,7 @@ public fun Intents.IntentsBuilder.enableEvent(event: KClass): Unit = NewsChannelCreateEvent::class, StageChannelCreateEvent::class, @Suppress("DEPRECATION_ERROR") - StoreChannelCreateEvent::class, + dev.kord.core.event.channel.StoreChannelCreateEvent::class, TextChannelCreateEvent::class, UnknownChannelCreateEvent::class, VoiceChannelCreateEvent::class, @@ -385,7 +385,7 @@ public fun Intents.IntentsBuilder.enableEvent(event: KClass): Unit = NewsChannelUpdateEvent::class, StageChannelUpdateEvent::class, @Suppress("DEPRECATION_ERROR") - StoreChannelUpdateEvent::class, + dev.kord.core.event.channel.StoreChannelUpdateEvent::class, TextChannelUpdateEvent::class, UnknownChannelUpdateEvent::class, VoiceChannelUpdateEvent::class, @@ -396,7 +396,7 @@ public fun Intents.IntentsBuilder.enableEvent(event: KClass): Unit = NewsChannelDeleteEvent::class, StageChannelDeleteEvent::class, @Suppress("DEPRECATION_ERROR") - StoreChannelDeleteEvent::class, + dev.kord.core.event.channel.StoreChannelDeleteEvent::class, TextChannelDeleteEvent::class, UnknownChannelDeleteEvent::class, VoiceChannelDeleteEvent::class, diff --git a/core/src/main/kotlin/behavior/GuildBehavior.kt b/core/src/main/kotlin/behavior/GuildBehavior.kt index 7ee535aa6974..033c3ac7dbd2 100644 --- a/core/src/main/kotlin/behavior/GuildBehavior.kt +++ b/core/src/main/kotlin/behavior/GuildBehavior.kt @@ -35,7 +35,10 @@ import dev.kord.gateway.start import dev.kord.rest.Image import dev.kord.rest.NamedFile import dev.kord.rest.builder.auditlog.AuditLogGetRequestBuilder -import dev.kord.rest.builder.automoderation.* +import dev.kord.rest.builder.automoderation.KeywordAutoModerationRuleCreateBuilder +import dev.kord.rest.builder.automoderation.KeywordPresetAutoModerationRuleCreateBuilder +import dev.kord.rest.builder.automoderation.MentionSpamAutoModerationRuleCreateBuilder +import dev.kord.rest.builder.automoderation.SpamAutoModerationRuleCreateBuilder import dev.kord.rest.builder.ban.BanCreateBuilder import dev.kord.rest.builder.channel.* import dev.kord.rest.builder.guild.* @@ -54,7 +57,6 @@ import dev.kord.rest.service.* import kotlinx.coroutines.flow.* import kotlinx.datetime.Instant import java.util.Objects -import kotlin.DeprecationLevel.ERROR import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.InvocationKind.EXACTLY_ONCE @@ -221,7 +223,7 @@ public interface GuildBehavior : KordEntity, Strategizable { * * @suppress */ - @Deprecated("Use function call", ReplaceWith("getApplicationCommands()"), level = ERROR) + @Deprecated("Use function call", ReplaceWith("getApplicationCommands()"), level = HIDDEN) public val commands: Flow get() = supplier.getGuildApplicationCommands(kord.resources.applicationId, id) @@ -425,16 +427,6 @@ public interface GuildBehavior : KordEntity, Strategizable { scheduledEventId: Snowflake? = null, ): Invite? = kord.with(rest).getInviteOrNull(code, withCounts, withExpiration, scheduledEventId) - - /** - * Requests to change the nickname of the bot in this guild, passing `null` will remove it. - * - * @throws [RestRequestException] if something went wrong during the request. - */ - @DeprecatedSinceKord("0.7.0") - @Deprecated("Use editSelfNickname.", ReplaceWith("editSelfNickname(newNickname)"), level = HIDDEN) - public suspend fun modifySelfNickname(newNickname: String? = null): String = editSelfNickname(newNickname) - /** * Requests to change the nickname of the bot in this guild, passing `null` will remove it. * @@ -751,7 +743,7 @@ public suspend inline fun GuildBehavior.edit(builder: GuildModifyBuilder.() -> U @Deprecated( "emoji name and image are mandatory fields.", ReplaceWith("createEmoji(\"name\", Image.fromUrl(\"url\"), builder)"), - level = ERROR, + level = HIDDEN, ) @DeprecatedSinceKord("0.7.0") public suspend inline fun GuildBehavior.createEmoji(builder: EmojiCreateBuilder.() -> Unit): GuildEmoji { @@ -785,7 +777,7 @@ public suspend inline fun GuildBehavior.createEmoji( @Deprecated( "channel name is a mandatory field", ReplaceWith("createTextChannel(\"name\", builder)"), - level = ERROR, + level = HIDDEN, ) @DeprecatedSinceKord("0.7.0") public suspend inline fun GuildBehavior.createTextChannel(builder: TextChannelCreateBuilder.() -> Unit): TextChannel { @@ -828,7 +820,7 @@ public suspend inline fun GuildBehavior.createTextChannel( @Deprecated( "channel name is a mandatory field.", ReplaceWith("createVoiceChannel(\"name\", builder)"), - level = ERROR, + level = HIDDEN, ) @DeprecatedSinceKord("0.7.0") public suspend inline fun GuildBehavior.createVoiceChannel(builder: VoiceChannelCreateBuilder.() -> Unit): VoiceChannel { @@ -870,7 +862,7 @@ public suspend inline fun GuildBehavior.createVoiceChannel( @Deprecated( "channel name is a mandatory field.", ReplaceWith("createNewsChannel(\"name\", builder)"), - level = ERROR, + level = HIDDEN, ) @DeprecatedSinceKord("0.7.0") public suspend inline fun GuildBehavior.createNewsChannel(builder: NewsChannelCreateBuilder.() -> Unit): NewsChannel { @@ -913,7 +905,7 @@ public suspend inline fun GuildBehavior.createNewsChannel( @Deprecated( "channel name is a mandatory field.", ReplaceWith("this.createCategory(\"name\", builder)"), - level = ERROR, + level = HIDDEN, ) @DeprecatedSinceKord("0.7.0") public suspend inline fun GuildBehavior.createCategory(builder: CategoryCreateBuilder.() -> Unit): Category { @@ -974,17 +966,6 @@ public suspend inline fun GuildBehavior.swapRolePositions(builder: RolePositions } -/** - * Requests to add a new role to this guild. - * - * @return The created [Role]. - * - * @throws [RestRequestException] if something went wrong during the request. - */ -@DeprecatedSinceKord("0.7.0") -@Deprecated("Use createRole instead.", ReplaceWith("createRole(builder)"), level = HIDDEN) -public suspend inline fun GuildBehavior.addRole(builder: RoleCreateBuilder.() -> Unit = {}): Role = createRole(builder) - /** * Requests to add a new role to this guild. * diff --git a/core/src/main/kotlin/behavior/MemberBehavior.kt b/core/src/main/kotlin/behavior/MemberBehavior.kt index 38e5870eefa4..7d0e475d9a43 100644 --- a/core/src/main/kotlin/behavior/MemberBehavior.kt +++ b/core/src/main/kotlin/behavior/MemberBehavior.kt @@ -17,7 +17,7 @@ import dev.kord.rest.builder.ban.BanCreateBuilder import dev.kord.rest.builder.member.MemberModifyBuilder import dev.kord.rest.request.RestRequestException import java.util.Objects -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -45,7 +45,7 @@ public interface MemberBehavior : KordEntity, UserBehavior { "Nickname mentions are deprecated and should be handled the same way as regular user mentions, " + "see https://discord.com/developers/docs/reference#message-formatting-formats", ReplaceWith("this.mention"), - level = ERROR, + level = HIDDEN, ) public val nicknameMention: String get() = "<@!$id>" diff --git a/core/src/main/kotlin/behavior/MessageBehavior.kt b/core/src/main/kotlin/behavior/MessageBehavior.kt index 49b69de62e26..1619b4d2b128 100644 --- a/core/src/main/kotlin/behavior/MessageBehavior.kt +++ b/core/src/main/kotlin/behavior/MessageBehavior.kt @@ -20,8 +20,7 @@ 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 java.util.* -import kotlin.DeprecationLevel.HIDDEN +import java.util.Objects import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -261,20 +260,6 @@ public suspend inline fun MessageBehavior.edit(builder: UserMessageModifyBuilder return Message(data, kord) } -@Deprecated( - "'editWebhookMessage' was renamed to 'edit'", - ReplaceWith("this.edit(webhookId, token, threadId = null) { builder() }", "dev.kord.core.behavior.edit"), - level = HIDDEN, -) -public suspend inline fun MessageBehavior.editWebhookMessage( - webhookId: Snowflake, - token: String, - builder: WebhookMessageModifyBuilder.() -> Unit, -): Message { - contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - return edit(webhookId, token, threadId = null, builder) -} - /** * Requests to edit this message if it was previously sent from a [Webhook] with the given [webhookId] using the * [token] for authentication. diff --git a/core/src/main/kotlin/behavior/StageInstanceBehavior.kt b/core/src/main/kotlin/behavior/StageInstanceBehavior.kt index bba7204e483b..a0829898d392 100644 --- a/core/src/main/kotlin/behavior/StageInstanceBehavior.kt +++ b/core/src/main/kotlin/behavior/StageInstanceBehavior.kt @@ -1,6 +1,7 @@ package dev.kord.core.behavior import dev.kord.common.entity.Snowflake +import dev.kord.common.entity.optional.optional import dev.kord.common.exception.RequestException import dev.kord.core.Kord import dev.kord.core.cache.data.StageInstanceData @@ -12,7 +13,8 @@ import dev.kord.core.exception.EntityNotFoundException import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.stage.StageInstanceModifyBuilder -import kotlin.DeprecationLevel.ERROR +import dev.kord.rest.json.request.StageInstanceModifyRequest +import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -25,9 +27,9 @@ public interface StageInstanceBehavior : KordEntity, Strategizable { /** @suppress */ @Suppress("DEPRECATION_ERROR") - @Deprecated("Replaced by 'edit'.", ReplaceWith("this.edit {\nthis@edit.topic = topic\n}"), level = ERROR) + @Deprecated("Replaced by 'edit'.", ReplaceWith("this.edit {\nthis@edit.topic = topic\n}"), level = HIDDEN) public suspend fun update(topic: String): StageInstance { - val instance = kord.rest.stageInstance.updateStageInstance(channelId, dev.kord.rest.json.request.StageInstanceUpdateRequest(topic)) + val instance = kord.rest.stageInstance.modifyStageInstance(channelId, StageInstanceModifyRequest(topic.optional())) val data = StageInstanceData.from(instance) return StageInstance(data, kord, supplier) diff --git a/core/src/main/kotlin/behavior/channel/ChannelBehavior.kt b/core/src/main/kotlin/behavior/channel/ChannelBehavior.kt index 49d9b66e7020..0611cee8d28f 100644 --- a/core/src/main/kotlin/behavior/channel/ChannelBehavior.kt +++ b/core/src/main/kotlin/behavior/channel/ChannelBehavior.kt @@ -13,7 +13,7 @@ import dev.kord.core.supplier.getChannelOf import dev.kord.core.supplier.getChannelOfOrNull import dev.kord.rest.request.RestRequestException import java.util.* -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN /** * The behavior of a [Discord Channel](https://discord.com/developers/docs/resources/channel) @@ -85,7 +85,7 @@ public interface ChannelBehavior : KordEntity, Strategizable { * * @suppress */ -@Deprecated("Deprecated in favor of asChannelOfOrNull", ReplaceWith("this.asChannelOfOrNull()"), level = ERROR) +@Deprecated("Deprecated in favor of asChannelOfOrNull", ReplaceWith("this.asChannelOfOrNull()"), level = HIDDEN) public suspend inline fun ChannelBehavior.ofOrNull(): T? = supplier.getChannelOfOrNull(id) @@ -98,7 +98,7 @@ public suspend inline fun ChannelBehavior.ofOrNull(): T? = * * @suppress */ -@Deprecated("Deprecated in favor of asChannelOf", ReplaceWith("this.asChannelOf()"), level = ERROR) +@Deprecated("Deprecated in favor of asChannelOf", ReplaceWith("this.asChannelOf()"), level = HIDDEN) public suspend inline fun ChannelBehavior.of(): T = supplier.getChannelOf(id) diff --git a/core/src/main/kotlin/behavior/channel/StageChannelBehavior.kt b/core/src/main/kotlin/behavior/channel/StageChannelBehavior.kt index e25494eb8430..55deb8724bff 100644 --- a/core/src/main/kotlin/behavior/channel/StageChannelBehavior.kt +++ b/core/src/main/kotlin/behavior/channel/StageChannelBehavior.kt @@ -17,7 +17,6 @@ import dev.kord.rest.request.RestRequestException import dev.kord.rest.service.modifyCurrentVoiceState import dev.kord.rest.service.modifyVoiceState import dev.kord.rest.service.patchStageVoiceChannel -import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -32,14 +31,6 @@ public interface StageChannelBehavior : BaseVoiceChannelBehavior { return StageChannelBehavior(id, guildId, kord, strategy.supply(kord)) } - @Deprecated("Binary compatibility.", level = HIDDEN) - public suspend fun createStageInstance(topic: String): StageInstance { - val instance = kord.rest.stageInstance.createStageInstance(id, topic) - val data = StageInstanceData.from(instance) - - return StageInstance(data, kord, supplier) - } - public suspend fun getStageInstanceOrNull(): StageInstance? = supplier.getStageInstanceOrNull(id) public suspend fun getStageInstance(): StageInstance = supplier.getStageInstance(id) diff --git a/core/src/main/kotlin/behavior/channel/StoreChannelBehavior.kt b/core/src/main/kotlin/behavior/channel/StoreChannelBehavior.kt index 6d566addac8f..6d369f5922ca 100644 --- a/core/src/main/kotlin/behavior/channel/StoreChannelBehavior.kt +++ b/core/src/main/kotlin/behavior/channel/StoreChannelBehavior.kt @@ -13,9 +13,9 @@ import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.channel.StoreChannelModifyBuilder import dev.kord.rest.request.RestRequestException -import dev.kord.rest.service.patchStoreChannel import java.util.Objects import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -32,7 +32,7 @@ import kotlin.contracts.contract See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public interface StoreChannelBehavior : CategorizableChannelBehavior { @@ -76,7 +76,7 @@ public interface StoreChannelBehavior : CategorizableChannelBehavior { * @param strategy the strategy to use for the new instance. By default [EntitySupplyStrategy.cacheWithRestFallback]. */ override fun withStrategy(strategy: EntitySupplyStrategy<*>): StoreChannelBehavior = - StoreChannelBehavior(guildId, id, kord, strategy) + createStoreChannelBehavior(guildId, id, kord, strategy) } @@ -89,14 +89,22 @@ public interface StoreChannelBehavior : CategorizableChannelBehavior { See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public fun StoreChannelBehavior( guildId: Snowflake, id: Snowflake, kord: Kord, strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy -): StoreChannelBehavior = object : StoreChannelBehavior { +): StoreChannelBehavior = createStoreChannelBehavior(guildId, id, kord, strategy) + +@Deprecated("Deprecated to not use by accident, remove when stores are removed", level = ERROR) +internal fun createStoreChannelBehavior( + guildId: Snowflake, + id: Snowflake, + kord: Kord, + strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy, +) = object : StoreChannelBehavior { override val guildId: Snowflake = guildId override val id: Snowflake = id override val kord: Kord = kord @@ -132,11 +140,13 @@ public fun StoreChannelBehavior( See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public suspend inline fun StoreChannelBehavior.edit(builder: StoreChannelModifyBuilder.() -> Unit): StoreChannel { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - val response = kord.rest.channel.patchStoreChannel(id, builder) + + val modifyBuilder = StoreChannelModifyBuilder().apply(builder) + val response = kord.rest.channel.patchChannel(id, modifyBuilder.toRequest(), modifyBuilder.reason) val data = ChannelData.from(response) return Channel.from(data, kord) as StoreChannel diff --git a/core/src/main/kotlin/behavior/interaction/ActionInteractionBehavior.kt b/core/src/main/kotlin/behavior/interaction/ActionInteractionBehavior.kt index 10c223a17cf6..9b8ded7620fd 100644 --- a/core/src/main/kotlin/behavior/interaction/ActionInteractionBehavior.kt +++ b/core/src/main/kotlin/behavior/interaction/ActionInteractionBehavior.kt @@ -14,7 +14,6 @@ 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.request.RestRequestException -import kotlin.DeprecationLevel.ERROR import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -22,19 +21,6 @@ import kotlin.contracts.contract /** The behavior of an [ActionInteraction]. */ public interface ActionInteractionBehavior : InteractionBehavior { - /** - * Acknowledges the interaction ephemerally. The user will see a 'loading' animation. - * - * Call [edit][EphemeralMessageInteractionResponseBehavior.edit] on the returned object to edit the response later. - */ - @Suppress("DEPRECATION_ERROR") - @Deprecated( - "Renamed to 'deferEphemeralMessage'.", - ReplaceWith("this.deferEphemeralMessage()"), - level = HIDDEN, - ) - public suspend fun acknowledgeEphemeral(): EphemeralMessageInteractionResponseBehavior = deferEphemeralMessage() - /** * Acknowledges the interaction ephemerally with the intent of responding with an [ephemeral][MessageFlag.Ephemeral] * message later by calling [edit][EphemeralMessageInteractionResponseBehavior.edit] on the returned object. The @@ -73,7 +59,7 @@ public interface ActionInteractionBehavior : InteractionBehavior { See the documentation of this method for how it should be replaced. """, ReplaceWith("this.deferEphemeralResponse()"), - level = ERROR, + level = HIDDEN, ) @OptIn(KordUnsafe::class) public suspend fun deferEphemeralMessage(): EphemeralMessageInteractionResponseBehavior = @@ -111,19 +97,6 @@ public interface ActionInteractionBehavior : InteractionBehavior { return DeferredEphemeralMessageInteractionResponseBehavior(applicationId, token, kord) } - /** - * Acknowledges the interaction publicly. The user will see a 'loading' animation. - * - * Call [edit][PublicMessageInteractionResponseBehavior.edit] on the returned object to edit the response later. - */ - @Suppress("DEPRECATION_ERROR") - @Deprecated( - "Renamed to 'deferPublicMessage'.", - ReplaceWith("this.deferPublicMessage()"), - level = HIDDEN, - ) - public suspend fun acknowledgePublic(): PublicMessageInteractionResponseBehavior = deferPublicMessage() - /** * Acknowledges the interaction publicly with the intent of responding with a public message later by calling * [edit][PublicMessageInteractionResponseBehavior.edit] on the returned object. The user will see a 'loading' @@ -162,7 +135,7 @@ public interface ActionInteractionBehavior : InteractionBehavior { See the documentation of this method for how it should be replaced. """, ReplaceWith("this.deferPublicResponse()"), - level = ERROR, + level = HIDDEN, ) @OptIn(KordUnsafe::class) public suspend fun deferPublicMessage(): PublicMessageInteractionResponseBehavior = deferPublicResponseUnsafe() diff --git a/core/src/main/kotlin/behavior/interaction/ComponentInteractionBehavior.kt b/core/src/main/kotlin/behavior/interaction/ComponentInteractionBehavior.kt index 671531705e52..63f7f1cea655 100644 --- a/core/src/main/kotlin/behavior/interaction/ComponentInteractionBehavior.kt +++ b/core/src/main/kotlin/behavior/interaction/ComponentInteractionBehavior.kt @@ -16,7 +16,7 @@ import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.message.create.UpdateMessageInteractionResponseCreateBuilder import dev.kord.rest.json.request.InteractionApplicationCommandCallbackData import dev.kord.rest.json.request.InteractionResponseCreateRequest -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -43,7 +43,7 @@ public interface ComponentInteractionBehavior : ActionInteractionBehavior { @Deprecated( "Renamed to 'deferPublicMessageUpdate'. Also take a look at the new documentation.", ReplaceWith("this.deferPublicMessageUpdate()"), - level = ERROR, + level = HIDDEN, ) public suspend fun acknowledgePublicDeferredMessageUpdate(): PublicMessageInteractionResponseBehavior { val request = InteractionResponseCreateRequest( @@ -88,7 +88,7 @@ public interface ComponentInteractionBehavior : ActionInteractionBehavior { @Deprecated( "Renamed to 'deferEphemeralMessageUpdate'. Also take a look at the new documentation.", ReplaceWith("this.deferEphemeralMessageUpdate()"), - level = ERROR, + level = HIDDEN, ) public suspend fun acknowledgeEphemeralDeferredMessageUpdate(): EphemeralMessageInteractionResponseBehavior { val request = InteractionResponseCreateRequest( @@ -159,7 +159,7 @@ public fun ComponentInteractionBehavior( @Deprecated( "Renamed to 'updatePublicMessage'. Also take a look at the new documentation.", ReplaceWith("this.updatePublicMessage()", "dev.kord.core.behavior.interaction.updatePublicMessage"), - level = ERROR, + level = HIDDEN, ) public suspend fun ComponentInteractionBehavior.acknowledgePublicUpdateMessage( builder: UpdateMessageInteractionResponseCreateBuilder.() -> Unit @@ -208,7 +208,7 @@ public suspend inline fun ComponentInteractionBehavior.updatePublicMessage( @Deprecated( "Renamed to 'updateEphemeralMessage'. Also take a look at the new documentation.", ReplaceWith("this.updateEphemeralMessage()", "dev.kord.core.behavior.interaction.updateEphemeralMessage"), - level = ERROR, + level = HIDDEN, ) public suspend fun ComponentInteractionBehavior.acknowledgeEphemeralUpdateMessage( builder: UpdateMessageInteractionResponseCreateBuilder.() -> Unit diff --git a/core/src/main/kotlin/behavior/interaction/GuildInteractionBehavior.kt b/core/src/main/kotlin/behavior/interaction/GuildInteractionBehavior.kt index 4e6651405718..9f74e69cd49c 100644 --- a/core/src/main/kotlin/behavior/interaction/GuildInteractionBehavior.kt +++ b/core/src/main/kotlin/behavior/interaction/GuildInteractionBehavior.kt @@ -11,7 +11,6 @@ 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 kotlin.DeprecationLevel.HIDDEN /** The behavior of a [GuildInteraction]. */ public interface GuildInteractionBehavior : InteractionBehavior { @@ -22,12 +21,6 @@ public interface GuildInteractionBehavior : InteractionBehavior { /** The behavior of the guild the interaction was sent from. */ public val guild: GuildBehavior get() = GuildBehavior(guildId, kord) - /** - * The [GuildBehavior] for the guild the command was executed in. - */ - @Deprecated("Renamed to 'guild'.", ReplaceWith("this.guild"), level = HIDDEN) - public val guildBehavior: GuildBehavior get() = guild - override val channel: GuildMessageChannelBehavior get() = GuildMessageChannelBehavior(guildId, channelId, kord) diff --git a/core/src/main/kotlin/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior.kt b/core/src/main/kotlin/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior.kt index 5f0d68be2141..a922e80ce57a 100644 --- a/core/src/main/kotlin/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior.kt +++ b/core/src/main/kotlin/behavior/interaction/response/FollowupPermittingInteractionResponseBehavior.kt @@ -14,7 +14,7 @@ import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.builder.message.create.FollowupMessageCreateBuilder import dev.kord.rest.request.RestRequestException -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -47,7 +47,7 @@ public fun FollowupPermittingInteractionResponseBehavior( "this.createPublicFollowup { builder() }", "dev.kord.core.behavior.interaction.response.createPublicFollowup", ), - level = ERROR, + level = HIDDEN, ) public suspend inline fun FollowupPermittingInteractionResponseBehavior.followUp( builder: FollowupMessageCreateBuilder.() -> Unit, @@ -83,7 +83,7 @@ public suspend inline fun FollowupPermittingInteractionResponseBehavior.createPu "this.createEphemeralFollowup { builder() }", "dev.kord.core.behavior.interaction.response.createEphemeralFollowup", ), - level = ERROR, + level = HIDDEN, ) public suspend inline fun FollowupPermittingInteractionResponseBehavior.followUpEphemeral( builder: FollowupMessageCreateBuilder.() -> Unit, diff --git a/core/src/main/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt b/core/src/main/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt index 140b31a7476a..cea8e6d296f2 100644 --- a/core/src/main/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt +++ b/core/src/main/kotlin/behavior/interaction/response/InteractionResponseBehavior.kt @@ -2,20 +2,12 @@ package dev.kord.core.behavior.interaction.response import dev.kord.common.entity.Snowflake import dev.kord.core.KordObject -import dev.kord.core.cache.data.toData -import dev.kord.core.entity.Message import dev.kord.core.entity.Strategizable import dev.kord.core.entity.interaction.Interaction -import dev.kord.core.entity.interaction.followup.EphemeralFollowupMessage import dev.kord.core.entity.interaction.followup.FollowupMessage -import dev.kord.core.entity.interaction.followup.PublicFollowupMessage import dev.kord.core.exception.EntityNotFoundException import dev.kord.core.supplier.EntitySupplyStrategy -import dev.kord.rest.builder.message.create.FollowupMessageCreateBuilder import dev.kord.rest.request.RestRequestException -import kotlin.DeprecationLevel.HIDDEN -import kotlin.contracts.InvocationKind -import kotlin.contracts.contract /** * A handle for operations that can follow an @@ -54,39 +46,3 @@ public sealed interface InteractionResponseBehavior : KordObject, Strategizable override fun withStrategy(strategy: EntitySupplyStrategy<*>): InteractionResponseBehavior } - -/** - * Follows up an interaction response without the [Ephemeral flag][dev.kord.common.entity.MessageFlag.Ephemeral]. - */ -@Deprecated( - "Followups are no longer supported for all 'InteractionResponseBehavior' types.", - ReplaceWith( - "if (this is FollowupPermittingInteractionResponseBehavior) this.createPublicFollowup { builder() }", - "dev.kord.core.behavior.interaction.response.FollowupPermittingInteractionResponseBehavior", - "dev.kord.core.behavior.interaction.response.createPublicFollowup", - ), - level = HIDDEN, -) -public suspend inline fun InteractionResponseBehavior.followUp(builder: FollowupMessageCreateBuilder.() -> Unit): PublicFollowupMessage { - contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - val message = kord.rest.interaction.createFollowupMessage(applicationId, token, ephemeral = false, builder) - return PublicFollowupMessage(Message(message.toData(), kord), applicationId, token, kord) -} - -/** - * Follows up an interaction response with the [Ephemeral flag][dev.kord.common.entity.MessageFlag.Ephemeral]. - */ -@Deprecated( - "Followups are no longer supported for all 'InteractionResponseBehavior' types.", - ReplaceWith( - "if (this is FollowupPermittingInteractionResponseBehavior) this.createEphemeralFollowup { builder() }", - "dev.kord.core.behavior.interaction.response.FollowupPermittingInteractionResponseBehavior", - "dev.kord.core.behavior.interaction.response.createEphemeralFollowup", - ), - level = HIDDEN, -) -public suspend inline fun InteractionResponseBehavior.followUpEphemeral(builder: FollowupMessageCreateBuilder.() -> Unit): EphemeralFollowupMessage { - contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - val message = kord.rest.interaction.createFollowupMessage(applicationId, token, ephemeral = true, builder) - return EphemeralFollowupMessage(Message(message.toData(), kord), applicationId, token, kord) -} diff --git a/core/src/main/kotlin/cache/data/InviteCreateData.kt b/core/src/main/kotlin/cache/data/InviteCreateData.kt index 406bae2c256e..15b6bae46d09 100644 --- a/core/src/main/kotlin/cache/data/InviteCreateData.kt +++ b/core/src/main/kotlin/cache/data/InviteCreateData.kt @@ -10,7 +10,7 @@ import dev.kord.common.serialization.DurationInSeconds import dev.kord.gateway.DiscordCreatedInvite import kotlinx.datetime.Instant import kotlinx.serialization.Serializable -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN @Serializable public data class InviteCreateData( @@ -25,7 +25,7 @@ public data class InviteCreateData( val targetUserId: OptionalSnowflake = OptionalSnowflake.Missing, val targetApplication: Optional = Optional.Missing(), /** @suppress */ - @Deprecated("No longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = ERROR) + @Deprecated("No longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = HIDDEN) val targetUserType: Optional<@Suppress("DEPRECATION_ERROR") dev.kord.common.entity.TargetUserType> = Optional.Missing(), val temporary: Boolean, val uses: Int, @@ -44,8 +44,7 @@ public data class InviteCreateData( targetType, targetUser.mapSnowflake { it.id }, targetApplication.map { PartialApplicationData.from(it) }, - @Suppress("DEPRECATION_ERROR") - targetUserType, + component11(), temporary, uses, ) diff --git a/core/src/main/kotlin/cache/data/InviteData.kt b/core/src/main/kotlin/cache/data/InviteData.kt index 593d372dc3b5..68100cef0b71 100644 --- a/core/src/main/kotlin/cache/data/InviteData.kt +++ b/core/src/main/kotlin/cache/data/InviteData.kt @@ -1,11 +1,14 @@ package dev.kord.core.cache.data -import dev.kord.common.entity.* +import dev.kord.common.entity.DiscordInvite +import dev.kord.common.entity.DiscordInviteWithMetadata +import dev.kord.common.entity.InviteTargetType +import dev.kord.common.entity.Snowflake import dev.kord.common.entity.optional.* import dev.kord.common.serialization.DurationInSeconds import kotlinx.datetime.Instant import kotlinx.serialization.Serializable -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN public sealed interface BaseInviteData { public val code: String @@ -31,8 +34,8 @@ public data class InviteData( override val targetUserId: OptionalSnowflake = OptionalSnowflake.Missing, override val targetApplication: Optional = Optional.Missing(), /** @suppress */ - @Deprecated("This is no longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = ERROR) - val targetUserType: Optional<@Suppress("DEPRECATION_ERROR") TargetUserType> = Optional.Missing(), + @Deprecated("This is no longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = HIDDEN) + val targetUserType: Optional<@Suppress("DEPRECATION_ERROR") dev.kord.common.entity.TargetUserType> = Optional.Missing(), override val approximatePresenceCount: OptionalInt = OptionalInt.Missing, override val approximateMemberCount: OptionalInt = OptionalInt.Missing, override val expiresAt: Optional = Optional.Missing(), @@ -50,7 +53,7 @@ public data class InviteData( targetType, targetUserId = targetUser.mapSnowflake { it.id }, targetApplication = targetApplication.map { PartialApplicationData.from(it) }, - @Suppress("DEPRECATION_ERROR") targetUserType, + component8(), approximatePresenceCount, approximateMemberCount, expiresAt, diff --git a/core/src/main/kotlin/cache/data/UserData.kt b/core/src/main/kotlin/cache/data/UserData.kt index 765e74f6199c..effda91ee4e0 100644 --- a/core/src/main/kotlin/cache/data/UserData.kt +++ b/core/src/main/kotlin/cache/data/UserData.kt @@ -9,7 +9,7 @@ import dev.kord.common.entity.UserFlags import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.OptionalBoolean import kotlinx.serialization.Serializable -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN private val WebhookData.nullableUserId get() = userId.value @@ -38,8 +38,8 @@ public data class UserData( } /** @suppress */ - @Suppress("DeprecatedCallableAddReplaceWith", "DEPRECATION_ERROR") - @Deprecated("'DiscordInviteUser' is deprecated. Use 'DiscordUser' instead.", level = ERROR) + @Suppress("DEPRECATION_ERROR") + @Deprecated("'DiscordInviteUser' is deprecated. Use 'DiscordUser' instead.", level = HIDDEN) public fun from(entity: dev.kord.gateway.DiscordInviteUser): UserData = with(entity) { UserData(id, username, discriminator, avatar, bot, publicFlags) } diff --git a/core/src/main/kotlin/entity/Activity.kt b/core/src/main/kotlin/entity/Activity.kt index 593034cefdce..4aa264fb25aa 100644 --- a/core/src/main/kotlin/entity/Activity.kt +++ b/core/src/main/kotlin/entity/Activity.kt @@ -1,11 +1,12 @@ package dev.kord.core.entity -import dev.kord.common.annotation.DeprecatedSinceKord -import dev.kord.common.entity.* +import dev.kord.common.entity.ActivityFlags +import dev.kord.common.entity.ActivityType +import dev.kord.common.entity.DiscordActivityEmoji +import dev.kord.common.entity.Snowflake import dev.kord.common.entity.optional.value import dev.kord.core.cache.data.ActivityData import kotlinx.datetime.Instant -import kotlin.DeprecationLevel.HIDDEN public class Activity(public val data: ActivityData) { @@ -14,10 +15,6 @@ public class Activity(public val data: ActivityData) { public val url: String? get() = data.url.value public val start: Instant? get() = data.timestamps.value?.start?.value - @DeprecatedSinceKord("0.7.0") - @Deprecated("stop was renamed to end.", ReplaceWith("end"), level = HIDDEN) - public val stop: Instant? by ::end - public val end: Instant? get() = data.timestamps.value?.end?.value public val applicationId: Snowflake? get() = data.applicationId.value diff --git a/core/src/main/kotlin/entity/Application.kt b/core/src/main/kotlin/entity/Application.kt index 6802562bf1ec..61deac4406c3 100644 --- a/core/src/main/kotlin/entity/Application.kt +++ b/core/src/main/kotlin/entity/Application.kt @@ -13,8 +13,7 @@ import dev.kord.core.cache.data.PartialApplicationData import dev.kord.core.event.guild.InviteCreateEvent import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import java.util.* -import kotlin.DeprecationLevel.HIDDEN +import java.util.Objects public sealed class BaseApplication( final override val kord: Kord, @@ -99,13 +98,6 @@ public class Application( public val team: Team? get() = data.team?.let { Team(it, kord) } - @Deprecated( - "'ownerId' might not be present, use 'getOwnerOrNull' instead.", - ReplaceWith("this.getOwnerOrNull()"), - level = HIDDEN, - ) - public suspend fun getOwner(): User = supplier.getUser(ownerId!!) - /** * Returns a new [Application] with the given [strategy]. */ diff --git a/core/src/main/kotlin/entity/Guild.kt b/core/src/main/kotlin/entity/Guild.kt index eafe4c9a522a..f2fff8189710 100644 --- a/core/src/main/kotlin/entity/Guild.kt +++ b/core/src/main/kotlin/entity/Guild.kt @@ -1,6 +1,5 @@ package dev.kord.core.entity -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.entity.* import dev.kord.common.entity.optional.* import dev.kord.common.exception.RequestException @@ -26,7 +25,7 @@ import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import kotlinx.datetime.Instant import java.util.* -import kotlin.DeprecationLevel.HIDDEN +import kotlin.DeprecationLevel.ERROR import kotlin.time.Duration /** @@ -52,7 +51,7 @@ public class Guild( public val afkChannel: VoiceChannelBehavior? get() = afkChannelId?.let { VoiceChannelBehavior(guildId = id, id = it, kord = kord) } - @Deprecated("Use 'cachedThreads' instead.", ReplaceWith("cachedThreads")) + @Deprecated("Use 'cachedThreads' instead.", ReplaceWith("cachedThreads"), level = ERROR) public val threads: Flow get() = flow { data.threads.mapList { @@ -136,33 +135,11 @@ public class Guild( */ public val isWidgetEnabled: Boolean get() = data.widgetEnabled.discordBoolean - /** - * The channel id that the guild's widget will generate an invite to, if set and enabled. - */ - @DeprecatedSinceKord("0.7.0") - @Deprecated( - "Embed was renamed to widget.", - ReplaceWith("widgetChannelId"), - level = HIDDEN, - ) - public val embedChannelId: Snowflake? by ::widgetChannelId - /** * The ID of the channel the widget will redirect users to, if present. */ public val widgetChannelId: Snowflake? get() = data.widgetChannelId.value - /** - * The behavior of the embedded channel, if present. - */ - @DeprecatedSinceKord("0.7.0") - @Deprecated( - "Embed was renamed to widget.", - ReplaceWith("widgetChannel"), - level = HIDDEN, - ) - public val embedChannel: TopGuildChannelBehavior? by ::widgetChannel - /** * The behavior of the channel widgets will redirect users to, if present. */ diff --git a/core/src/main/kotlin/entity/Invite.kt b/core/src/main/kotlin/entity/Invite.kt index c0253555befb..748a57668423 100644 --- a/core/src/main/kotlin/entity/Invite.kt +++ b/core/src/main/kotlin/entity/Invite.kt @@ -12,11 +12,9 @@ import dev.kord.core.cache.data.BaseInviteData import dev.kord.core.cache.data.InviteData import dev.kord.core.cache.data.InviteWithMetadataData import dev.kord.core.entity.channel.Channel -import dev.kord.core.exception.EntityNotFoundException import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import kotlinx.datetime.Instant -import kotlin.DeprecationLevel.ERROR import kotlin.DeprecationLevel.HIDDEN import kotlin.time.Duration @@ -85,9 +83,9 @@ public open class Invite( * @suppress */ @Suppress("DEPRECATION_ERROR") - @Deprecated("This is no longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = ERROR) + @Deprecated("This is no longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = HIDDEN) public val targetUserType: dev.kord.common.entity.TargetUserType? - get() = (data as? InviteData)?.targetUserType?.value + get() = (data as? InviteData)?.component8()?.value /** * Approximate count of total members. @@ -106,15 +104,6 @@ public open class Invite( public val guildScheduledEvent: GuildScheduledEvent? get() = data.guildScheduledEvent.value?.let { GuildScheduledEvent(it, kord) } - /** - * Requests to get the channel this invite is for. - * - * @throws [RequestException] if anything went wrong during the request. - * @throws [EntityNotFoundException] if the [Channel] wasn't present. - */ - @Deprecated("Use 'getChannelOrNull' instead.", ReplaceWith("this.getChannelOrNull()"), level = HIDDEN) - public suspend fun getChannel(): Channel? = channelId?.let { supplier.getChannel(it) } - /** * Requests to get the channel this invite is for, * returns null if the [Channel] isn't present. @@ -123,9 +112,6 @@ public open class Invite( */ public suspend fun getChannelOrNull(): Channel? = channelId?.let { supplier.getChannelOrNull(it) } - @Deprecated("Renamed to 'getInviterOrNull'", ReplaceWith("this.getInviterOrNull()"), level = HIDDEN) - public suspend fun getInviter(): User? = getInviterOrNull() - /** * Requests to get the creator of the invite for, * returns null if the [User] isn't present or [inviterId] is null. @@ -134,9 +120,6 @@ public open class Invite( */ public suspend fun getInviterOrNull(): User? = inviterId?.let { supplier.getUserOrNull(it) } - @Deprecated("Renamed to 'getTargetUserOrNull'", ReplaceWith("this.getTargetUserOrNull()"), level = HIDDEN) - public suspend fun getTargetUser(): User? = getTargetUserOrNull() - /** * Requests to get the user this invite was created for, * returns null if the [User] isn't present or [targetUserId] is null. diff --git a/core/src/main/kotlin/entity/Message.kt b/core/src/main/kotlin/entity/Message.kt index b87f564a4bec..30e0cd1ed211 100644 --- a/core/src/main/kotlin/entity/Message.kt +++ b/core/src/main/kotlin/entity/Message.kt @@ -32,7 +32,7 @@ import dev.kord.core.supplier.getChannelOfOrNull import kotlinx.coroutines.flow.* import kotlinx.datetime.Instant import java.util.Objects -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN /** * An instance of a [Discord Message][https://discord.com/developers/docs/resources/channel#message-object]. @@ -291,7 +291,7 @@ public class Message( public val webhookId: Snowflake? get() = data.webhookId.value /** @suppress */ - @Deprecated("Replaced with 'actionRows'.", ReplaceWith("this.actionRows"), level = ERROR) + @Deprecated("Replaced with 'actionRows'.", ReplaceWith("this.actionRows"), level = HIDDEN) public val components: List get() = data.components.orEmpty().map { Component(it) } diff --git a/core/src/main/kotlin/entity/Presence.kt b/core/src/main/kotlin/entity/Presence.kt index 04475fdee555..afcc1e90ed58 100644 --- a/core/src/main/kotlin/entity/Presence.kt +++ b/core/src/main/kotlin/entity/Presence.kt @@ -1,6 +1,5 @@ package dev.kord.core.entity -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.entity.PresenceStatus import dev.kord.common.entity.Snowflake import dev.kord.common.exception.RequestException @@ -11,9 +10,6 @@ import dev.kord.core.cache.data.PresenceData import dev.kord.core.exception.EntityNotFoundException import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import kotlinx.coroutines.flow.Flow -import kotlinx.coroutines.flow.emptyFlow -import kotlin.DeprecationLevel.HIDDEN public class Presence( public val data: PresenceData, @@ -25,24 +21,8 @@ public class Presence( public val clientStatus: ClientStatus get() = ClientStatus(data.clientStatus) - @DeprecatedSinceKord("0.7.0") - @Deprecated("Game field is no longer present.", ReplaceWith("activities.firstOrNull()"), level = HIDDEN) - public val game: Activity? - get() = activities.firstOrNull() - public val guildId: Snowflake get() = data.guildId - @Suppress("RedundantNullableReturnType") - @DeprecatedSinceKord("0.7.0") - @Deprecated("role ids are no longer present.", ReplaceWith("emptySet()"), level = HIDDEN) - public val roleIds: Set? - get() = emptySet() - - @DeprecatedSinceKord("0.7.0") - @Deprecated("role ids are no longer present.", ReplaceWith("emptyFlow()"), level = HIDDEN) - public val roles: Flow - get() = emptyFlow() - public val status: PresenceStatus get() = data.status public val userId: Snowflake get() = data.userId diff --git a/core/src/main/kotlin/entity/User.kt b/core/src/main/kotlin/entity/User.kt index f48e3b99393b..37e5b67c5bc7 100644 --- a/core/src/main/kotlin/entity/User.kt +++ b/core/src/main/kotlin/entity/User.kt @@ -1,10 +1,8 @@ package dev.kord.core.entity import dev.kord.common.Color -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.entity.Snowflake import dev.kord.common.entity.UserFlags -import dev.kord.common.entity.UserPremium import dev.kord.core.Kord import dev.kord.core.KordObject import dev.kord.core.behavior.UserBehavior @@ -12,7 +10,6 @@ import dev.kord.core.cache.data.UserData import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.rest.Image -import kotlin.DeprecationLevel.HIDDEN /** * An instance of a [Discord User](https://discord.com/developers/docs/resources/user#user-object). @@ -43,13 +40,6 @@ public open class User( */ public val discriminator: String get() = data.discriminator - /** - * The flags on a user's account, if present. - */ - @Deprecated("Use publicFlags instead.", ReplaceWith("publicFlags"), level = HIDDEN) - @DeprecatedSinceKord("0.7.0") - public val flags: UserFlags? by ::publicFlags - override suspend fun asUser(): User { return this } @@ -63,15 +53,6 @@ public open class User( */ public val publicFlags: UserFlags? get() = data.publicFlags.value - /** - * The type of Nitro subscription on a user's account, if present. - */ - @Suppress("DeprecatedCallableAddReplaceWith", "RedundantNullableReturnType") - @Deprecated("premiumType is never present.", level = HIDDEN) - @DeprecatedSinceKord("0.7.0") - public val premiumType: UserPremium? - get() = throw NotImplementedError("premiumType is no longer supported.") - /** * The complete user tag. */ diff --git a/core/src/main/kotlin/entity/VoiceState.kt b/core/src/main/kotlin/entity/VoiceState.kt index 5265a5b6073c..22003beea14b 100644 --- a/core/src/main/kotlin/entity/VoiceState.kt +++ b/core/src/main/kotlin/entity/VoiceState.kt @@ -1,6 +1,5 @@ package dev.kord.core.entity -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.entity.Snowflake import dev.kord.common.exception.RequestException import dev.kord.core.Kord @@ -13,7 +12,6 @@ import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import dev.kord.core.supplier.getChannelOfOrNull import kotlinx.datetime.Instant -import kotlin.DeprecationLevel.HIDDEN public class VoiceState( public val data: VoiceStateData, @@ -57,21 +55,6 @@ public class VoiceState( /** The [Instant] at which the user requested to speak. */ public val requestToSpeakTimestamp: Instant? get() = data.requestToSpeakTimestamp - /** Discord does not support anger detection. */ - @Deprecated("I can't see any steam...", ReplaceWith("this.isSelfStreaming"), level = HIDDEN) - public val isSelfSteaming: Boolean - get() = isSelfStreaming - - /** - * Requests to get the voice channel of this voice state. - * Returns null if the [VoiceChannel] isn't present, or [channelId] is null. - * - * @throws [RequestException] if anything went wrong during the request. - */ - @DeprecatedSinceKord("0.7.0") - @Deprecated("Use getChannelOrNull instead.", ReplaceWith("getChannelOrNull"), level = HIDDEN) - public suspend fun getChannel(): BaseVoiceChannelBehavior? = channelId?.let { supplier.getChannelOfOrNull(it) } - /** * Requests to get the voice channel, returns null if the [VoiceChannel] isn't present. * diff --git a/core/src/main/kotlin/entity/Webhook.kt b/core/src/main/kotlin/entity/Webhook.kt index 81fb82526f28..64ae09d499e2 100644 --- a/core/src/main/kotlin/entity/Webhook.kt +++ b/core/src/main/kotlin/entity/Webhook.kt @@ -1,6 +1,5 @@ package dev.kord.core.entity -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.entity.Snowflake import dev.kord.common.entity.WebhookType import dev.kord.common.exception.RequestException @@ -9,15 +8,14 @@ import dev.kord.core.behavior.GuildBehavior import dev.kord.core.behavior.WebhookBehavior import dev.kord.core.behavior.channel.MessageChannelBehavior import dev.kord.core.cache.data.WebhookData -import dev.kord.core.entity.channel.TopGuildMessageChannel import dev.kord.core.entity.channel.MessageChannel +import dev.kord.core.entity.channel.TopGuildMessageChannel import dev.kord.core.exception.EntityNotFoundException 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 java.util.* -import kotlin.DeprecationLevel.HIDDEN +import java.util.Objects public data class Webhook( val data: WebhookData, @@ -43,16 +41,6 @@ public data class Webhook( val guild: GuildBehavior? get() = guildId?.let { GuildBehavior(it, kord) } - /** - * Requests to get the guild this webhook belongs to. - * - * @throws [RequestException] if anything went wrong during the request. - * @throws [EntityNotFoundException] if the [Guild] wasn't present. - */ - @DeprecatedSinceKord("0.7.0") - @Deprecated("Use getGuildOrNull instead.", ReplaceWith("getGuildOrNull()"), level = HIDDEN) - public suspend fun getGuild(): Guild? = guildId?.let { supplier.getGuild(it) } - /** * Requests to get the guild this webhook belongs to, * returns null if the [Guild] isn't present. diff --git a/core/src/main/kotlin/entity/channel/Channel.kt b/core/src/main/kotlin/entity/channel/Channel.kt index e9e3dbde74e2..7ec3e20013b8 100644 --- a/core/src/main/kotlin/entity/channel/Channel.kt +++ b/core/src/main/kotlin/entity/channel/Channel.kt @@ -49,7 +49,7 @@ public interface Channel : ChannelBehavior { GuildVoice -> VoiceChannel(data, kord) GuildCategory -> Category(data, kord) GuildNews -> NewsChannel(data, kord) - @Suppress("DEPRECATION_ERROR") GuildStore -> @Suppress("DEPRECATION_ERROR") StoreChannel(data, kord) + @Suppress("DEPRECATION_ERROR") ChannelType.GuildStore -> @Suppress("DEPRECATION_ERROR") StoreChannel(data, kord) PublicNewsThread -> NewsChannelThread(data, kord) PrivateThread -> TextChannelThread(data, kord) PublicGuildThread -> TextChannelThread(data, kord) diff --git a/core/src/main/kotlin/entity/channel/MessageChannel.kt b/core/src/main/kotlin/entity/channel/MessageChannel.kt index e6f94bc25348..6aa7a9520c6b 100644 --- a/core/src/main/kotlin/entity/channel/MessageChannel.kt +++ b/core/src/main/kotlin/entity/channel/MessageChannel.kt @@ -8,7 +8,6 @@ import dev.kord.core.behavior.channel.MessageChannelBehavior import dev.kord.core.entity.Message import dev.kord.core.supplier.EntitySupplyStrategy import kotlinx.datetime.Instant -import kotlin.DeprecationLevel.HIDDEN /** * An instance of a Discord channel that can use messages. @@ -25,17 +24,6 @@ public interface MessageChannel : Channel, MessageChannelBehavior { */ public val lastMessage: MessageBehavior? get() = lastMessageId?.let { MessageBehavior(id, it, kord) } - /** - * The timestamp of the last pin - */ - @Deprecated( - "lastPinTimeStamp was renamed to lastPinTimestamp.", - ReplaceWith("lastPinTimestamp"), - level = HIDDEN, - ) - public val lastPinTimeStamp: Instant? - get() = lastPinTimestamp - /** * The timestamp of the last pin */ diff --git a/core/src/main/kotlin/entity/channel/StoreChannel.kt b/core/src/main/kotlin/entity/channel/StoreChannel.kt index 4b0fd5b381cf..ae3e91bf8882 100644 --- a/core/src/main/kotlin/entity/channel/StoreChannel.kt +++ b/core/src/main/kotlin/entity/channel/StoreChannel.kt @@ -8,7 +8,7 @@ import dev.kord.core.cache.data.ChannelData import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import java.util.Objects -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN /** * An instance of a Discord Store Channel associated to a guild. @@ -24,7 +24,7 @@ import kotlin.DeprecationLevel.ERROR See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public data class StoreChannel( override val data: ChannelData, diff --git a/core/src/main/kotlin/entity/channel/thread/ThreadChannel.kt b/core/src/main/kotlin/entity/channel/thread/ThreadChannel.kt index 1938097a2efb..abca84d2071a 100644 --- a/core/src/main/kotlin/entity/channel/thread/ThreadChannel.kt +++ b/core/src/main/kotlin/entity/channel/thread/ThreadChannel.kt @@ -15,7 +15,6 @@ import dev.kord.core.entity.channel.GuildMessageChannel import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import kotlinx.datetime.Instant -import kotlin.DeprecationLevel.HIDDEN import kotlin.time.Duration public interface ThreadChannel : GuildMessageChannel, ThreadChannelBehavior { @@ -54,17 +53,6 @@ public interface ThreadChannel : GuildMessageChannel, ThreadChannelBehavior { */ public val isNsfw: Boolean get() = data.nsfw.discordBoolean - /** - * timestamp when the thread's archive status was last changed. - */ - @Deprecated( - "archiveTimeStamp was renamed to archiveTimestamp.", - ReplaceWith("archiveTimestamp"), - level = HIDDEN, - ) - public val archiveTimeStamp: Instant - get() = archiveTimestamp - /** * The timestamp when the thread's archive status was last changed. */ diff --git a/core/src/main/kotlin/entity/interaction/MessageCommandInteraction.kt b/core/src/main/kotlin/entity/interaction/MessageCommandInteraction.kt index 89f659052889..966d41eef5aa 100644 --- a/core/src/main/kotlin/entity/interaction/MessageCommandInteraction.kt +++ b/core/src/main/kotlin/entity/interaction/MessageCommandInteraction.kt @@ -9,7 +9,6 @@ import dev.kord.core.entity.Message import dev.kord.core.entity.application.MessageCommand import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import kotlin.DeprecationLevel.HIDDEN /** An [ApplicationCommandInteraction] created when a user uses a [MessageCommand]. */ public sealed interface MessageCommandInteraction : ApplicationCommandInteraction { @@ -17,10 +16,6 @@ public sealed interface MessageCommandInteraction : ApplicationCommandInteractio /** The id of the message targeted by the [MessageCommand]. */ public val targetId: Snowflake get() = data.data.targetId.value!! - @Deprecated("Renamed to 'target'.", ReplaceWith("this.target"), level = HIDDEN) - public val targetBehavior: MessageBehavior - get() = target - /** The behavior of the message targeted by the [MessageCommand]. */ public val target: MessageBehavior get() = MessageBehavior(channelId, targetId, kord) diff --git a/core/src/main/kotlin/entity/interaction/UserCommandInteraction.kt b/core/src/main/kotlin/entity/interaction/UserCommandInteraction.kt index b0b1874bbeab..c945d6de90df 100644 --- a/core/src/main/kotlin/entity/interaction/UserCommandInteraction.kt +++ b/core/src/main/kotlin/entity/interaction/UserCommandInteraction.kt @@ -9,7 +9,6 @@ import dev.kord.core.entity.User import dev.kord.core.entity.application.UserCommand import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import kotlin.DeprecationLevel.HIDDEN /** An [ApplicationCommandInteraction] created when a user uses a [UserCommand]. */ public sealed interface UserCommandInteraction : ApplicationCommandInteraction { @@ -17,10 +16,6 @@ public sealed interface UserCommandInteraction : ApplicationCommandInteraction { /** The id of the user targeted by the [UserCommand]. */ public val targetId: Snowflake get() = data.data.targetId.value!! - @Deprecated("Renamed to 'target'.", ReplaceWith("this.target"), level = HIDDEN) - public val targetBehavior: UserBehavior - get() = target - /** The behavior of the user targeted by the [UserCommand]. */ public val target: UserBehavior get() = UserBehavior(targetId, kord) diff --git a/core/src/main/kotlin/event/channel/ChannelCreateEvent.kt b/core/src/main/kotlin/event/channel/ChannelCreateEvent.kt index 93618dc87a55..02332b868e1b 100644 --- a/core/src/main/kotlin/event/channel/ChannelCreateEvent.kt +++ b/core/src/main/kotlin/event/channel/ChannelCreateEvent.kt @@ -3,7 +3,7 @@ package dev.kord.core.event.channel import dev.kord.core.Kord import dev.kord.core.entity.channel.* import dev.kord.core.event.Event -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN public interface ChannelCreateEvent : Event { public val channel: Channel @@ -51,10 +51,10 @@ public class NewsChannelCreateEvent( See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public class StoreChannelCreateEvent( - override val channel: StoreChannel, + override val channel: dev.kord.core.entity.channel.StoreChannel, override val shard: Int, override val customContext: Any?, ) : ChannelCreateEvent { diff --git a/core/src/main/kotlin/event/channel/ChannelDeleteEvent.kt b/core/src/main/kotlin/event/channel/ChannelDeleteEvent.kt index 08df2075a3d4..b22ab5b50f87 100644 --- a/core/src/main/kotlin/event/channel/ChannelDeleteEvent.kt +++ b/core/src/main/kotlin/event/channel/ChannelDeleteEvent.kt @@ -3,7 +3,7 @@ package dev.kord.core.event.channel import dev.kord.core.Kord import dev.kord.core.entity.channel.* import dev.kord.core.event.Event -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN public interface ChannelDeleteEvent : Event { public val channel: Channel @@ -51,10 +51,10 @@ public class NewsChannelDeleteEvent( See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public class StoreChannelDeleteEvent( - override val channel: StoreChannel, + override val channel: dev.kord.core.entity.channel.StoreChannel, override val shard: Int, override val customContext: Any?, ) : ChannelDeleteEvent { diff --git a/core/src/main/kotlin/event/channel/ChannelUpdateEvent.kt b/core/src/main/kotlin/event/channel/ChannelUpdateEvent.kt index ddb0500f4f37..351dedac78f8 100644 --- a/core/src/main/kotlin/event/channel/ChannelUpdateEvent.kt +++ b/core/src/main/kotlin/event/channel/ChannelUpdateEvent.kt @@ -3,7 +3,7 @@ package dev.kord.core.event.channel import dev.kord.core.Kord import dev.kord.core.entity.channel.* import dev.kord.core.event.Event -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN public interface ChannelUpdateEvent : Event { @@ -56,11 +56,11 @@ public class NewsChannelUpdateEvent( See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public class StoreChannelUpdateEvent( - override val channel: StoreChannel, - override val old: StoreChannel?, + override val channel: dev.kord.core.entity.channel.StoreChannel, + override val old: dev.kord.core.entity.channel.StoreChannel?, override val shard: Int, override val customContext: Any?, ) : ChannelUpdateEvent { diff --git a/core/src/main/kotlin/event/guild/InviteCreateEvent.kt b/core/src/main/kotlin/event/guild/InviteCreateEvent.kt index 5d211042673e..055a4665edbb 100644 --- a/core/src/main/kotlin/event/guild/InviteCreateEvent.kt +++ b/core/src/main/kotlin/event/guild/InviteCreateEvent.kt @@ -1,6 +1,5 @@ package dev.kord.core.event.guild -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.entity.InviteTargetType import dev.kord.common.entity.Snowflake import dev.kord.common.exception.RequestException @@ -18,7 +17,6 @@ import dev.kord.core.exception.EntityNotFoundException import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy import kotlinx.datetime.Instant -import kotlin.DeprecationLevel.HIDDEN import kotlin.time.Duration /** @@ -145,16 +143,6 @@ public class InviteCreateEvent( */ public suspend fun getChannelOrNUll(): Channel? = supplier.getChannelOrNull(channelId) - /** - * Requests to get the [Guild] of the invite. - * - * @throws [RequestException] if anything went wrong during the request. - * @throws [EntityNotFoundException] if the wasn't present. - */ - @DeprecatedSinceKord("0.7.0") - @Deprecated("Use getGuildOrNull instead.", ReplaceWith("getGuildOrNull()"), level = HIDDEN) - public suspend fun getGuild(): Guild? = guildId?.let { supplier.getGuild(it) } - /** * Requests to get the [Guild] of the invite. * returns null if the guild isn't present, or if invite does not target a guild. @@ -163,16 +151,6 @@ public class InviteCreateEvent( */ public suspend fun getGuildOrNull(): Guild? = guildId?.let { supplier.getGuildOrNull(it) } - /** - * Requests to get the [User] that created the invite, or null if no inviter created this invite. - * - * @throws [RequestException] if anything went wrong during the request. - * @throws [EntityNotFoundException] if the wasn't present. - */ - @DeprecatedSinceKord("0.7.0") - @Deprecated("Use getInviterOrNull instead.", ReplaceWith("getInviterOrNull()"), level = HIDDEN) - public suspend fun getInviter(): User? = inviterId?.let { supplier.getUser(it) } - /** * Requests to get the [User] that created the invite, * returns null if the user isn't present or no inviter created this invite. @@ -181,22 +159,6 @@ public class InviteCreateEvent( */ public suspend fun getInviterOrNull(): User? = inviterId?.let { supplier.getUserOrNull(it) } - /** - * Requests to get the [User] that created the invite as a [Member] of the [Guild][getGuild]. - * - * @throws [RequestException] if anything went wrong during the request. - * @throws [EntityNotFoundException] if the wasn't present. - */ - @DeprecatedSinceKord("0.7.0") - @Deprecated( - "Use getInviterAsMemberOrNull instead.", - ReplaceWith("getInviterAsMemberOrNull()"), - level = HIDDEN, - ) - public suspend fun getInviterAsMember(): Member? { - return supplier.getMember(guildId = guildId ?: return null, userId = inviterId ?: return null) - } - /** * Requests to get the [User] that created the invite as a [Member] of the [Guild][getGuildOrNull], * returns null if the user isn't present, the invite did not target a guild, or no inviter created the event. diff --git a/core/src/main/kotlin/event/guild/InviteDeleteEvent.kt b/core/src/main/kotlin/event/guild/InviteDeleteEvent.kt index c496f5977f0c..811ed52a4bbc 100644 --- a/core/src/main/kotlin/event/guild/InviteDeleteEvent.kt +++ b/core/src/main/kotlin/event/guild/InviteDeleteEvent.kt @@ -13,7 +13,6 @@ import dev.kord.core.event.Event import dev.kord.core.exception.EntityNotFoundException import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import kotlin.DeprecationLevel.HIDDEN /** * Sent when an invite is deleted. @@ -67,16 +66,6 @@ public class InviteDeleteEvent( */ public suspend fun getChannelOrNull(): Channel? = supplier.getChannelOrNull(channelId) - /** - * Requests to get the [Guild] of the invite. - */ - @Deprecated( - "'guildId' might not be present, use 'getGuildOrNull' instead.", - ReplaceWith("this.getGuildOrNull()"), - level = HIDDEN, - ) - public suspend fun getGuild(): Guild = supplier.getGuild(guildId!!) - /** * Requests to get the [Guild] of the invite. * returns null if the guild isn't present, or if invite does not target a guild. diff --git a/core/src/main/kotlin/event/guild/MemberUpdateEvent.kt b/core/src/main/kotlin/event/guild/MemberUpdateEvent.kt index 80322684236b..306e393eafb9 100644 --- a/core/src/main/kotlin/event/guild/MemberUpdateEvent.kt +++ b/core/src/main/kotlin/event/guild/MemberUpdateEvent.kt @@ -1,18 +1,14 @@ package dev.kord.core.event.guild -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.entity.Snowflake import dev.kord.core.Kord import dev.kord.core.behavior.GuildBehavior -import dev.kord.core.entity.* +import dev.kord.core.entity.Guild +import dev.kord.core.entity.Member +import dev.kord.core.entity.Strategizable import dev.kord.core.event.Event import dev.kord.core.supplier.EntitySupplier import dev.kord.core.supplier.EntitySupplyStrategy -import kotlinx.coroutines.flow.Flow -import kotlinx.datetime.Instant -import kotlin.DeprecationLevel.HIDDEN - -private const val deprecationMessage = "The full member is now available in this Event." public class MemberUpdateEvent( public val member: Member, @@ -25,42 +21,8 @@ public class MemberUpdateEvent( public val guildId: Snowflake get() = member.guildId - @DeprecatedSinceKord("0.7.0") - @Deprecated(deprecationMessage, ReplaceWith("member.id"), level = HIDDEN) - public val memberId: Snowflake by member::id - - @DeprecatedSinceKord("0.7.0") - @Deprecated(deprecationMessage, ReplaceWith("member"), level = HIDDEN) - public val user: User by ::member - - @DeprecatedSinceKord("0.7.0") - @Deprecated(deprecationMessage, ReplaceWith("member.roleIds"), level = HIDDEN) - public val currentRoleIds: Set by member::roleIds - - @DeprecatedSinceKord("0.7.0") - @Deprecated(deprecationMessage, ReplaceWith("member.nickname"), level = HIDDEN) - public val currentNickName: String? by member::nickname - - @DeprecatedSinceKord("0.7.0") - @Deprecated(deprecationMessage, ReplaceWith("member.premiumSince"), level = HIDDEN) - public val premiumSince: Instant? by member::premiumSince - public val guild: GuildBehavior get() = member.guild - @DeprecatedSinceKord("0.7.0") - @Deprecated(deprecationMessage, ReplaceWith("member.roles"), level = HIDDEN) - public val currentRoles: Flow by member::roles - - @DeprecatedSinceKord("0.7.0") - @Suppress("RedundantSuspendModifier") - @Deprecated(deprecationMessage, ReplaceWith("member"), level = HIDDEN) - public suspend fun getMember(): Member = member - - @DeprecatedSinceKord("0.7.0") - @Suppress("RedundantSuspendModifier", "RedundantNullableReturnType") - @Deprecated(deprecationMessage, ReplaceWith("member"), level = HIDDEN) - public suspend fun getMemberOrNull(): Member? = member - public suspend fun getGuild(): Guild = supplier.getGuild(guildId) public suspend fun getGuildOrNull(): Guild? = supplier.getGuildOrNull(guildId) diff --git a/core/src/main/kotlin/gateway/handler/ChannelEventHandler.kt b/core/src/main/kotlin/gateway/handler/ChannelEventHandler.kt index 744e82b11b28..e9746f65d2fc 100644 --- a/core/src/main/kotlin/gateway/handler/ChannelEventHandler.kt +++ b/core/src/main/kotlin/gateway/handler/ChannelEventHandler.kt @@ -36,7 +36,7 @@ internal class ChannelEventHandler : BaseGatewayEventHandler() { val coreEvent = when (val channel = Channel.from(data, kord)) { is NewsChannel -> NewsChannelCreateEvent(channel, shard, context?.get()) - is @Suppress("DEPRECATION_ERROR") StoreChannel -> @Suppress("DEPRECATION_ERROR") StoreChannelCreateEvent(channel, shard, context?.get()) + is @Suppress("DEPRECATION_ERROR") dev.kord.core.entity.channel.StoreChannel -> @Suppress("DEPRECATION_ERROR") dev.kord.core.event.channel.StoreChannelCreateEvent(channel, shard, context?.get()) is DmChannel -> DMChannelCreateEvent(channel, shard, context?.get()) is TextChannel -> TextChannelCreateEvent(channel, shard, context?.get()) is StageChannel -> StageChannelCreateEvent(channel, shard, context?.get()) @@ -57,7 +57,7 @@ internal class ChannelEventHandler : BaseGatewayEventHandler() { val old = oldData?.let { Channel.from(it, kord) } val coreEvent = when (val channel = Channel.from(data, kord)) { is NewsChannel -> NewsChannelUpdateEvent(channel, old as? NewsChannel, shard, context?.get()) - is @Suppress("DEPRECATION_ERROR") StoreChannel -> @Suppress("DEPRECATION_ERROR") StoreChannelUpdateEvent(channel, old as? StoreChannel, shard, context?.get()) + is @Suppress("DEPRECATION_ERROR") dev.kord.core.entity.channel.StoreChannel -> @Suppress("DEPRECATION_ERROR") dev.kord.core.event.channel.StoreChannelUpdateEvent(channel, old as? @Suppress("DEPRECATION_ERROR") dev.kord.core.entity.channel.StoreChannel, shard, context?.get()) is DmChannel -> DMChannelUpdateEvent(channel, old as? DmChannel, shard, context?.get()) is TextChannel -> TextChannelUpdateEvent(channel, old as? TextChannel, shard, context?.get()) is StageChannel -> StageChannelUpdateEvent(channel, old as? StageChannel, shard, context?.get()) @@ -77,7 +77,7 @@ internal class ChannelEventHandler : BaseGatewayEventHandler() { val coreEvent = when (val channel = Channel.from(data, kord)) { is NewsChannel -> NewsChannelDeleteEvent(channel, shard, context?.get()) - is @Suppress("DEPRECATION_ERROR") StoreChannel -> @Suppress("DEPRECATION_ERROR") StoreChannelDeleteEvent(channel, shard, context?.get()) + is @Suppress("DEPRECATION_ERROR") dev.kord.core.entity.channel.StoreChannel -> @Suppress("DEPRECATION_ERROR") dev.kord.core.event.channel.StoreChannelDeleteEvent(channel, shard, context?.get()) is DmChannel -> DMChannelDeleteEvent(channel, shard, context?.get()) is TextChannel -> TextChannelDeleteEvent(channel, shard, context?.get()) is StageChannel -> StageChannelDeleteEvent(channel, shard, context?.get()) diff --git a/core/src/main/kotlin/live/channel/LiveChannel.kt b/core/src/main/kotlin/live/channel/LiveChannel.kt index 7a7990264174..43bb2eb4184e 100644 --- a/core/src/main/kotlin/live/channel/LiveChannel.kt +++ b/core/src/main/kotlin/live/channel/LiveChannel.kt @@ -24,7 +24,7 @@ public fun Channel.live( ): LiveChannel = when (this) { is DmChannel -> this.live(coroutineScope) is NewsChannel -> this.live(coroutineScope) - is @Suppress("DEPRECATION_ERROR") StoreChannel -> this.live(coroutineScope) + is @Suppress("DEPRECATION_ERROR") dev.kord.core.entity.channel.StoreChannel -> this.live(coroutineScope) is TextChannel -> this.live(coroutineScope) is VoiceChannel -> this.live(coroutineScope) else -> error("unsupported channel type") diff --git a/core/src/main/kotlin/supplier/StoreEntitySupplier.kt b/core/src/main/kotlin/supplier/StoreEntitySupplier.kt index 5bcd064ee531..0c53ee6adad4 100644 --- a/core/src/main/kotlin/supplier/StoreEntitySupplier.kt +++ b/core/src/main/kotlin/supplier/StoreEntitySupplier.kt @@ -3,7 +3,6 @@ package dev.kord.core.supplier import dev.kord.cache.api.DataCache import dev.kord.cache.api.put import dev.kord.common.entity.Snowflake -import dev.kord.core.Kord import dev.kord.core.entity.* import dev.kord.core.entity.application.ApplicationCommandPermissions import dev.kord.core.entity.application.GlobalApplicationCommand @@ -17,7 +16,6 @@ import dev.kord.core.entity.interaction.followup.FollowupMessage import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.onEach import kotlinx.datetime.Instant -import kotlin.DeprecationLevel.HIDDEN /** * [EntitySupplier] that delegates to another [EntitySupplier] to resolve entities. @@ -29,14 +27,6 @@ public class StoreEntitySupplier( private val cache: DataCache, ) : EntitySupplier { - @Deprecated( - "Parameter 'kord' is unused, use other constructor instead.", - ReplaceWith("StoreEntitySupplier(supplier, cache)"), - level = HIDDEN, - ) - @Suppress("UNUSED_PARAMETER") - public constructor(supplier: EntitySupplier, cache: DataCache, kord: Kord) : this(supplier, cache) - override val guilds: Flow get() = storeOnEach(supplier.guilds) { it.data } diff --git a/gateway/api/gateway.api b/gateway/api/gateway.api index 098721301252..9149d77b7ea5 100644 --- a/gateway/api/gateway.api +++ b/gateway/api/gateway.api @@ -352,7 +352,7 @@ public final class dev/kord/gateway/DiscordCreatedInvite { public final fun getTargetApplication ()Ldev/kord/common/entity/optional/Optional; public final fun getTargetType ()Ldev/kord/common/entity/optional/Optional; public final fun getTargetUser ()Ldev/kord/common/entity/optional/Optional; - public final fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; + public final synthetic fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; public final fun getTemporary ()Z public final fun getUses ()I public fun hashCode ()I diff --git a/gateway/src/main/kotlin/Event.kt b/gateway/src/main/kotlin/Event.kt index bef787e5b9b0..03e06684ad3b 100644 --- a/gateway/src/main/kotlin/Event.kt +++ b/gateway/src/main/kotlin/Event.kt @@ -22,7 +22,7 @@ import kotlinx.serialization.encoding.Encoder import kotlinx.serialization.json.JsonElement import kotlinx.serialization.json.JsonObject import mu.KotlinLogging -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlinx.serialization.DeserializationStrategy as KDeserializationStrategy private val jsonLogger = KotlinLogging.logger { } @@ -710,9 +710,9 @@ public data class DiscordCreatedInvite( @SerialName("target_application") val targetApplication: Optional = Optional.Missing(), /** @suppress */ - @Deprecated("No longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = ERROR) + @Deprecated("No longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = HIDDEN) @SerialName("target_user_type") - val targetUserType: Optional<@Suppress("DEPRECATION_ERROR") TargetUserType> = Optional.Missing(), + val targetUserType: Optional<@Suppress("DEPRECATION_ERROR") dev.kord.common.entity.TargetUserType> = Optional.Missing(), val temporary: Boolean, val uses: Int, ) @@ -721,7 +721,7 @@ public data class DiscordCreatedInvite( @Deprecated( "Use 'DiscordUser' instead, All missing fields have defaults.", ReplaceWith("DiscordUser", "dev.kord.common.entity.DiscordUser"), - level = ERROR, + level = HIDDEN, ) @Serializable public data class DiscordInviteUser( diff --git a/rest/api/rest.api b/rest/api/rest.api index 24adfaddfe6e..76c7503b7d70 100644 --- a/rest/api/rest.api +++ b/rest/api/rest.api @@ -414,28 +414,28 @@ public final class dev/kord/rest/builder/channel/GuildChannelSwapBuilder { public final class dev/kord/rest/builder/channel/InviteCreateBuilder : dev/kord/rest/builder/AuditRequestBuilder { public fun ()V - public final fun getAge ()Ljava/lang/Integer; + public final synthetic fun getAge ()Ljava/lang/Integer; public final fun getMaxAge-FghU774 ()Lkotlin/time/Duration; public final fun getMaxUses ()Ljava/lang/Integer; public fun getReason ()Ljava/lang/String; public final fun getTargetApplicationId ()Ldev/kord/common/entity/Snowflake; public final fun getTargetType ()Ldev/kord/common/entity/InviteTargetType; - public final fun getTargetUser ()Ldev/kord/common/entity/Snowflake; + public final synthetic fun getTargetUser ()Ldev/kord/common/entity/Snowflake; public final fun getTargetUserId ()Ldev/kord/common/entity/Snowflake; public final fun getTemporary ()Ljava/lang/Boolean; public final fun getUnique ()Ljava/lang/Boolean; - public final fun getUses ()Ljava/lang/Integer; - public final fun setAge (Ljava/lang/Integer;)V + public final synthetic fun getUses ()Ljava/lang/Integer; + public final synthetic fun setAge (Ljava/lang/Integer;)V public final fun setMaxAge-BwNAW2A (Lkotlin/time/Duration;)V public final fun setMaxUses (Ljava/lang/Integer;)V public fun setReason (Ljava/lang/String;)V public final fun setTargetApplicationId (Ldev/kord/common/entity/Snowflake;)V public final fun setTargetType (Ldev/kord/common/entity/InviteTargetType;)V - public final fun setTargetUser (Ldev/kord/common/entity/Snowflake;)V + public final synthetic fun setTargetUser (Ldev/kord/common/entity/Snowflake;)V public final fun setTargetUserId (Ldev/kord/common/entity/Snowflake;)V public final fun setTemporary (Ljava/lang/Boolean;)V public final fun setUnique (Ljava/lang/Boolean;)V - public final fun setUses (Ljava/lang/Integer;)V + public final synthetic fun setUses (Ljava/lang/Integer;)V public fun toRequest ()Ldev/kord/rest/json/request/InviteCreateRequest; public synthetic fun toRequest ()Ljava/lang/Object; } @@ -2166,7 +2166,6 @@ public final class dev/kord/rest/json/JsonErrorCode : java/lang/Enum { public static final field CannotSendEmptyMessage Ldev/kord/rest/json/JsonErrorCode; public static final field CannotSendExplicitContent Ldev/kord/rest/json/JsonErrorCode; public static final field CannotSendMessagesInNonTextChannel Ldev/kord/rest/json/JsonErrorCode; - public static final field CannotSendMessagesInVoiceChannel Ldev/kord/rest/json/JsonErrorCode; public static final field CannotSendMessagesToUser Ldev/kord/rest/json/JsonErrorCode; public static final field CannotUpdateFinishedEvent Ldev/kord/rest/json/JsonErrorCode; public static final field ChannelVerificationTooHigh Ldev/kord/rest/json/JsonErrorCode; @@ -2201,12 +2200,9 @@ public final class dev/kord/rest/json/JsonErrorCode : java/lang/Enum { public static final field InvalidRole Ldev/kord/rest/json/JsonErrorCode; public static final field InvalidStickerFrameRate Ldev/kord/rest/json/JsonErrorCode; public static final field InvalidStickerSent Ldev/kord/rest/json/JsonErrorCode; - public static final field InvalidThreadBefore Ldev/kord/rest/json/JsonErrorCode; public static final field InvalidThreadNotificationSettings Ldev/kord/rest/json/JsonErrorCode; - public static final field InvalidThreadSettings Ldev/kord/rest/json/JsonErrorCode; public static final field InvalidWebhookToken Ldev/kord/rest/json/JsonErrorCode; public static final field InviteCodeInvalidOrTaken Ldev/kord/rest/json/JsonErrorCode; - public static final field JsonErrorCodeSerializer Lkotlinx/serialization/KSerializer; public static final field MaxActiveAnnouncementThreads Ldev/kord/rest/json/JsonErrorCode; public static final field MaxActiveThreads Ldev/kord/rest/json/JsonErrorCode; public static final field MaxAnimatedEmojis Ldev/kord/rest/json/JsonErrorCode; @@ -2248,7 +2244,6 @@ public final class dev/kord/rest/json/JsonErrorCode : java/lang/Enum { public static final field OAuth2ApplicationLimit Ldev/kord/rest/json/JsonErrorCode; public static final field OAuth2HasNoBot Ldev/kord/rest/json/JsonErrorCode; public static final field OnlyOwner Ldev/kord/rest/json/JsonErrorCode; - public static final field OperationOnAchievedThread Ldev/kord/rest/json/JsonErrorCode; public static final field OperationOnArchivedThread Ldev/kord/rest/json/JsonErrorCode; public static final field OwnershipCannotBeTransferredToBot Ldev/kord/rest/json/JsonErrorCode; public static final field PermissionLack Ldev/kord/rest/json/JsonErrorCode; @@ -2881,7 +2876,6 @@ public final class dev/kord/rest/json/request/CurrentVoiceStateModifyRequest { public static synthetic fun copy$default (Ldev/kord/rest/json/request/CurrentVoiceStateModifyRequest;Ldev/kord/common/entity/optional/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/rest/json/request/CurrentVoiceStateModifyRequest; public fun equals (Ljava/lang/Object;)Z public final fun getChannelId ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final synthetic fun getRequestToSpeakTimeStamp ()Ldev/kord/common/entity/optional/Optional; public final fun getRequestToSpeakTimestamp ()Ldev/kord/common/entity/optional/Optional; public final fun getSuppress ()Ldev/kord/common/entity/optional/OptionalBoolean; public fun hashCode ()I @@ -3495,38 +3489,6 @@ public final class dev/kord/rest/json/request/GuildCreateRequest$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } -public final class dev/kord/rest/json/request/GuildEmbedModifyRequest { - public static final field Companion Ldev/kord/rest/json/request/GuildEmbedModifyRequest$Companion; - public synthetic fun (IZLdev/kord/common/entity/Snowflake;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V - public fun (ZLdev/kord/common/entity/Snowflake;)V - public final fun component1 ()Z - public final fun component2 ()Ldev/kord/common/entity/Snowflake; - public final fun copy (ZLdev/kord/common/entity/Snowflake;)Ldev/kord/rest/json/request/GuildEmbedModifyRequest; - public static synthetic fun copy$default (Ldev/kord/rest/json/request/GuildEmbedModifyRequest;ZLdev/kord/common/entity/Snowflake;ILjava/lang/Object;)Ldev/kord/rest/json/request/GuildEmbedModifyRequest; - public fun equals (Ljava/lang/Object;)Z - public final fun getChannelId ()Ldev/kord/common/entity/Snowflake; - public final fun getEnabled ()Z - public fun hashCode ()I - public fun toString ()Ljava/lang/String; - public static final fun write$Self (Ldev/kord/rest/json/request/GuildEmbedModifyRequest;Lkotlinx/serialization/encoding/CompositeEncoder;Lkotlinx/serialization/descriptors/SerialDescriptor;)V -} - -public final class dev/kord/rest/json/request/GuildEmbedModifyRequest$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/kord/rest/json/request/GuildEmbedModifyRequest$$serializer; - public static final synthetic field descriptor Lkotlinx/serialization/descriptors/SerialDescriptor; - public fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/kord/rest/json/request/GuildEmbedModifyRequest; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/kord/rest/json/request/GuildEmbedModifyRequest;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/kord/rest/json/request/GuildEmbedModifyRequest$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - public final class dev/kord/rest/json/request/GuildFromTemplateCreateRequest { public static final field Companion Ldev/kord/rest/json/request/GuildFromTemplateCreateRequest$Companion; public synthetic fun (ILjava/lang/String;Ldev/kord/common/entity/optional/Optional;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V @@ -3825,7 +3787,6 @@ public final class dev/kord/rest/json/request/GuildRoleCreateRequest { public final fun getMentionable ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getName ()Ldev/kord/common/entity/optional/Optional; public final fun getPermissions ()Ldev/kord/common/entity/optional/Optional; - public final synthetic fun getSeparate ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getUnicodeEmoji ()Ldev/kord/common/entity/optional/Optional; public fun hashCode ()I public fun toString ()Ljava/lang/String; @@ -3870,7 +3831,6 @@ public final class dev/kord/rest/json/request/GuildRoleModifyRequest { public final fun getMentionable ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getName ()Ldev/kord/common/entity/optional/Optional; public final fun getPermissions ()Ldev/kord/common/entity/optional/Optional; - public final synthetic fun getSeparate ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getUnicodeEmoji ()Ldev/kord/common/entity/optional/Optional; public fun hashCode ()I public fun toString ()Ljava/lang/String; @@ -4333,17 +4293,17 @@ public final class dev/kord/rest/json/request/InviteCreateRequest { public final fun copy (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;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/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;)Ldev/kord/rest/json/request/InviteCreateRequest; public static synthetic fun copy$default (Ldev/kord/rest/json/request/InviteCreateRequest;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalInt;Ldev/kord/common/entity/optional/OptionalBoolean;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/OptionalSnowflake;Ldev/kord/common/entity/optional/OptionalSnowflake;ILjava/lang/Object;)Ldev/kord/rest/json/request/InviteCreateRequest; public fun equals (Ljava/lang/Object;)Z - public final fun getAge ()Ldev/kord/common/entity/optional/OptionalInt; + public final synthetic fun getAge ()Ldev/kord/common/entity/optional/OptionalInt; public final fun getMaxAge ()Ldev/kord/common/entity/optional/Optional; public final fun getMaxUses ()Ldev/kord/common/entity/optional/OptionalInt; public final fun getTargetApplicationId ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getTargetType ()Ldev/kord/common/entity/optional/Optional; - public final fun getTargetUser ()Ldev/kord/common/entity/optional/OptionalSnowflake; + public final synthetic fun getTargetUser ()Ldev/kord/common/entity/optional/OptionalSnowflake; public final fun getTargetUserId ()Ldev/kord/common/entity/optional/OptionalSnowflake; - public final fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; + public final synthetic fun getTargetUserType ()Ldev/kord/common/entity/optional/Optional; public final fun getTemporary ()Ldev/kord/common/entity/optional/OptionalBoolean; public final fun getUnique ()Ldev/kord/common/entity/optional/OptionalBoolean; - public final fun getUses ()Ldev/kord/common/entity/optional/OptionalInt; + public final synthetic fun getUses ()Ldev/kord/common/entity/optional/OptionalInt; public fun hashCode ()I public fun toString ()Ljava/lang/String; public static final fun write$Self (Ldev/kord/rest/json/request/InviteCreateRequest;Lkotlinx/serialization/encoding/CompositeEncoder;Lkotlinx/serialization/descriptors/SerialDescriptor;)V @@ -5222,38 +5182,6 @@ public final class dev/kord/rest/json/response/DiscordErrorResponse$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } -public final class dev/kord/rest/json/response/EmbedResponse { - public static final field Companion Ldev/kord/rest/json/response/EmbedResponse$Companion; - public synthetic fun (IZLjava/lang/String;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V - public fun (ZLjava/lang/String;)V - public final fun component1 ()Z - public final fun component2 ()Ljava/lang/String; - public final fun copy (ZLjava/lang/String;)Ldev/kord/rest/json/response/EmbedResponse; - public static synthetic fun copy$default (Ldev/kord/rest/json/response/EmbedResponse;ZLjava/lang/String;ILjava/lang/Object;)Ldev/kord/rest/json/response/EmbedResponse; - public fun equals (Ljava/lang/Object;)Z - public final fun getChannelId ()Ljava/lang/String; - public final fun getEnabled ()Z - public fun hashCode ()I - public fun toString ()Ljava/lang/String; - public static final fun write$Self (Ldev/kord/rest/json/response/EmbedResponse;Lkotlinx/serialization/encoding/CompositeEncoder;Lkotlinx/serialization/descriptors/SerialDescriptor;)V -} - -public final class dev/kord/rest/json/response/EmbedResponse$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/kord/rest/json/response/EmbedResponse$$serializer; - public static final synthetic field descriptor Lkotlinx/serialization/descriptors/SerialDescriptor; - public fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/kord/rest/json/response/EmbedResponse; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/kord/rest/json/response/EmbedResponse;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/kord/rest/json/response/EmbedResponse$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - public final class dev/kord/rest/json/response/FollowedChannelResponse { public static final field Companion Ldev/kord/rest/json/response/FollowedChannelResponse$Companion; public synthetic fun (ILdev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V @@ -5791,7 +5719,6 @@ public final class dev/kord/rest/request/RequestBuilder { public final fun getBaseUrl ()Ljava/lang/String; public final fun getKeys ()Ljava/util/Map; public final fun getRoute ()Ldev/kord/rest/route/Route; - public final synthetic fun header (Ljava/lang/String;Ljava/lang/String;)V public final fun parameter (Ljava/lang/String;Ldev/kord/common/entity/Snowflake;)V public final fun parameter (Ljava/lang/String;Ljava/lang/Object;)V public final fun set (Ljava/util/Map;Ldev/kord/rest/route/Route$Key;Ldev/kord/common/entity/Snowflake;)V @@ -5845,7 +5772,7 @@ public final class dev/kord/rest/request/RequestKt { public abstract class dev/kord/rest/request/RestRequestException : dev/kord/common/exception/RequestException { public fun (Ldev/kord/rest/request/Request;Ldev/kord/rest/request/HttpStatus;Ldev/kord/rest/json/response/DiscordErrorResponse;)V public synthetic fun (Ldev/kord/rest/request/Request;Ldev/kord/rest/request/HttpStatus;Ldev/kord/rest/json/response/DiscordErrorResponse;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun getCode ()I + public final synthetic fun getCode ()I public static fun getCode$delegate (Ldev/kord/rest/request/RestRequestException;)Ljava/lang/Object; public final fun getError ()Ldev/kord/rest/json/response/DiscordErrorResponse; public final fun getRequest ()Ldev/kord/rest/request/Request; @@ -6203,14 +6130,6 @@ public final class dev/kord/rest/route/Route$GuildDelete : dev/kord/rest/route/R public static final field INSTANCE Ldev/kord/rest/route/Route$GuildDelete; } -public final class dev/kord/rest/route/Route$GuildEmbedGet : dev/kord/rest/route/Route { - public static final field INSTANCE Ldev/kord/rest/route/Route$GuildEmbedGet; -} - -public final class dev/kord/rest/route/Route$GuildEmbedPatch : dev/kord/rest/route/Route { - public static final field INSTANCE Ldev/kord/rest/route/Route$GuildEmbedPatch; -} - public final class dev/kord/rest/route/Route$GuildEmojiDelete : dev/kord/rest/route/Route { public static final field INSTANCE Ldev/kord/rest/route/Route$GuildEmojiDelete; } @@ -6806,7 +6725,7 @@ public final class dev/kord/rest/service/ChannelServiceKt { public static final fun patchCategory (Ldev/kord/rest/service/ChannelService;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun patchNewsChannel (Ldev/kord/rest/service/ChannelService;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun patchStageVoiceChannel (Ldev/kord/rest/service/ChannelService;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun patchStoreChannel (Ldev/kord/rest/service/ChannelService;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun patchStoreChannel (Ldev/kord/rest/service/ChannelService;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun patchTextChannel (Ldev/kord/rest/service/ChannelService;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun patchVoiceChannel (Ldev/kord/rest/service/ChannelService;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } @@ -6858,7 +6777,6 @@ public final class dev/kord/rest/service/GuildService : dev/kord/rest/service/Re public final fun getGuildBans (Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/route/Position$BeforeOrAfter;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun getGuildBans$default (Ldev/kord/rest/service/GuildService;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/route/Position$BeforeOrAfter;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun getGuildChannels (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final synthetic fun getGuildEmbed (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getGuildIntegrations (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getGuildInvites (Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getGuildMember (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -6889,7 +6807,6 @@ public final class dev/kord/rest/service/GuildService : dev/kord/rest/service/Re public final fun modifyCurrentVoiceState (Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/CurrentVoiceStateModifyRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuild (Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildChannelPosition (Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final synthetic fun modifyGuildEmbed (Ldev/kord/common/entity/Snowflake;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildIntegration (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyGuildMFALevel (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/MFALevel;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final synthetic fun modifyGuildMFALevel (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/MFALevel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -6924,7 +6841,7 @@ public final class dev/kord/rest/service/GuildServiceKt { public final class dev/kord/rest/service/InteractionService : dev/kord/rest/service/RestService { public fun (Ldev/kord/rest/request/RequestHandler;)V - public final fun acknowledge (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final synthetic fun acknowledge (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun acknowledge$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createFollowupMessage (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/rest/json/request/MultipartFollowupMessageCreateRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createFollowupMessage (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -6955,8 +6872,6 @@ public final class dev/kord/rest/service/InteractionService : dev/kord/rest/serv public final fun createModalInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/DiscordModal;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createModalInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createNumberAutoCompleteInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final synthetic fun createPublicInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun createPublicInteractionResponse$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createStringAutoCompleteInteractionResponse (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun deferMessage (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun deferMessage$default (Ldev/kord/rest/service/InteractionService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; @@ -7046,14 +6961,14 @@ public final class dev/kord/rest/service/StageInstanceService : dev/kord/rest/se public final fun modifyStageInstance (Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/StageInstanceModifyRequest;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun modifyStageInstance (Ldev/kord/common/entity/Snowflake;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun modifyStageInstance$default (Ldev/kord/rest/service/StageInstanceService;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/StageInstanceModifyRequest;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; - public final fun updateStageInstance (Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/StageInstanceUpdateRequest;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final synthetic fun updateStageInstance (Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/StageInstanceUpdateRequest;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun updateStageInstance$default (Ldev/kord/rest/service/StageInstanceService;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/StageInstanceUpdateRequest;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; } public final class dev/kord/rest/service/StageInstanceServiceKt { - public static final fun createStageInstance (Ldev/kord/rest/service/StageInstanceService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun createStageInstance (Ldev/kord/rest/service/StageInstanceService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createStageInstance$default (Ldev/kord/rest/service/StageInstanceService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; - public static final fun updateStageInstance (Ldev/kord/rest/service/StageInstanceService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final synthetic fun updateStageInstance (Ldev/kord/rest/service/StageInstanceService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun updateStageInstance$default (Ldev/kord/rest/service/StageInstanceService;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; } diff --git a/rest/src/main/kotlin/builder/channel/EditGuildChannelBuilder.kt b/rest/src/main/kotlin/builder/channel/EditGuildChannelBuilder.kt index 525727431e61..08403707ac14 100644 --- a/rest/src/main/kotlin/builder/channel/EditGuildChannelBuilder.kt +++ b/rest/src/main/kotlin/builder/channel/EditGuildChannelBuilder.kt @@ -12,7 +12,7 @@ import dev.kord.common.entity.optional.OptionalSnowflake import dev.kord.common.entity.optional.delegate.delegate import dev.kord.rest.builder.AuditRequestBuilder import dev.kord.rest.json.request.ChannelModifyPatchRequest -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.time.Duration @KordDsl @@ -209,7 +209,7 @@ public class NewsChannelModifyBuilder : PermissionOverwritesModifyBuilder, See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public class StoreChannelModifyBuilder : PermissionOverwritesModifyBuilder, AuditRequestBuilder { diff --git a/rest/src/main/kotlin/builder/channel/InviteCreateBuilder.kt b/rest/src/main/kotlin/builder/channel/InviteCreateBuilder.kt index 67775edef1b4..d96621fe8de9 100644 --- a/rest/src/main/kotlin/builder/channel/InviteCreateBuilder.kt +++ b/rest/src/main/kotlin/builder/channel/InviteCreateBuilder.kt @@ -8,7 +8,7 @@ import dev.kord.common.entity.optional.* import dev.kord.common.entity.optional.delegate.delegate import dev.kord.rest.builder.AuditRequestBuilder import dev.kord.rest.json.request.InviteCreateRequest -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.time.Duration import kotlin.time.DurationUnit.SECONDS import kotlin.time.toDuration @@ -24,7 +24,7 @@ public class InviteCreateBuilder : AuditRequestBuilder { * * @suppress */ - @Deprecated("'age' was renamed to 'maxAge'", ReplaceWith("this.maxAge"), level = ERROR) + @Deprecated("'age' was renamed to 'maxAge'", ReplaceWith("this.maxAge"), level = HIDDEN) public var age: Int? get() = _maxAge.value?.inWholeSeconds?.toInt() set(value) { @@ -43,7 +43,7 @@ public class InviteCreateBuilder : AuditRequestBuilder { * * @suppress */ - @Deprecated("'uses' was renamed to 'maxUses'", ReplaceWith("this.maxUses"), level = ERROR) + @Deprecated("'uses' was renamed to 'maxUses'", ReplaceWith("this.maxUses"), level = HIDDEN) public var uses: Int? by ::_maxUses.delegate() /** The maximum number of uses, or 0 for unlimited. Between 0 and 100. 0 by default. */ @@ -70,7 +70,7 @@ public class InviteCreateBuilder : AuditRequestBuilder { * * @suppress */ - @Deprecated("This is no longer documented. Use 'targetUserId' instead.", ReplaceWith("this.targetUserId"), level = ERROR) + @Deprecated("This is no longer documented. Use 'targetUserId' instead.", ReplaceWith("this.targetUserId"), level = HIDDEN) public var targetUser: Snowflake? by ::_targetUser.delegate() private var _targetType: Optional = Optional.Missing() diff --git a/rest/src/main/kotlin/json/JsonErrorCode.kt b/rest/src/main/kotlin/json/JsonErrorCode.kt index 576f732f1115..50e0553110f0 100644 --- a/rest/src/main/kotlin/json/JsonErrorCode.kt +++ b/rest/src/main/kotlin/json/JsonErrorCode.kt @@ -7,7 +7,6 @@ import kotlinx.serialization.descriptors.PrimitiveKind import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder -import kotlin.DeprecationLevel.HIDDEN /** * Detailed error codes sent by the Discord API in the JSON [error response][DiscordErrorResponse]. @@ -530,48 +529,6 @@ public enum class JsonErrorCode(public val code: Int) { ; - public companion object { - @Deprecated( - "JsonErrorCode.OperationOnAchievedThread was renamed to JsonErrorCode.OperationOnArchivedThread.", - ReplaceWith("JsonErrorCode.OperationOnArchivedThread"), - level = HIDDEN, - ) - @JvmField - public val OperationOnAchievedThread: JsonErrorCode = OperationOnArchivedThread - - @Deprecated( - "JsonErrorCode.InvalidThreadSettings was removed because it was a duplicate of JsonErrorCode.InvalidThreadNotificationSettings.", - ReplaceWith("JsonErrorCode.InvalidThreadNotificationSettings"), - level = HIDDEN, - ) - @JvmField - public val InvalidThreadSettings: JsonErrorCode = InvalidThreadNotificationSettings - - @Deprecated( - "JsonErrorCode.InvalidThreadBefore was removed because it was a duplicate of JsonErrorCode.BeforeValueBeforeThreadCreate.", - ReplaceWith("JsonErrorCode.BeforeValueBeforeThreadCreate"), - level = HIDDEN, - ) - @JvmField - public val InvalidThreadBefore: JsonErrorCode = BeforeValueBeforeThreadCreate - - @Deprecated( - "'JsonErrorCode.CannotSendMessagesInVoiceChannel' was renamed to JsonErrorCode.CannotSendMessagesInNonTextChannel", - ReplaceWith("JsonErrorCode.CannotSendMessagesInNonTextChannel"), - level = HIDDEN, - ) - @JvmField - public val CannotSendMessagesInVoiceChannel: JsonErrorCode = CannotSendMessagesInNonTextChannel - - @Deprecated( - "Object JsonErrorCode.JsonErrorCodeSerializer is internal now, use JsonErrorCode.serializer() instead.", - ReplaceWith("JsonErrorCode.serializer()", "dev.kord.rest.json.JsonErrorCode"), - level = HIDDEN, - ) - @JvmField - public val JsonErrorCodeSerializer: KSerializer = Serializer - } - internal object Serializer : KSerializer { override val descriptor = PrimitiveSerialDescriptor("JsonErrorCodeSerializer", PrimitiveKind.INT) diff --git a/rest/src/main/kotlin/json/request/GuildRequests.kt b/rest/src/main/kotlin/json/request/GuildRequests.kt index 937c3cf220c6..aed6116abb53 100644 --- a/rest/src/main/kotlin/json/request/GuildRequests.kt +++ b/rest/src/main/kotlin/json/request/GuildRequests.kt @@ -1,7 +1,6 @@ package dev.kord.rest.json.request import dev.kord.common.Color -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.annotation.KordExperimental import dev.kord.common.entity.* import dev.kord.common.entity.optional.Optional @@ -10,13 +9,15 @@ import dev.kord.common.entity.optional.OptionalInt import dev.kord.common.entity.optional.OptionalSnowflake import dev.kord.common.serialization.DurationInSeconds import kotlinx.datetime.Instant -import kotlinx.serialization.* +import kotlinx.serialization.ExperimentalSerializationApi +import kotlinx.serialization.KSerializer +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import kotlinx.serialization.builtins.ListSerializer import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.descriptors.listSerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder -import kotlin.DeprecationLevel.HIDDEN import kotlin.DeprecationLevel.WARNING @Serializable @@ -156,11 +157,7 @@ public data class GuildRoleCreateRequest( val mentionable: OptionalBoolean = OptionalBoolean.Missing, /** Only use this when creating a guild with roles. */ val id: OptionalSnowflake = OptionalSnowflake.Missing, -) { - @Deprecated("Renamed to 'hoist'.", ReplaceWith("this.hoist"), level = HIDDEN) - public val separate: OptionalBoolean - get() = hoist -} +) @Serializable(with = GuildRolePositionModifyRequest.Serializer::class) @@ -198,11 +195,7 @@ public data class GuildRoleModifyRequest( @SerialName("unicode_emoji") val unicodeEmoji: Optional = Optional.Missing(), val mentionable: OptionalBoolean? = OptionalBoolean.Missing, -) { - @Deprecated("Renamed to 'hoist'.", ReplaceWith("this.hoist"), level = HIDDEN) - public val separate: OptionalBoolean? - get() = hoist -} +) @Serializable public data class GuildMFALevelModifyRequest(val level: MFALevel) @@ -220,15 +213,6 @@ public data class GuildIntegrationModifyRequest( val emoticons: OptionalBoolean = OptionalBoolean.Missing, ) -@Serializable -@DeprecatedSinceKord("0.7.0") -@Deprecated("Guild embeds were renamed to widgets.", ReplaceWith("GuildWidgetModifyRequest"), level = HIDDEN) -public data class GuildEmbedModifyRequest( - val enabled: Boolean, - @SerialName("channel_id") - val channelId: Snowflake, -) - @Serializable public data class GuildWidgetModifyRequest( val enabled: OptionalBoolean = OptionalBoolean.Missing, diff --git a/rest/src/main/kotlin/json/request/InviteCreateRequest.kt b/rest/src/main/kotlin/json/request/InviteCreateRequest.kt index 0e562086627d..74f97bfb80e4 100644 --- a/rest/src/main/kotlin/json/request/InviteCreateRequest.kt +++ b/rest/src/main/kotlin/json/request/InviteCreateRequest.kt @@ -5,7 +5,7 @@ import dev.kord.common.entity.optional.* import dev.kord.common.serialization.DurationInSeconds import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN @Serializable public data class InviteCreateRequest( @@ -16,11 +16,11 @@ public data class InviteCreateRequest( val temporary: OptionalBoolean = OptionalBoolean.Missing, val unique: OptionalBoolean = OptionalBoolean.Missing, /** @suppress */ - @Deprecated("This is no longer documented. Use 'targetUserId' instead.", ReplaceWith("this.targetUserId"), level = ERROR) + @Deprecated("This is no longer documented. Use 'targetUserId' instead.", ReplaceWith("this.targetUserId"), level = HIDDEN) @SerialName("target_user") val targetUser: OptionalSnowflake = OptionalSnowflake.Missing, /** @suppress */ - @Deprecated("This is no longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = ERROR) + @Deprecated("This is no longer documented. Use 'targetType' instead.", ReplaceWith("this.targetType"), level = HIDDEN) @SerialName("target_user_type") val targetUserType: Optional<@Suppress("DEPRECATION_ERROR") dev.kord.common.entity.TargetUserType> = Optional.Missing(), @SerialName("target_type") @@ -31,12 +31,12 @@ public data class InviteCreateRequest( val targetApplicationId: OptionalSnowflake = OptionalSnowflake.Missing, ) { /** @suppress */ - @Deprecated("'age' was renamed to 'maxAge'", ReplaceWith("this.maxAge"), level = ERROR) + @Deprecated("'age' was renamed to 'maxAge'", ReplaceWith("this.maxAge"), level = HIDDEN) public val age: OptionalInt get() = maxAge.value?.inWholeSeconds?.toInt()?.optionalInt() ?: OptionalInt.Missing /** @suppress */ - @Deprecated("'uses' was renamed to 'maxUses'", ReplaceWith("this.maxUses"), level = ERROR) + @Deprecated("'uses' was renamed to 'maxUses'", ReplaceWith("this.maxUses"), level = HIDDEN) public val uses: OptionalInt get() = maxUses } diff --git a/rest/src/main/kotlin/json/request/StageInstanceRequests.kt b/rest/src/main/kotlin/json/request/StageInstanceRequests.kt index 89984fff8131..63345c8d21c9 100644 --- a/rest/src/main/kotlin/json/request/StageInstanceRequests.kt +++ b/rest/src/main/kotlin/json/request/StageInstanceRequests.kt @@ -6,7 +6,7 @@ import dev.kord.common.entity.optional.Optional import dev.kord.common.entity.optional.OptionalBoolean import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN @Serializable public data class StageInstanceCreateRequest( @@ -23,7 +23,7 @@ public data class StageInstanceCreateRequest( @Deprecated( "Replaced by 'StageInstanceModifyRequest'.", ReplaceWith("StageInstanceModifyRequest", "dev.kord.rest.json.request.StageInstanceModifyRequest"), - level = ERROR, + level = HIDDEN, ) @Serializable public data class StageInstanceUpdateRequest(val topic: String) diff --git a/rest/src/main/kotlin/json/request/VoiceStateRequests.kt b/rest/src/main/kotlin/json/request/VoiceStateRequests.kt index cc00e731a415..3ea53d7994b1 100644 --- a/rest/src/main/kotlin/json/request/VoiceStateRequests.kt +++ b/rest/src/main/kotlin/json/request/VoiceStateRequests.kt @@ -13,16 +13,7 @@ public data class CurrentVoiceStateModifyRequest( val suppress: OptionalBoolean = OptionalBoolean.Missing, @SerialName("request_to_speak_timestamp") val requestToSpeakTimestamp: Optional = Optional.Missing(), -) { - @Deprecated( - "requestToSpeakTimeStamp was renamed to requestToSpeakTimestamp.", - ReplaceWith("requestToSpeakTimestamp"), - DeprecationLevel.HIDDEN, - ) - val requestToSpeakTimeStamp: Optional - get() = requestToSpeakTimestamp.map { it.toString() }.coerceToMissing() -} - +) @Serializable public data class VoiceStateModifyRequest( diff --git a/rest/src/main/kotlin/json/response/EmbedResponse.kt b/rest/src/main/kotlin/json/response/EmbedResponse.kt deleted file mode 100644 index d200499302b9..000000000000 --- a/rest/src/main/kotlin/json/response/EmbedResponse.kt +++ /dev/null @@ -1,22 +0,0 @@ -package dev.kord.rest.json.response - -import dev.kord.common.annotation.DeprecatedSinceKord -import kotlinx.serialization.SerialName -import kotlinx.serialization.Serializable -import kotlin.DeprecationLevel.HIDDEN - -@Serializable -@DeprecatedSinceKord("0.7.0") -@Deprecated( - "Guild embeds were renamed to widgets", - ReplaceWith( - "DiscordGuildWidget(enabled, channelId)", - "dev.kord.common.entity.DiscordGuildWidget" - ), - level = HIDDEN, -) -public data class EmbedResponse( - val enabled: Boolean, - @SerialName("channel_id") - val channelId: String -) diff --git a/rest/src/main/kotlin/request/RequestBuilder.kt b/rest/src/main/kotlin/request/RequestBuilder.kt index 7fd03e9b9022..473975e62a66 100644 --- a/rest/src/main/kotlin/request/RequestBuilder.kt +++ b/rest/src/main/kotlin/request/RequestBuilder.kt @@ -9,7 +9,6 @@ import io.ktor.util.cio.* import kotlinx.serialization.SerializationStrategy import java.io.InputStream import java.nio.file.Path -import kotlin.DeprecationLevel.HIDDEN public class RequestBuilder(public val route: Route, keySize: Int = 2) { @@ -42,13 +41,6 @@ public class RequestBuilder(public val route: Route, keySize: Int = 2) { parameters.append(key, value.toString()) } - @Deprecated( - "'header' was renamed to 'urlEncodedHeader'", - ReplaceWith("urlEncodedHeader(key, value)"), - level = HIDDEN, - ) - public fun header(key: String, value: String): Unit = urlEncodedHeader(key, value) - /** Adds a header and encodes its [value] as an [URL query component][encodeURLQueryComponent]. */ public fun urlEncodedHeader(key: String, value: String) { headers.append(key, value.encodeURLQueryComponent()) diff --git a/rest/src/main/kotlin/request/RestRequestException.kt b/rest/src/main/kotlin/request/RestRequestException.kt index 3ccdf7fd6672..5bee244dc1fd 100644 --- a/rest/src/main/kotlin/request/RestRequestException.kt +++ b/rest/src/main/kotlin/request/RestRequestException.kt @@ -4,7 +4,7 @@ import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.exception.RequestException import dev.kord.rest.json.response.DiscordErrorResponse import dev.kord.rest.service.RestService -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import io.ktor.client.statement.HttpResponse as KtorResponse private fun formatRestRequestExceptionMessage(status: HttpStatus, error: DiscordErrorResponse?): String { @@ -29,7 +29,7 @@ public abstract class RestRequestException( /** @suppress */ @DeprecatedSinceKord("0.7.0") - @Deprecated("Use status.code instead", ReplaceWith("status.code"), level = ERROR) + @Deprecated("Use status.code instead", ReplaceWith("status.code"), level = HIDDEN) public val code: Int by this.status::code } diff --git a/rest/src/main/kotlin/request/StackTraceRecoveringKtorRequestHandler.kt b/rest/src/main/kotlin/request/StackTraceRecoveringKtorRequestHandler.kt index be96b3d55b82..d39f49024af7 100644 --- a/rest/src/main/kotlin/request/StackTraceRecoveringKtorRequestHandler.kt +++ b/rest/src/main/kotlin/request/StackTraceRecoveringKtorRequestHandler.kt @@ -1,6 +1,6 @@ package dev.kord.rest.request -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN /** * Extension of [KtorRequestHandler] which tries to recover stack trace information lost through Ktor's @@ -32,7 +32,7 @@ public class StackTraceRecoveringKtorRequestHandler(private val delegate: KtorRe @Deprecated( "'ContextException' is no longer thrown. 'stackTraceRecovery' uses a suppressed exception instead.", - level = ERROR, + level = HIDDEN, ) public class ContextException internal constructor() : RuntimeException() diff --git a/rest/src/main/kotlin/route/Route.kt b/rest/src/main/kotlin/route/Route.kt index 9a30b24208f5..72fcbb70066e 100644 --- a/rest/src/main/kotlin/route/Route.kt +++ b/rest/src/main/kotlin/route/Route.kt @@ -1,7 +1,6 @@ package dev.kord.rest.route import dev.kord.common.KordConfiguration -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.annotation.KordExperimental import dev.kord.common.entity.* import dev.kord.rest.json.request.GuildScheduledEventUsersResponse @@ -16,7 +15,6 @@ import kotlinx.serialization.descriptors.StructureKind import kotlinx.serialization.descriptors.buildSerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.json.Json -import kotlin.DeprecationLevel.HIDDEN public sealed interface ResponseMapper { public fun deserialize(json: Json, body: String): T @@ -547,16 +545,6 @@ public sealed class Route( public object GuildIntegrationSyncPost : // TODO does this endpoint still/even exist? Route(HttpMethod.Post, "/guilds/$GuildId/integrations/$IntegrationId/sync", NoStrategy) - @DeprecatedSinceKord("0.7.0") - @Deprecated("Guild embeds were renamed to widgets.", ReplaceWith("GuildWidgetGet"), level = HIDDEN) - public object GuildEmbedGet : - Route(HttpMethod.Get, "/guilds/$GuildId/embed", NothingSerializer) - - @DeprecatedSinceKord("0.7.0") - @Deprecated("Guild embeds were renamed to widgets.", ReplaceWith("GuildWidgetPatch"), level = HIDDEN) - public object GuildEmbedPatch : - Route(HttpMethod.Patch, "/guilds/$GuildId/embed", NothingSerializer) - public object GuildWidgetGet : Route(HttpMethod.Get, "/guilds/$GuildId/widget", DiscordGuildWidget.serializer()) diff --git a/rest/src/main/kotlin/service/ChannelService.kt b/rest/src/main/kotlin/service/ChannelService.kt index e605c5239f3c..a6dc09de743a 100644 --- a/rest/src/main/kotlin/service/ChannelService.kt +++ b/rest/src/main/kotlin/service/ChannelService.kt @@ -14,7 +14,7 @@ import dev.kord.rest.request.RequestHandler import dev.kord.rest.request.auditLogReason import dev.kord.rest.route.Position import dev.kord.rest.route.Route -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -445,16 +445,16 @@ public suspend inline fun ChannelService.patchStageVoiceChannel( See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information. """, - level = ERROR, + level = HIDDEN, ) public suspend inline fun ChannelService.patchStoreChannel( channelId: Snowflake, - builder: StoreChannelModifyBuilder.() -> Unit + builder: dev.kord.rest.builder.channel.StoreChannelModifyBuilder.() -> Unit ): DiscordChannel { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - val modifyBuilder = StoreChannelModifyBuilder().apply(builder) + val modifyBuilder = dev.kord.rest.builder.channel.StoreChannelModifyBuilder().apply(builder) return patchChannel(channelId, modifyBuilder.toRequest(), modifyBuilder.reason) } diff --git a/rest/src/main/kotlin/service/GuildService.kt b/rest/src/main/kotlin/service/GuildService.kt index 5684478c3c2d..83a603a04024 100644 --- a/rest/src/main/kotlin/service/GuildService.kt +++ b/rest/src/main/kotlin/service/GuildService.kt @@ -1,6 +1,5 @@ package dev.kord.rest.service -import dev.kord.common.annotation.DeprecatedSinceKord import dev.kord.common.annotation.KordExperimental import dev.kord.common.entity.* import dev.kord.rest.builder.ban.BanCreateBuilder @@ -371,22 +370,6 @@ public class GuildService(requestHandler: RequestHandler) : RestService(requestH keys[Route.IntegrationId] = integrationId } - @Suppress("RedundantSuspendModifier", "UNUSED_PARAMETER") - @DeprecatedSinceKord("0.7.0") - @Deprecated("Guild embeds were renamed to widgets.", ReplaceWith("getGuildWidget(guildId)"), level = HIDDEN) - public suspend fun getGuildEmbed(guildId: Snowflake): Nothing = - throw Exception("Guild embeds were renamed to widgets.") - - @Suppress("RedundantSuspendModifier", "UNUSED_PARAMETER") - @DeprecatedSinceKord("0.7.0") - @Deprecated( - "Guild embeds were renamed to widgets.", - ReplaceWith("modifyGuildWidget(guildId, embed)"), - level = HIDDEN, - ) - public suspend fun modifyGuildEmbed(guildId: Snowflake, embed: Any): Nothing = - throw Exception("Guild embeds were renamed to widgets.") - public suspend fun getGuildWidget(guildId: Snowflake): DiscordGuildWidget = call(Route.GuildWidgetGet) { keys[Route.GuildId] = guildId } diff --git a/rest/src/main/kotlin/service/InteractionService.kt b/rest/src/main/kotlin/service/InteractionService.kt index 0671a8f357d7..81398f909323 100644 --- a/rest/src/main/kotlin/service/InteractionService.kt +++ b/rest/src/main/kotlin/service/InteractionService.kt @@ -17,7 +17,6 @@ import dev.kord.rest.route.Route import kotlinx.serialization.KSerializer import kotlinx.serialization.builtins.ListSerializer import kotlinx.serialization.serializer -import kotlin.DeprecationLevel.ERROR import kotlin.DeprecationLevel.HIDDEN import kotlin.collections.set import kotlin.contracts.InvocationKind @@ -549,21 +548,6 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re } - @Deprecated( - "'createPublicInteractionResponse' was renamed to 'createInteractionResponse'", - ReplaceWith("this.createInteractionResponse(interactionId, interactionToken, ephemeral, builder)"), - level = HIDDEN, - ) - public suspend inline fun createPublicInteractionResponse( - interactionId: Snowflake, - interactionToken: String, - ephemeral: Boolean = false, - builder: InteractionResponseCreateBuilder.() -> Unit - ) { - contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - return createInteractionResponse(interactionId, interactionToken, ephemeral, builder) - } - public suspend inline fun createInteractionResponse( interactionId: Snowflake, interactionToken: String, @@ -624,7 +608,7 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re @Deprecated( "Renamed to 'deferMessage'.", ReplaceWith("this.deferMessage(interactionId, interactionToken, ephemeral)"), - level = ERROR, + level = HIDDEN, ) public suspend fun acknowledge(interactionId: Snowflake, interactionToken: String, ephemeral: Boolean = false) { deferMessage(interactionId, interactionToken, ephemeral) diff --git a/rest/src/main/kotlin/service/StageInstanceService.kt b/rest/src/main/kotlin/service/StageInstanceService.kt index 6746f51dbf36..e875d4c28d0c 100644 --- a/rest/src/main/kotlin/service/StageInstanceService.kt +++ b/rest/src/main/kotlin/service/StageInstanceService.kt @@ -2,6 +2,7 @@ package dev.kord.rest.service import dev.kord.common.entity.DiscordStageInstance import dev.kord.common.entity.Snowflake +import dev.kord.common.entity.optional.optional import dev.kord.rest.builder.stage.StageInstanceCreateBuilder import dev.kord.rest.builder.stage.StageInstanceModifyBuilder import dev.kord.rest.json.request.StageInstanceCreateRequest @@ -9,7 +10,7 @@ import dev.kord.rest.json.request.StageInstanceModifyRequest import dev.kord.rest.request.RequestHandler import dev.kord.rest.request.auditLogReason import dev.kord.rest.route.Route -import kotlin.DeprecationLevel.ERROR +import kotlin.DeprecationLevel.HIDDEN import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -64,7 +65,7 @@ public class StageInstanceService(requestHandler: RequestHandler) : RestService( @Deprecated( "Replaced by 'modifyStageInstance'.", ReplaceWith("this.modifyStageInstance(channelId, request, reason)"), - level = ERROR, + level = HIDDEN, ) public suspend fun updateStageInstance( channelId: Snowflake, @@ -88,7 +89,7 @@ public class StageInstanceService(requestHandler: RequestHandler) : RestService( @Deprecated( "Replaced by builder overload.", ReplaceWith("this.createStageInstance(channelId, topic) {\nthis@createStageInstance.reason = reason\n}"), - level = ERROR, + level = HIDDEN, ) public suspend fun StageInstanceService.createStageInstance( channelId: Snowflake, @@ -99,20 +100,19 @@ public suspend fun StageInstanceService.createStageInstance( ) /** @suppress */ -@Suppress("DEPRECATION_ERROR") @Deprecated( "Replaced by 'modifyStageInstance'.", ReplaceWith( "this.modifyStageInstance(channelId) {\nthis@modifyStageInstance.topic = topic\nthis@modifyStageInstance.reason = reason\n}" ), - level = ERROR, + level = HIDDEN, ) public suspend fun StageInstanceService.updateStageInstance( channelId: Snowflake, topic: String, reason: String? = null, -): DiscordStageInstance = updateStageInstance( +): DiscordStageInstance = modifyStageInstance( channelId, - dev.kord.rest.json.request.StageInstanceUpdateRequest(topic), + StageInstanceModifyRequest(topic.optional()), reason ) From dd2ed7b9fed1288b3b22cf53b06e2f4bbc58c262 Mon Sep 17 00:00:00 2001 From: Lukellmann Date: Sun, 18 Sep 2022 18:16:01 +0200 Subject: [PATCH 2/3] Regenerate kord enums --- .../dev/kord/common/entity/ChannelType.kt | 2 +- .../dev/kord/common/entity/GuildFeature.kt | 18 ++++++++++++------ .../dev/kord/common/entity/MessageType.kt | 6 ++++++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/ChannelType.kt b/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/ChannelType.kt index d5880fa1e184..5fd16d28fd26 100644 --- a/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/ChannelType.kt +++ b/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/ChannelType.kt @@ -113,7 +113,7 @@ public sealed class ChannelType( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Discord no longer offers the ability to purchase a license to sell PC games on Discord and store channels were removed on March 10, 2022. See https://support-dev.discord.com/hc/en-us/articles/6309018858647-Self-serve-Game-Selling-Deprecation for more information.", ) diff --git a/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/GuildFeature.kt b/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/GuildFeature.kt index b40841537e6a..1063968c0741 100644 --- a/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/GuildFeature.kt +++ b/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/GuildFeature.kt @@ -168,7 +168,10 @@ public sealed class GuildFeature( * * @suppress. */ - @Deprecated(message = "Thread archive durations are no longer boost locked.") + @Deprecated( + level = DeprecationLevel.ERROR, + message = "Thread archive durations are no longer boost locked.", + ) public object ThreeDayThreadArchive : GuildFeature("THREE_DAY_THREAD_ARCHIVE") /** @@ -176,7 +179,10 @@ public sealed class GuildFeature( * * @suppress */ - @Deprecated(message = "Thread archive durations are no longer boost locked.") + @Deprecated( + level = DeprecationLevel.ERROR, + message = "Thread archive durations are no longer boost locked.", + ) public object SevenDayThreadArchive : GuildFeature("SEVEN_DAY_THREAD_ARCHIVE") internal object Serializer : KSerializer { @@ -206,8 +212,8 @@ public sealed class GuildFeature( "PREVIEW_ENABLED" -> PreviewEnabled "PRIVATE_THREADS" -> PrivateThreads "ROLE_ICONS" -> RoleIcons - "SEVEN_DAY_THREAD_ARCHIVE" -> @Suppress("DEPRECATION") SevenDayThreadArchive - "THREE_DAY_THREAD_ARCHIVE" -> @Suppress("DEPRECATION") ThreeDayThreadArchive + "SEVEN_DAY_THREAD_ARCHIVE" -> @Suppress("DEPRECATION_ERROR") SevenDayThreadArchive + "THREE_DAY_THREAD_ARCHIVE" -> @Suppress("DEPRECATION_ERROR") ThreeDayThreadArchive "TICKETED_EVENTS_ENABLED" -> TicketedEventsEnabled "VANITY_URL" -> VanityUrl "VERIFIED" -> Verified @@ -240,8 +246,8 @@ public sealed class GuildFeature( PreviewEnabled, PrivateThreads, RoleIcons, - @Suppress("DEPRECATION") SevenDayThreadArchive, - @Suppress("DEPRECATION") ThreeDayThreadArchive, + @Suppress("DEPRECATION_ERROR") SevenDayThreadArchive, + @Suppress("DEPRECATION_ERROR") ThreeDayThreadArchive, TicketedEventsEnabled, VanityUrl, Verified, diff --git a/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/MessageType.kt b/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/MessageType.kt index db6c3049c82a..f95f63c89e87 100644 --- a/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/MessageType.kt +++ b/common/build/generated/ksp/main/kotlin/dev/kord/common/entity/MessageType.kt @@ -7,6 +7,7 @@ package dev.kord.common.entity import kotlin.Any import kotlin.Boolean import kotlin.Deprecated +import kotlin.DeprecationLevel import kotlin.Int import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.ReplaceWith @@ -98,6 +99,7 @@ public sealed class MessageType( * @suppress */ @Deprecated( + level = DeprecationLevel.ERROR, message = "Renamed to 'UserJoin'.", replaceWith = ReplaceWith(expression = "UserJoin", imports = arrayOf("dev.kord.common.entity.MessageType.UserJoin")), @@ -108,6 +110,7 @@ public sealed class MessageType( * @suppress */ @Deprecated( + level = DeprecationLevel.ERROR, message = "Renamed to 'GuildBoost'.", replaceWith = ReplaceWith(expression = "GuildBoost", imports = arrayOf("dev.kord.common.entity.MessageType.GuildBoost")), @@ -118,6 +121,7 @@ public sealed class MessageType( * @suppress */ @Deprecated( + level = DeprecationLevel.ERROR, message = "Renamed to 'GuildBoostTier1'.", replaceWith = ReplaceWith(expression = "GuildBoostTier1", imports = arrayOf("dev.kord.common.entity.MessageType.GuildBoostTier1")), @@ -128,6 +132,7 @@ public sealed class MessageType( * @suppress */ @Deprecated( + level = DeprecationLevel.ERROR, message = "Renamed to 'GuildBoostTier2'.", replaceWith = ReplaceWith(expression = "GuildBoostTier2", imports = arrayOf("dev.kord.common.entity.MessageType.GuildBoostTier2")), @@ -138,6 +143,7 @@ public sealed class MessageType( * @suppress */ @Deprecated( + level = DeprecationLevel.ERROR, message = "Renamed to 'GuildBoostTier3'.", replaceWith = ReplaceWith(expression = "GuildBoostTier3", imports = arrayOf("dev.kord.common.entity.MessageType.GuildBoostTier3")), From 35e424c8023b76a8b9e0fd25ef017e554e6c0e48 Mon Sep 17 00:00:00 2001 From: Lukellmann Date: Tue, 4 Oct 2022 19:13:09 +0200 Subject: [PATCH 3/3] fix apiDump --- core/api/core.api | 1 + rest/api/rest.api | 1 + 2 files changed, 2 insertions(+) diff --git a/core/api/core.api b/core/api/core.api index cbcaf4f75da1..06174da8ea10 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -13646,3 +13646,4 @@ public final class dev/kord/core/supplier/StoreEntitySupplier : dev/kord/core/su public fun getWebhookWithTokenOrNull (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun toString ()Ljava/lang/String; } + diff --git a/rest/api/rest.api b/rest/api/rest.api index a8a0c36ecf99..120e9c368773 100644 --- a/rest/api/rest.api +++ b/rest/api/rest.api @@ -7047,3 +7047,4 @@ public final class dev/kord/rest/service/WebhookServiceKt { public static final fun webhookIdTokenMessageIdThreadId (Ldev/kord/rest/request/RequestBuilder;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;)V public static final fun webhookIdTokenWaitThreadId (Ldev/kord/rest/request/RequestBuilder;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ljava/lang/Boolean;Ldev/kord/common/entity/Snowflake;)V } +