From f87e59f444c5d7954a93ecf3f8932389ddd13103 Mon Sep 17 00:00:00 2001 From: lukellmann Date: Thu, 23 Nov 2023 00:39:45 +0100 Subject: [PATCH] Bump DeprecationLevels WARNING -> ERROR ERROR -> HIDDEN HIDDEN -> remove --- common/api/common.api | 274 +++++++++--------- .../dev/kord/common/entity/ActivityType.kt | 2 +- .../kord/common/entity/AllowedMentionType.kt | 2 +- .../entity/ApplicationCommandOptionType.kt | 2 +- .../ApplicationCommandPermissionType.kt | 2 +- .../common/entity/ApplicationCommandType.kt | 2 +- .../dev/kord/common/entity/ApplicationFlag.kt | 43 +-- .../ApplicationRoleConnectionMetadataType.kt | 2 +- .../dev/kord/common/entity/AuditLogEvent.kt | 2 +- .../common/entity/AutoModerationActionType.kt | 2 +- .../entity/AutoModerationRuleEventType.kt | 2 +- .../AutoModerationRuleKeywordPresetType.kt | 2 +- .../entity/AutoModerationRuleTriggerType.kt | 2 +- .../dev/kord/common/entity/ButtonStyle.kt | 2 +- .../dev/kord/common/entity/ChannelFlag.kt | 40 +-- .../dev/kord/common/entity/ChannelType.kt | 2 +- .../dev/kord/common/entity/ComponentType.kt | 2 +- .../entity/DefaultMessageNotificationLevel.kt | 2 +- .../entity/DiscordConnectionVisibility.kt | 2 +- .../dev/kord/common/entity/EmbedType.kt | 2 +- .../common/entity/ExplicitContentFilter.kt | 2 +- .../dev/kord/common/entity/ForumLayoutType.kt | 2 +- .../dev/kord/common/entity/GuildFeature.kt | 2 +- .../entity/GuildScheduledEventPrivacyLevel.kt | 2 +- .../entity/GuildScheduledEventStatus.kt | 2 +- .../entity/IntegrationExpireBehavior.kt | 2 +- .../common/entity/InteractionResponseType.kt | 2 +- .../dev/kord/common/entity/InteractionType.kt | 2 +- .../kord/common/entity/InviteTargetType.kt | 2 +- .../kotlin/dev/kord/common/entity/MFALevel.kt | 2 +- .../kord/common/entity/MessageActivityType.kt | 2 +- .../dev/kord/common/entity/MessageFlag.kt | 42 +-- .../kord/common/entity/MessageStickerType.kt | 2 +- .../dev/kord/common/entity/MessageType.kt | 2 +- .../dev/kord/common/entity/NsfwLevel.kt | 2 +- .../common/entity/OnboardingPromptType.kt | 2 +- .../dev/kord/common/entity/OverwriteType.kt | 2 +- .../dev/kord/common/entity/PremiumTier.kt | 2 +- .../dev/kord/common/entity/PresenceStatus.kt | 2 +- .../kord/common/entity/ScheduledEntityType.kt | 2 +- .../dev/kord/common/entity/SortOrderType.kt | 2 +- .../entity/StageInstancePrivacyLevel.kt | 2 +- .../kord/common/entity/TeamMembershipState.kt | 2 +- .../dev/kord/common/entity/TextInputStyle.kt | 2 +- .../dev/kord/common/entity/UserPremium.kt | 2 +- .../kord/common/entity/VerificationLevel.kt | 2 +- .../kord/common/entity/VideoQualityMode.kt | 2 +- .../dev/kord/common/entity/WebhookType.kt | 2 +- .../commonMain/kotlin/entity/ActivityFlag.kt | 38 +-- .../commonMain/kotlin/entity/DiscordShard.kt | 4 +- .../commonMain/kotlin/entity/DiscordUser.kt | 2 +- .../kotlin/entity/GuildMemberFlag.kt | 43 +-- .../commonMain/kotlin/entity/Interactions.kt | 6 +- .../commonMain/kotlin/entity/Permission.kt | 26 +- .../kotlin/entity/SystemChannelFlag.kt | 45 +-- .../src/commonMain/kotlin/entity/UserFlag.kt | 52 +--- core/api/core.api | 17 +- core/src/commonMain/kotlin/Kord.kt | 12 - core/src/commonMain/kotlin/Util.kt | 16 +- .../kotlin/behavior/GuildBehavior.kt | 21 -- core/src/commonMain/kotlin/entity/Member.kt | 11 - core/src/commonMain/kotlin/entity/Message.kt | 2 +- core/src/commonMain/kotlin/entity/Team.kt | 2 +- .../entity/component/SelectMenuComponent.kt | 2 +- gateway/api/gateway.api | 22 +- gateway/src/commonMain/kotlin/Event.kt | 4 +- gateway/src/commonMain/kotlin/Intent.kt | 26 +- gateway/src/commonMain/kotlin/OpCode.kt | 4 +- .../commonMain/kotlin/builder/LoginBuilder.kt | 4 +- .../generation/bitflags/BitFlagsGeneration.kt | 2 +- .../kotlin/generation/bitflags/Builder.kt | 2 +- .../generation/bitflags/DataClassArtifacts.kt | 2 +- .../generation/bitflags/EnumArtifacts.kt | 52 +--- .../generation/kordenum/KordEnumGeneration.kt | 2 +- rest/api/rest.api | 12 +- .../AutoModerationRuleBuilder.kt | 11 - .../AutoModerationRuleCreateBuilder.kt | 35 --- .../AutoModerationRuleModifyBuilder.kt | 10 - .../builder/component/SelectMenuBuilder.kt | 2 +- .../message/create/MessageCreateBuilder.kt | 8 +- ...MessageInteractionResponseCreateBuilder.kt | 2 +- .../message/modify/MessageModifyBuilder.kt | 12 +- .../json/request/InteractionsRequests.kt | 2 +- .../kotlin/service/AutoModerationService.kt | 22 -- .../kotlin/service/InteractionService.kt | 2 +- .../message/create/MessageCreateBuilderJvm.kt | 2 +- .../message/modify/MessageModifyBuilderJvm.kt | 2 +- voice/api/voice.api | 22 +- .../kotlin/dev/kord/voice/EncryptionMode.kt | 2 +- voice/src/main/kotlin/SpeakingFlag.kt | 38 +-- 90 files changed, 350 insertions(+), 740 deletions(-) diff --git a/common/api/common.api b/common/api/common.api index 6c68d15496ed..e1f58056afae 100644 --- a/common/api/common.api +++ b/common/api/common.api @@ -197,26 +197,24 @@ public abstract class dev/kord/common/entity/ActivityFlag { public static final field Sync Ldev/kord/common/entity/ActivityFlag; public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun equals (Ljava/lang/Object;)Z - public final fun getDeclaringClass ()Ljava/lang/Class; - public static synthetic fun getEntries ()Lkotlin/enums/EnumEntries; + public final synthetic fun getDeclaringClass ()Ljava/lang/Class; public final fun getShift ()I public final fun getValue ()I public final fun hashCode ()I - public final fun name ()Ljava/lang/String; - public final fun ordinal ()I + public final synthetic fun name ()Ljava/lang/String; + public final synthetic fun ordinal ()I public final fun plus (Ldev/kord/common/entity/ActivityFlag;)Ldev/kord/common/entity/ActivityFlags; public final fun plus (Ldev/kord/common/entity/ActivityFlags;)Ldev/kord/common/entity/ActivityFlags; public final fun toString ()Ljava/lang/String; - public static fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ActivityFlag; - public static fun values ()[Ldev/kord/common/entity/ActivityFlag; + public static synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ActivityFlag; + public static synthetic fun values ()[Ldev/kord/common/entity/ActivityFlag; } public final class dev/kord/common/entity/ActivityFlag$Companion { public final fun fromShift (I)Ldev/kord/common/entity/ActivityFlag; public final fun getEntries ()Ljava/util/List; - public synthetic fun getEntries ()Lkotlin/enums/EnumEntries; - public fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ActivityFlag; - public fun values ()[Ldev/kord/common/entity/ActivityFlag; + public synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ActivityFlag; + public synthetic fun values ()[Ldev/kord/common/entity/ActivityFlag; } public final class dev/kord/common/entity/ActivityFlag$Embedded : dev/kord/common/entity/ActivityFlag { @@ -269,12 +267,12 @@ public final class dev/kord/common/entity/ActivityFlagKt { public final class dev/kord/common/entity/ActivityFlags { public static final field Companion Ldev/kord/common/entity/ActivityFlags$Companion; - public fun (I)V + public synthetic fun (I)V public final fun contains (Ldev/kord/common/entity/ActivityFlag;)Z public final fun contains (Ldev/kord/common/entity/ActivityFlags;)Z public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/ActivityFlags; public fun equals (Ljava/lang/Object;)Z - public final fun getFlags ()Ljava/util/Set; + public final synthetic fun getFlags ()Ljava/util/Set; public final fun getValue ()I public final fun getValues ()Ljava/util/Set; public fun hashCode ()I @@ -336,7 +334,7 @@ public final class dev/kord/common/entity/ActivityType$Streaming : dev/kord/comm } public final class dev/kord/common/entity/ActivityType$Unknown : dev/kord/common/entity/ActivityType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/ActivityType$Watching : dev/kord/common/entity/ActivityType { @@ -399,7 +397,7 @@ public final class dev/kord/common/entity/AllowedMentionType$RoleMentions : dev/ } public final class dev/kord/common/entity/AllowedMentionType$Unknown : dev/kord/common/entity/AllowedMentionType { - public fun (Ljava/lang/String;)V + public synthetic fun (Ljava/lang/String;)V } public final class dev/kord/common/entity/AllowedMentionType$UserMentions : dev/kord/common/entity/AllowedMentionType { @@ -552,7 +550,7 @@ public final class dev/kord/common/entity/ApplicationCommandOptionType$SubComman } public final class dev/kord/common/entity/ApplicationCommandOptionType$Unknown : dev/kord/common/entity/ApplicationCommandOptionType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/ApplicationCommandOptionType$User : dev/kord/common/entity/ApplicationCommandOptionType { @@ -583,7 +581,7 @@ public final class dev/kord/common/entity/ApplicationCommandPermissionType$Role } public final class dev/kord/common/entity/ApplicationCommandPermissionType$Unknown : dev/kord/common/entity/ApplicationCommandPermissionType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/ApplicationCommandPermissionType$User : dev/kord/common/entity/ApplicationCommandPermissionType { @@ -614,7 +612,7 @@ public final class dev/kord/common/entity/ApplicationCommandType$Message : dev/k } public final class dev/kord/common/entity/ApplicationCommandType$Unknown : dev/kord/common/entity/ApplicationCommandType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/ApplicationCommandType$User : dev/kord/common/entity/ApplicationCommandType { @@ -636,17 +634,16 @@ public abstract class dev/kord/common/entity/ApplicationFlag { public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getDeclaringClass ()Ljava/lang/Class; - public static synthetic fun getEntries ()Lkotlin/enums/EnumEntries; + public final synthetic fun getDeclaringClass ()Ljava/lang/Class; public final fun getShift ()I public final fun hashCode ()I - public final fun name ()Ljava/lang/String; - public final fun ordinal ()I + public final synthetic fun name ()Ljava/lang/String; + public final synthetic fun ordinal ()I public final fun plus (Ldev/kord/common/entity/ApplicationFlag;)Ldev/kord/common/entity/ApplicationFlags; public final fun plus (Ldev/kord/common/entity/ApplicationFlags;)Ldev/kord/common/entity/ApplicationFlags; public final fun toString ()Ljava/lang/String; - public static fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ApplicationFlag; - public static fun values ()[Ldev/kord/common/entity/ApplicationFlag; + public static synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ApplicationFlag; + public static synthetic fun values ()[Ldev/kord/common/entity/ApplicationFlag; } public final class dev/kord/common/entity/ApplicationFlag$ApplicationAutoModerationRuleCreateBadge : dev/kord/common/entity/ApplicationFlag { @@ -660,9 +657,8 @@ public final class dev/kord/common/entity/ApplicationFlag$ApplicationCommandBadg public final class dev/kord/common/entity/ApplicationFlag$Companion { public final fun fromShift (I)Ldev/kord/common/entity/ApplicationFlag; public final fun getEntries ()Ljava/util/List; - public synthetic fun getEntries ()Lkotlin/enums/EnumEntries; - public fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ApplicationFlag; - public fun values ()[Ldev/kord/common/entity/ApplicationFlag; + public synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ApplicationFlag; + public synthetic fun values ()[Ldev/kord/common/entity/ApplicationFlag; } public final class dev/kord/common/entity/ApplicationFlag$Embedded : dev/kord/common/entity/ApplicationFlag { @@ -711,15 +707,15 @@ public final class dev/kord/common/entity/ApplicationFlagKt { public final class dev/kord/common/entity/ApplicationFlags { public static final field Companion Ldev/kord/common/entity/ApplicationFlags$Companion; - public final fun component1 ()I + public final synthetic fun component1 ()I public final fun contains (Ldev/kord/common/entity/ApplicationFlag;)Z public final fun contains (Ldev/kord/common/entity/ApplicationFlags;)Z - public final fun copy (I)Ldev/kord/common/entity/ApplicationFlags; + public final synthetic fun copy (I)Ldev/kord/common/entity/ApplicationFlags; public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/ApplicationFlags; public static synthetic fun copy$default (Ldev/kord/common/entity/ApplicationFlags;IILjava/lang/Object;)Ldev/kord/common/entity/ApplicationFlags; public fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getFlags ()Ljava/util/List; + public final synthetic fun getFlags ()Ljava/util/List; public final fun getValues ()Ljava/util/Set; public fun hashCode ()I public final fun minus (Ldev/kord/common/entity/ApplicationFlag;)Ldev/kord/common/entity/ApplicationFlags; @@ -734,7 +730,7 @@ public final class dev/kord/common/entity/ApplicationFlags$Builder { public fun (I)V public synthetic fun (IILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun build ()Ldev/kord/common/entity/ApplicationFlags; - public final fun flags ()Ldev/kord/common/entity/ApplicationFlags; + public final synthetic fun flags ()Ldev/kord/common/entity/ApplicationFlags; public final fun unaryMinus (Ldev/kord/common/entity/ApplicationFlag;)V public final fun unaryMinus (Ldev/kord/common/entity/ApplicationFlags;)V public final fun unaryPlus (Ldev/kord/common/entity/ApplicationFlag;)V @@ -793,7 +789,7 @@ public final class dev/kord/common/entity/ApplicationRoleConnectionMetadataType$ } public final class dev/kord/common/entity/ApplicationRoleConnectionMetadataType$Unknown : dev/kord/common/entity/ApplicationRoleConnectionMetadataType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/ArchiveDuration { @@ -1445,7 +1441,7 @@ public final class dev/kord/common/entity/AuditLogEvent$ThreadUpdate : dev/kord/ } public final class dev/kord/common/entity/AuditLogEvent$Unknown : dev/kord/common/entity/AuditLogEvent { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/AuditLogEvent$WebhookCreate : dev/kord/common/entity/AuditLogEvent { @@ -1488,7 +1484,7 @@ public final class dev/kord/common/entity/AutoModerationActionType$Timeout : dev } public final class dev/kord/common/entity/AutoModerationActionType$Unknown : dev/kord/common/entity/AutoModerationActionType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/AutoModerationRuleEventType { @@ -1511,7 +1507,7 @@ public final class dev/kord/common/entity/AutoModerationRuleEventType$MessageSen } public final class dev/kord/common/entity/AutoModerationRuleEventType$Unknown : dev/kord/common/entity/AutoModerationRuleEventType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/AutoModerationRuleKeywordPresetType { @@ -1542,7 +1538,7 @@ public final class dev/kord/common/entity/AutoModerationRuleKeywordPresetType$Sl } public final class dev/kord/common/entity/AutoModerationRuleKeywordPresetType$Unknown : dev/kord/common/entity/AutoModerationRuleKeywordPresetType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/AutoModerationRuleTriggerType { @@ -1577,7 +1573,7 @@ public final class dev/kord/common/entity/AutoModerationRuleTriggerType$Spam : d } public final class dev/kord/common/entity/AutoModerationRuleTriggerType$Unknown : dev/kord/common/entity/AutoModerationRuleTriggerType { - public fun (I)V + public synthetic fun (I)V } public abstract interface class dev/kord/common/entity/BaseDiscordApplication { @@ -1683,7 +1679,7 @@ public final class dev/kord/common/entity/ButtonStyle$Success : dev/kord/common/ } public final class dev/kord/common/entity/ButtonStyle$Unknown : dev/kord/common/entity/ButtonStyle { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/ChannelFlag { @@ -1693,25 +1689,23 @@ public abstract class dev/kord/common/entity/ChannelFlag { public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getDeclaringClass ()Ljava/lang/Class; - public static synthetic fun getEntries ()Lkotlin/enums/EnumEntries; + public final synthetic fun getDeclaringClass ()Ljava/lang/Class; public final fun getShift ()I public final fun hashCode ()I - public final fun name ()Ljava/lang/String; - public final fun ordinal ()I + public final synthetic fun name ()Ljava/lang/String; + public final synthetic fun ordinal ()I public final fun plus (Ldev/kord/common/entity/ChannelFlag;)Ldev/kord/common/entity/ChannelFlags; public final fun plus (Ldev/kord/common/entity/ChannelFlags;)Ldev/kord/common/entity/ChannelFlags; public final fun toString ()Ljava/lang/String; - public static fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ChannelFlag; - public static fun values ()[Ldev/kord/common/entity/ChannelFlag; + public static synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ChannelFlag; + public static synthetic fun values ()[Ldev/kord/common/entity/ChannelFlag; } public final class dev/kord/common/entity/ChannelFlag$Companion { public final fun fromShift (I)Ldev/kord/common/entity/ChannelFlag; public final fun getEntries ()Ljava/util/List; - public synthetic fun getEntries ()Lkotlin/enums/EnumEntries; - public fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ChannelFlag; - public fun values ()[Ldev/kord/common/entity/ChannelFlag; + public synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/ChannelFlag; + public synthetic fun values ()[Ldev/kord/common/entity/ChannelFlag; } public final class dev/kord/common/entity/ChannelFlag$HideMediaDownloadOptions : dev/kord/common/entity/ChannelFlag { @@ -1740,15 +1734,15 @@ public final class dev/kord/common/entity/ChannelFlagKt { public final class dev/kord/common/entity/ChannelFlags { public static final field Companion Ldev/kord/common/entity/ChannelFlags$Companion; - public final fun component1 ()I + public final synthetic fun component1 ()I public final fun contains (Ldev/kord/common/entity/ChannelFlag;)Z public final fun contains (Ldev/kord/common/entity/ChannelFlags;)Z - public final fun copy (I)Ldev/kord/common/entity/ChannelFlags; + public final synthetic fun copy (I)Ldev/kord/common/entity/ChannelFlags; public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/ChannelFlags; public static synthetic fun copy$default (Ldev/kord/common/entity/ChannelFlags;IILjava/lang/Object;)Ldev/kord/common/entity/ChannelFlags; public fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getFlags ()Ljava/util/List; + public final synthetic fun getFlags ()Ljava/util/List; public final fun getValues ()Ljava/util/Set; public fun hashCode ()I public final fun minus (Ldev/kord/common/entity/ChannelFlag;)Ldev/kord/common/entity/ChannelFlags; @@ -1841,7 +1835,7 @@ public final class dev/kord/common/entity/ChannelType$PublicNewsThread : dev/kor } public final class dev/kord/common/entity/ChannelType$Unknown : dev/kord/common/entity/ChannelType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/Choice { @@ -1853,7 +1847,7 @@ public abstract class dev/kord/common/entity/Choice { public final class dev/kord/common/entity/Choice$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; - public final fun serializer (Lkotlinx/serialization/KSerializer;)Lkotlinx/serialization/KSerializer; + public final synthetic fun serializer (Lkotlinx/serialization/KSerializer;)Lkotlinx/serialization/KSerializer; } public final class dev/kord/common/entity/Choice$IntegerChoice : dev/kord/common/entity/Choice { @@ -2153,7 +2147,7 @@ public final class dev/kord/common/entity/ComponentType$TextInput : dev/kord/com } public final class dev/kord/common/entity/ComponentType$Unknown : dev/kord/common/entity/ComponentType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/ComponentType$UserSelect : dev/kord/common/entity/ComponentType { @@ -2184,7 +2178,7 @@ public final class dev/kord/common/entity/DefaultMessageNotificationLevel$OnlyMe } public final class dev/kord/common/entity/DefaultMessageNotificationLevel$Unknown : dev/kord/common/entity/DefaultMessageNotificationLevel { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/DefaultReaction { @@ -2901,7 +2895,7 @@ public final class dev/kord/common/entity/DiscordAutoComplete$$serializer : kotl public final class dev/kord/common/entity/DiscordAutoComplete$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; - public final fun serializer (Lkotlinx/serialization/KSerializer;)Lkotlinx/serialization/KSerializer; + public final synthetic fun serializer (Lkotlinx/serialization/KSerializer;)Lkotlinx/serialization/KSerializer; } public final class dev/kord/common/entity/DiscordAutoModerationAction { @@ -3379,7 +3373,7 @@ public final class dev/kord/common/entity/DiscordConnectionVisibility$None : dev } public final class dev/kord/common/entity/DiscordConnectionVisibility$Unknown : dev/kord/common/entity/DiscordConnectionVisibility { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/DiscordDeletedGuildRole { @@ -6214,7 +6208,7 @@ public final class dev/kord/common/entity/DiscordUser$Companion { } public final class dev/kord/common/entity/DiscordUserKt { - public static final fun UserFlags (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/UserFlags; + public static final synthetic fun UserFlags (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/UserFlags; } public final class dev/kord/common/entity/DiscordVoiceRegion { @@ -6506,7 +6500,7 @@ public final class dev/kord/common/entity/EmbedType$Rich : dev/kord/common/entit } public final class dev/kord/common/entity/EmbedType$Unknown : dev/kord/common/entity/EmbedType { - public fun (Ljava/lang/String;)V + public synthetic fun (Ljava/lang/String;)V } public final class dev/kord/common/entity/EmbedType$Video : dev/kord/common/entity/EmbedType { @@ -6541,7 +6535,7 @@ public final class dev/kord/common/entity/ExplicitContentFilter$MembersWithoutRo } public final class dev/kord/common/entity/ExplicitContentFilter$Unknown : dev/kord/common/entity/ExplicitContentFilter { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/ForumLayoutType { @@ -6572,7 +6566,7 @@ public final class dev/kord/common/entity/ForumLayoutType$NotSet : dev/kord/comm } public final class dev/kord/common/entity/ForumLayoutType$Unknown : dev/kord/common/entity/ForumLayoutType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/ForumTag { @@ -6718,7 +6712,7 @@ public final class dev/kord/common/entity/GuildFeature$TicketedEventsEnabled : d } public final class dev/kord/common/entity/GuildFeature$Unknown : dev/kord/common/entity/GuildFeature { - public fun (Ljava/lang/String;)V + public synthetic fun (Ljava/lang/String;)V } public final class dev/kord/common/entity/GuildFeature$VIPRegions : dev/kord/common/entity/GuildFeature { @@ -6746,17 +6740,16 @@ public abstract class dev/kord/common/entity/GuildMemberFlag { public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getDeclaringClass ()Ljava/lang/Class; - public static synthetic fun getEntries ()Lkotlin/enums/EnumEntries; + public final synthetic fun getDeclaringClass ()Ljava/lang/Class; public final fun getShift ()I public final fun hashCode ()I - public final fun name ()Ljava/lang/String; - public final fun ordinal ()I + public final synthetic fun name ()Ljava/lang/String; + public final synthetic fun ordinal ()I public final fun plus (Ldev/kord/common/entity/GuildMemberFlag;)Ldev/kord/common/entity/GuildMemberFlags; public final fun plus (Ldev/kord/common/entity/GuildMemberFlags;)Ldev/kord/common/entity/GuildMemberFlags; public final fun toString ()Ljava/lang/String; - public static fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/GuildMemberFlag; - public static fun values ()[Ldev/kord/common/entity/GuildMemberFlag; + public static synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/GuildMemberFlag; + public static synthetic fun values ()[Ldev/kord/common/entity/GuildMemberFlag; } public final class dev/kord/common/entity/GuildMemberFlag$BypassesVerification : dev/kord/common/entity/GuildMemberFlag { @@ -6766,10 +6759,9 @@ public final class dev/kord/common/entity/GuildMemberFlag$BypassesVerification : public final class dev/kord/common/entity/GuildMemberFlag$Companion { public final fun fromShift (I)Ldev/kord/common/entity/GuildMemberFlag; public final fun getEntries ()Ljava/util/List; - public synthetic fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun serializer ()Lkotlinx/serialization/KSerializer; - public fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/GuildMemberFlag; - public fun values ()[Ldev/kord/common/entity/GuildMemberFlag; + public final synthetic fun serializer ()Lkotlinx/serialization/KSerializer; + public synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/GuildMemberFlag; + public synthetic fun values ()[Ldev/kord/common/entity/GuildMemberFlag; } public final class dev/kord/common/entity/GuildMemberFlag$CompletedOnboarding : dev/kord/common/entity/GuildMemberFlag { @@ -6798,11 +6790,11 @@ public final class dev/kord/common/entity/GuildMemberFlagKt { public final class dev/kord/common/entity/GuildMemberFlags { public static final field Companion Ldev/kord/common/entity/GuildMemberFlags$Companion; - public fun (I)V - public final fun component1 ()I + public synthetic fun (I)V + public final synthetic fun component1 ()I public final fun contains (Ldev/kord/common/entity/GuildMemberFlag;)Z public final fun contains (Ldev/kord/common/entity/GuildMemberFlags;)Z - public final fun copy (I)Ldev/kord/common/entity/GuildMemberFlags; + public final synthetic fun copy (I)Ldev/kord/common/entity/GuildMemberFlags; public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/GuildMemberFlags; public static synthetic fun copy$default (Ldev/kord/common/entity/GuildMemberFlags;IILjava/lang/Object;)Ldev/kord/common/entity/GuildMemberFlags; public fun equals (Ljava/lang/Object;)Z @@ -6880,7 +6872,7 @@ public final class dev/kord/common/entity/GuildScheduledEventPrivacyLevel$GuildO } public final class dev/kord/common/entity/GuildScheduledEventPrivacyLevel$Unknown : dev/kord/common/entity/GuildScheduledEventPrivacyLevel { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/GuildScheduledEventStatus { @@ -6915,7 +6907,7 @@ public final class dev/kord/common/entity/GuildScheduledEventStatus$Scheduled : } public final class dev/kord/common/entity/GuildScheduledEventStatus$Unknown : dev/kord/common/entity/GuildScheduledEventStatus { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/InstallParams { @@ -7007,7 +6999,7 @@ public final class dev/kord/common/entity/IntegrationExpireBehavior$RemoveRole : } public final class dev/kord/common/entity/IntegrationExpireBehavior$Unknown : dev/kord/common/entity/IntegrationExpireBehavior { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/InteractionCallbackData { @@ -7099,7 +7091,7 @@ public final class dev/kord/common/entity/InteractionResponseType$Pong : dev/kor } public final class dev/kord/common/entity/InteractionResponseType$Unknown : dev/kord/common/entity/InteractionResponseType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/InteractionResponseType$UpdateMessage : dev/kord/common/entity/InteractionResponseType { @@ -7142,7 +7134,7 @@ public final class dev/kord/common/entity/InteractionType$Ping : dev/kord/common } public final class dev/kord/common/entity/InteractionType$Unknown : dev/kord/common/entity/InteractionType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/InviteTargetType { @@ -7169,7 +7161,7 @@ public final class dev/kord/common/entity/InviteTargetType$Stream : dev/kord/com } public final class dev/kord/common/entity/InviteTargetType$Unknown : dev/kord/common/entity/InviteTargetType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/MFALevel { @@ -7196,7 +7188,7 @@ public final class dev/kord/common/entity/MFALevel$None : dev/kord/common/entity } public final class dev/kord/common/entity/MFALevel$Unknown : dev/kord/common/entity/MFALevel { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/MessageActivity { @@ -7261,7 +7253,7 @@ public final class dev/kord/common/entity/MessageActivityType$Spectate : dev/kor } public final class dev/kord/common/entity/MessageActivityType$Unknown : dev/kord/common/entity/MessageActivityType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/MessageApplication { @@ -7316,25 +7308,23 @@ public abstract class dev/kord/common/entity/MessageFlag { public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getDeclaringClass ()Ljava/lang/Class; - public static synthetic fun getEntries ()Lkotlin/enums/EnumEntries; + public final synthetic fun getDeclaringClass ()Ljava/lang/Class; public final fun getShift ()I public final fun hashCode ()I - public final fun name ()Ljava/lang/String; - public final fun ordinal ()I + public final synthetic fun name ()Ljava/lang/String; + public final synthetic fun ordinal ()I public final fun plus (Ldev/kord/common/entity/MessageFlag;)Ldev/kord/common/entity/MessageFlags; public final fun plus (Ldev/kord/common/entity/MessageFlags;)Ldev/kord/common/entity/MessageFlags; public final fun toString ()Ljava/lang/String; - public static fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/MessageFlag; - public static fun values ()[Ldev/kord/common/entity/MessageFlag; + public static synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/MessageFlag; + public static synthetic fun values ()[Ldev/kord/common/entity/MessageFlag; } public final class dev/kord/common/entity/MessageFlag$Companion { public final fun fromShift (I)Ldev/kord/common/entity/MessageFlag; public final fun getEntries ()Ljava/util/List; - public synthetic fun getEntries ()Lkotlin/enums/EnumEntries; - public fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/MessageFlag; - public fun values ()[Ldev/kord/common/entity/MessageFlag; + public synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/MessageFlag; + public synthetic fun values ()[Ldev/kord/common/entity/MessageFlag; } public final class dev/kord/common/entity/MessageFlag$CrossPosted : dev/kord/common/entity/MessageFlag { @@ -7395,15 +7385,15 @@ public final class dev/kord/common/entity/MessageFlagKt { public final class dev/kord/common/entity/MessageFlags { public static final field Companion Ldev/kord/common/entity/MessageFlags$Companion; - public final fun component1 ()I + public final synthetic fun component1 ()I public final fun contains (Ldev/kord/common/entity/MessageFlag;)Z public final fun contains (Ldev/kord/common/entity/MessageFlags;)Z - public final fun copy (I)Ldev/kord/common/entity/MessageFlags; + public final synthetic fun copy (I)Ldev/kord/common/entity/MessageFlags; public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/MessageFlags; public static synthetic fun copy$default (Ldev/kord/common/entity/MessageFlags;IILjava/lang/Object;)Ldev/kord/common/entity/MessageFlags; public fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getFlags ()Ljava/util/List; + public final synthetic fun getFlags ()Ljava/util/List; public final fun getValues ()Ljava/util/Set; public fun hashCode ()I public final fun minus (Ldev/kord/common/entity/MessageFlag;)Ldev/kord/common/entity/MessageFlags; @@ -7418,7 +7408,7 @@ public final class dev/kord/common/entity/MessageFlags$Builder { public fun (I)V public synthetic fun (IILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun build ()Ldev/kord/common/entity/MessageFlags; - public final fun flags ()Ldev/kord/common/entity/MessageFlags; + public final synthetic fun flags ()Ldev/kord/common/entity/MessageFlags; public final fun unaryMinus (Ldev/kord/common/entity/MessageFlag;)V public final fun unaryMinus (Ldev/kord/common/entity/MessageFlags;)V public final fun unaryPlus (Ldev/kord/common/entity/MessageFlag;)V @@ -7537,7 +7527,7 @@ public final class dev/kord/common/entity/MessageStickerType$PNG : dev/kord/comm } public final class dev/kord/common/entity/MessageStickerType$Unknown : dev/kord/common/entity/MessageStickerType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/MessageType { @@ -7676,7 +7666,7 @@ public final class dev/kord/common/entity/MessageType$ThreadStarterMessage : dev } public final class dev/kord/common/entity/MessageType$Unknown : dev/kord/common/entity/MessageType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/MessageType$UserJoin : dev/kord/common/entity/MessageType { @@ -7724,7 +7714,7 @@ public final class dev/kord/common/entity/NsfwLevel$Safe : dev/kord/common/entit } public final class dev/kord/common/entity/NsfwLevel$Unknown : dev/kord/common/entity/NsfwLevel { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/OnboardingMode { @@ -7777,7 +7767,7 @@ public final class dev/kord/common/entity/OnboardingPromptType$MultipleChoice : } public final class dev/kord/common/entity/OnboardingPromptType$Unknown : dev/kord/common/entity/OnboardingPromptType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/Option { @@ -7847,7 +7837,7 @@ public final class dev/kord/common/entity/OverwriteType$Role : dev/kord/common/e } public final class dev/kord/common/entity/OverwriteType$Unknown : dev/kord/common/entity/OverwriteType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/Permission { @@ -7890,7 +7880,7 @@ public final class dev/kord/common/entity/Permission$ChangeNickname : dev/kord/c public final class dev/kord/common/entity/Permission$Companion { public final fun fromShift (I)Ldev/kord/common/entity/Permission; public final fun getEntries ()Ljava/util/List; - public final fun getValues ()Ljava/util/Set; + public final synthetic fun getValues ()Ljava/util/Set; } public final class dev/kord/common/entity/Permission$Connect : dev/kord/common/entity/Permission { @@ -8018,8 +8008,8 @@ public final class dev/kord/common/entity/Permission$Stream : dev/kord/common/en } public final class dev/kord/common/entity/Permission$Unknown : dev/kord/common/entity/Permission { - public fun (Ldev/kord/common/DiscordBitSet;)V - public fun ([J)V + public synthetic fun (Ldev/kord/common/DiscordBitSet;)V + public synthetic fun ([J)V } public final class dev/kord/common/entity/Permission$UseApplicationCommands : dev/kord/common/entity/Permission { @@ -8069,8 +8059,8 @@ public final class dev/kord/common/entity/Permission$ViewGuildInsights : dev/kor public final class dev/kord/common/entity/PermissionKt { public static final synthetic fun PermissionWithIterable (Ljava/lang/Iterable;)Ldev/kord/common/entity/Permissions; public static final fun Permissions (Ljava/lang/Iterable;)Ldev/kord/common/entity/Permissions; - public static final fun Permissions (Ljava/lang/String;)Ldev/kord/common/entity/Permissions; - public static final fun Permissions (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/Permissions; + public static final synthetic fun Permissions (Ljava/lang/String;)Ldev/kord/common/entity/Permissions; + public static final synthetic fun Permissions (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/Permissions; public static final fun Permissions ([Ldev/kord/common/entity/Permission;)Ldev/kord/common/entity/Permissions; public static final fun Permissions ([Ldev/kord/common/entity/Permissions;)Ldev/kord/common/entity/Permissions; public static synthetic fun Permissions$default (Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/kord/common/entity/Permissions; @@ -8082,12 +8072,12 @@ public final class dev/kord/common/entity/PermissionKt { public final class dev/kord/common/entity/Permissions { public static final field Companion Ldev/kord/common/entity/Permissions$Companion; public static final field NewCompanion Ldev/kord/common/entity/Permissions$NewCompanion; - public fun (Ldev/kord/common/DiscordBitSet;)V - public final fun component1 ()Ldev/kord/common/DiscordBitSet; + public synthetic fun (Ldev/kord/common/DiscordBitSet;)V + public final synthetic fun component1 ()Ldev/kord/common/DiscordBitSet; public final fun contains (Ldev/kord/common/entity/Permission;)Z public final fun contains (Ldev/kord/common/entity/Permissions;)Z - public final fun copy (Ldev/kord/common/DiscordBitSet;)Ldev/kord/common/entity/Permissions; - public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/Permissions; + public final synthetic fun copy (Ldev/kord/common/DiscordBitSet;)Ldev/kord/common/entity/Permissions; + public final synthetic fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/Permissions; public static synthetic fun copy$default (Ldev/kord/common/entity/Permissions;Ldev/kord/common/DiscordBitSet;ILjava/lang/Object;)Ldev/kord/common/entity/Permissions; public final fun copy0 (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/Permissions; public fun equals (Ljava/lang/Object;)Z @@ -8170,7 +8160,7 @@ public final class dev/kord/common/entity/PremiumTier$Two : dev/kord/common/enti } public final class dev/kord/common/entity/PremiumTier$Unknown : dev/kord/common/entity/PremiumTier { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/PresenceStatus { @@ -8209,7 +8199,7 @@ public final class dev/kord/common/entity/PresenceStatus$Online : dev/kord/commo } public final class dev/kord/common/entity/PresenceStatus$Unknown : dev/kord/common/entity/PresenceStatus { - public fun (Ljava/lang/String;)V + public synthetic fun (Ljava/lang/String;)V } public final class dev/kord/common/entity/Reaction { @@ -8403,7 +8393,7 @@ public final class dev/kord/common/entity/ScheduledEntityType$StageInstance : de } public final class dev/kord/common/entity/ScheduledEntityType$Unknown : dev/kord/common/entity/ScheduledEntityType { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/ScheduledEntityType$Voice : dev/kord/common/entity/ScheduledEntityType { @@ -8500,7 +8490,7 @@ public final class dev/kord/common/entity/SortOrderType$LatestActivity : dev/kor } public final class dev/kord/common/entity/SortOrderType$Unknown : dev/kord/common/entity/SortOrderType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/StageInstancePrivacyLevel { @@ -8527,7 +8517,7 @@ public final class dev/kord/common/entity/StageInstancePrivacyLevel$Public : dev } public final class dev/kord/common/entity/StageInstancePrivacyLevel$Unknown : dev/kord/common/entity/StageInstancePrivacyLevel { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/SubCommand : dev/kord/common/entity/Option { @@ -8572,25 +8562,23 @@ public abstract class dev/kord/common/entity/SystemChannelFlag { public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getDeclaringClass ()Ljava/lang/Class; - public static synthetic fun getEntries ()Lkotlin/enums/EnumEntries; + public final synthetic fun getDeclaringClass ()Ljava/lang/Class; public final fun getShift ()I public final fun hashCode ()I - public final fun name ()Ljava/lang/String; - public final fun ordinal ()I + public final synthetic fun name ()Ljava/lang/String; + public final synthetic fun ordinal ()I public final fun plus (Ldev/kord/common/entity/SystemChannelFlag;)Ldev/kord/common/entity/SystemChannelFlags; public final fun plus (Ldev/kord/common/entity/SystemChannelFlags;)Ldev/kord/common/entity/SystemChannelFlags; public final fun toString ()Ljava/lang/String; - public static fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/SystemChannelFlag; - public static fun values ()[Ldev/kord/common/entity/SystemChannelFlag; + public static synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/SystemChannelFlag; + public static synthetic fun values ()[Ldev/kord/common/entity/SystemChannelFlag; } public final class dev/kord/common/entity/SystemChannelFlag$Companion { public final fun fromShift (I)Ldev/kord/common/entity/SystemChannelFlag; public final fun getEntries ()Ljava/util/List; - public synthetic fun getEntries ()Lkotlin/enums/EnumEntries; - public fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/SystemChannelFlag; - public fun values ()[Ldev/kord/common/entity/SystemChannelFlag; + public synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/SystemChannelFlag; + public synthetic fun values ()[Ldev/kord/common/entity/SystemChannelFlag; } public final class dev/kord/common/entity/SystemChannelFlag$SuppressGuildReminderNotifications : dev/kord/common/entity/SystemChannelFlag { @@ -8632,11 +8620,11 @@ public final class dev/kord/common/entity/SystemChannelFlagKt { public final class dev/kord/common/entity/SystemChannelFlags { public static final field Companion Ldev/kord/common/entity/SystemChannelFlags$Companion; public static final field NewCompanion Ldev/kord/common/entity/SystemChannelFlags$NewCompanion; - public fun (I)V - public final fun component1 ()I + public synthetic fun (I)V + public final synthetic fun component1 ()I public final fun contains (Ldev/kord/common/entity/SystemChannelFlag;)Z public final fun contains (Ldev/kord/common/entity/SystemChannelFlags;)Z - public final fun copy (I)Ldev/kord/common/entity/SystemChannelFlags; + public final synthetic fun copy (I)Ldev/kord/common/entity/SystemChannelFlags; public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/SystemChannelFlags; public static synthetic fun copy$default (Ldev/kord/common/entity/SystemChannelFlags;IILjava/lang/Object;)Ldev/kord/common/entity/SystemChannelFlags; public fun equals (Ljava/lang/Object;)Z @@ -8728,7 +8716,7 @@ public final class dev/kord/common/entity/TeamMembershipState$Invited : dev/kord } public final class dev/kord/common/entity/TeamMembershipState$Unknown : dev/kord/common/entity/TeamMembershipState { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/TextInputStyle { @@ -8755,7 +8743,7 @@ public final class dev/kord/common/entity/TextInputStyle$Short : dev/kord/common } public final class dev/kord/common/entity/TextInputStyle$Unknown : dev/kord/common/entity/TextInputStyle { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/UserFlag { @@ -8779,17 +8767,16 @@ public abstract class dev/kord/common/entity/UserFlag { public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getDeclaringClass ()Ljava/lang/Class; - public static synthetic fun getEntries ()Lkotlin/enums/EnumEntries; + public final synthetic fun getDeclaringClass ()Ljava/lang/Class; public final fun getShift ()I public final fun hashCode ()I - public final fun name ()Ljava/lang/String; - public final fun ordinal ()I + public final synthetic fun name ()Ljava/lang/String; + public final synthetic fun ordinal ()I public final fun plus (Ldev/kord/common/entity/UserFlag;)Ldev/kord/common/entity/UserFlags; public final fun plus (Ldev/kord/common/entity/UserFlags;)Ldev/kord/common/entity/UserFlags; public final fun toString ()Ljava/lang/String; - public static fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/UserFlag; - public static fun values ()[Ldev/kord/common/entity/UserFlag; + public static synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/UserFlag; + public static synthetic fun values ()[Ldev/kord/common/entity/UserFlag; } public final class dev/kord/common/entity/UserFlag$ActiveDeveloper : dev/kord/common/entity/UserFlag { @@ -8811,9 +8798,8 @@ public final class dev/kord/common/entity/UserFlag$BugHunterLevel2 : dev/kord/co public final class dev/kord/common/entity/UserFlag$Companion { public final fun fromShift (I)Ldev/kord/common/entity/UserFlag; public final fun getEntries ()Ljava/util/List; - public synthetic fun getEntries ()Lkotlin/enums/EnumEntries; - public fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/UserFlag; - public fun values ()[Ldev/kord/common/entity/UserFlag; + public synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/common/entity/UserFlag; + public synthetic fun values ()[Ldev/kord/common/entity/UserFlag; } public final class dev/kord/common/entity/UserFlag$DiscordCertifiedModerator : dev/kord/common/entity/UserFlag { @@ -8879,17 +8865,17 @@ public final class dev/kord/common/entity/UserFlagKt { public final class dev/kord/common/entity/UserFlags { public static final field Companion Ldev/kord/common/entity/UserFlags$Companion; public static final field UserFlagsSerializer Ldev/kord/common/entity/UserFlags$UserFlagsSerializer; - public fun (I)V - public final fun component1 ()I + public synthetic fun (I)V + public final synthetic fun component1 ()I public final fun contains (Ldev/kord/common/entity/UserFlag;)Z public final fun contains (Ldev/kord/common/entity/UserFlags;)Z - public final fun copy (I)Ldev/kord/common/entity/UserFlags; - public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/UserFlags; + public final synthetic fun copy (I)Ldev/kord/common/entity/UserFlags; + public final synthetic fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/UserFlags; public static synthetic fun copy$default (Ldev/kord/common/entity/UserFlags;IILjava/lang/Object;)Ldev/kord/common/entity/UserFlags; public final fun copy0 (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/UserFlags; public fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getFlags ()Ljava/util/List; + public final synthetic fun getFlags ()Ljava/util/List; public final fun getValues ()Ljava/util/Set; public fun hashCode ()I public final fun minus (Ldev/kord/common/entity/UserFlag;)Ldev/kord/common/entity/UserFlags; @@ -8964,7 +8950,7 @@ public final class dev/kord/common/entity/UserPremium$None : dev/kord/common/ent } public final class dev/kord/common/entity/UserPremium$Unknown : dev/kord/common/entity/UserPremium { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/VerificationLevel { @@ -8999,7 +8985,7 @@ public final class dev/kord/common/entity/VerificationLevel$None : dev/kord/comm } public final class dev/kord/common/entity/VerificationLevel$Unknown : dev/kord/common/entity/VerificationLevel { - public fun (I)V + public synthetic fun (I)V } public final class dev/kord/common/entity/VerificationLevel$VeryHigh : dev/kord/common/entity/VerificationLevel { @@ -9030,7 +9016,7 @@ public final class dev/kord/common/entity/VideoQualityMode$Full : dev/kord/commo } public final class dev/kord/common/entity/VideoQualityMode$Unknown : dev/kord/common/entity/VideoQualityMode { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/WebhookType { @@ -9061,7 +9047,7 @@ public final class dev/kord/common/entity/WebhookType$Incoming : dev/kord/common } public final class dev/kord/common/entity/WebhookType$Unknown : dev/kord/common/entity/WebhookType { - public fun (I)V + public synthetic fun (I)V } public abstract class dev/kord/common/entity/optional/Optional { diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ActivityType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ActivityType.kt index 72c14c510f73..f00b0b816548 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ActivityType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ActivityType.kt @@ -43,7 +43,7 @@ public sealed class ActivityType( unused: Nothing?, ) : ActivityType(code) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ActivityType.from()'.", replaceWith = ReplaceWith(expression = "ActivityType.from(code)", imports = arrayOf("dev.kord.common.entity.ActivityType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AllowedMentionType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AllowedMentionType.kt index e4e02acd38f6..371af082a1cf 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AllowedMentionType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AllowedMentionType.kt @@ -44,7 +44,7 @@ public sealed class AllowedMentionType( unused: Nothing?, ) : AllowedMentionType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'AllowedMentionType.from()'.", replaceWith = ReplaceWith(expression = "AllowedMentionType.from(value)", imports = arrayOf("dev.kord.common.entity.AllowedMentionType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandOptionType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandOptionType.kt index 60a8f3114ae1..fd3ed459436c 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandOptionType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandOptionType.kt @@ -45,7 +45,7 @@ public sealed class ApplicationCommandOptionType( unused: Nothing?, ) : ApplicationCommandOptionType(type) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ApplicationCommandOptionType.from()'.", replaceWith = ReplaceWith(expression = "ApplicationCommandOptionType.from(type)", imports = arrayOf("dev.kord.common.entity.ApplicationCommandOptionType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandPermissionType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandPermissionType.kt index c3f7d30aa641..c63936f216f0 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandPermissionType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandPermissionType.kt @@ -45,7 +45,7 @@ public sealed class ApplicationCommandPermissionType( unused: Nothing?, ) : ApplicationCommandPermissionType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ApplicationCommandPermissionType.from()'.", replaceWith = ReplaceWith(expression = "ApplicationCommandPermissionType.from(value)", imports = diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandType.kt index 381f674d87c5..ce6998eb6e75 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationCommandType.kt @@ -44,7 +44,7 @@ public sealed class ApplicationCommandType( unused: Nothing?, ) : ApplicationCommandType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ApplicationCommandType.from()'.", replaceWith = ReplaceWith(expression = "ApplicationCommandType.from(value)", imports = arrayOf("dev.kord.common.entity.ApplicationCommandType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationFlag.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationFlag.kt index 34a14eb65957..a917b96cb04f 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationFlag.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationFlag.kt @@ -9,7 +9,6 @@ import dev.kord.common.java import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.contracts.InvocationKind.EXACTLY_ONCE import kotlin.contracts.contract -import kotlin.enums.EnumEntries import kotlin.jvm.JvmField import kotlin.jvm.JvmName import kotlin.jvm.JvmStatic @@ -70,7 +69,7 @@ public sealed class ApplicationFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ApplicationFlag is no longer an enum class. Deprecated without a replacement.", ) public fun name(): String = this::class.simpleName!! @@ -80,7 +79,7 @@ public sealed class ApplicationFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ApplicationFlag is no longer an enum class. Deprecated without a replacement.", ) public fun ordinal(): Int = when (this) { @@ -101,7 +100,7 @@ public sealed class ApplicationFlag( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ApplicationFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "ApplicationFlag::class.java", imports = arrayOf("dev.kord.common.entity.ApplicationFlag")), @@ -295,7 +294,7 @@ public sealed class ApplicationFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ApplicationFlag is no longer an enum class. Deprecated without a replacement.", ) @@ -319,37 +318,13 @@ public sealed class ApplicationFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ApplicationFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "ApplicationFlag.entries.toTypedArray()", imports = arrayOf("dev.kord.common.entity.ApplicationFlag")), ) @JvmStatic public open fun values(): Array = entries.toTypedArray() - - /** - * @suppress - */ - @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - @Deprecated( - level = DeprecationLevel.HIDDEN, - message = "ApplicationFlag is no longer an enum class.", - replaceWith = ReplaceWith(expression = "ApplicationFlag.entries", imports = - arrayOf("dev.kord.common.entity.ApplicationFlag")), - ) - @JvmStatic - public open fun getEntries(): EnumEntries = EnumEntriesList - - @Suppress(names = arrayOf("SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", "UPPER_BOUND_VIOLATED")) - private object EnumEntriesList : EnumEntries, List by - entries { - override fun equals(other: Any?): Boolean = entries == other - - override fun hashCode(): Int = entries.hashCode() - - override fun toString(): String = entries.toString() - } } } @@ -442,7 +417,7 @@ public class ApplicationFlags internal constructor( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Renamed to 'values'.", replaceWith = ReplaceWith(expression = "this.values", imports = arrayOf()), ) @@ -508,7 +483,7 @@ public class ApplicationFlags internal constructor( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ApplicationFlags is no longer a data class.", replaceWith = ReplaceWith(expression = "this.code", imports = arrayOf()), ) @@ -519,7 +494,7 @@ public class ApplicationFlags internal constructor( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ApplicationFlags is no longer a data class. Deprecated without a replacement.", ) public fun copy(code: Int = this.code): ApplicationFlags = ApplicationFlags(code) @@ -565,7 +540,7 @@ public class ApplicationFlags internal constructor( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Renamed to 'build'", replaceWith = ReplaceWith(expression = "this.build()", imports = arrayOf()), ) diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationRoleConnectionMetadataType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationRoleConnectionMetadataType.kt index ae63dcacc6b6..9923e72a14e4 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationRoleConnectionMetadataType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ApplicationRoleConnectionMetadataType.kt @@ -50,7 +50,7 @@ public sealed class ApplicationRoleConnectionMetadataType( unused: Nothing?, ) : ApplicationRoleConnectionMetadataType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ApplicationRoleConnectionMetadataType.from()'.", replaceWith = ReplaceWith(expression = "ApplicationRoleConnectionMetadataType.from(value)", imports = diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AuditLogEvent.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AuditLogEvent.kt index f509907f1631..7e45d8f479a0 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AuditLogEvent.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AuditLogEvent.kt @@ -44,7 +44,7 @@ public sealed class AuditLogEvent( unused: Nothing?, ) : AuditLogEvent(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'AuditLogEvent.from()'.", replaceWith = ReplaceWith(expression = "AuditLogEvent.from(value)", imports = arrayOf("dev.kord.common.entity.AuditLogEvent")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationActionType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationActionType.kt index fdce78153512..ec4401798154 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationActionType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationActionType.kt @@ -47,7 +47,7 @@ public sealed class AutoModerationActionType( unused: Nothing?, ) : AutoModerationActionType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'AutoModerationActionType.from()'.", replaceWith = ReplaceWith(expression = "AutoModerationActionType.from(value)", imports = arrayOf("dev.kord.common.entity.AutoModerationActionType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleEventType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleEventType.kt index 5a8a730a86f8..76ddd2c278f2 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleEventType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleEventType.kt @@ -47,7 +47,7 @@ public sealed class AutoModerationRuleEventType( unused: Nothing?, ) : AutoModerationRuleEventType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'AutoModerationRuleEventType.from()'.", replaceWith = ReplaceWith(expression = "AutoModerationRuleEventType.from(value)", imports = arrayOf("dev.kord.common.entity.AutoModerationRuleEventType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleKeywordPresetType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleKeywordPresetType.kt index 8fdb39b305fa..392c2df7cb83 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleKeywordPresetType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleKeywordPresetType.kt @@ -47,7 +47,7 @@ public sealed class AutoModerationRuleKeywordPresetType( unused: Nothing?, ) : AutoModerationRuleKeywordPresetType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'AutoModerationRuleKeywordPresetType.from()'.", replaceWith = ReplaceWith(expression = "AutoModerationRuleKeywordPresetType.from(value)", imports = diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleTriggerType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleTriggerType.kt index b0e7b08c1dcf..0ce0d87f077c 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleTriggerType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/AutoModerationRuleTriggerType.kt @@ -47,7 +47,7 @@ public sealed class AutoModerationRuleTriggerType( unused: Nothing?, ) : AutoModerationRuleTriggerType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'AutoModerationRuleTriggerType.from()'.", replaceWith = ReplaceWith(expression = "AutoModerationRuleTriggerType.from(value)", imports = arrayOf("dev.kord.common.entity.AutoModerationRuleTriggerType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ButtonStyle.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ButtonStyle.kt index 15bad34a45f0..deabd26d6a89 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ButtonStyle.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ButtonStyle.kt @@ -45,7 +45,7 @@ public sealed class ButtonStyle( unused: Nothing?, ) : ButtonStyle(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ButtonStyle.from()'.", replaceWith = ReplaceWith(expression = "ButtonStyle.from(value)", imports = arrayOf("dev.kord.common.entity.ButtonStyle")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ChannelFlag.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ChannelFlag.kt index 5a4e384f629c..2cd5df1e4a89 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ChannelFlag.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ChannelFlag.kt @@ -9,7 +9,6 @@ import dev.kord.common.java import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.contracts.InvocationKind.EXACTLY_ONCE import kotlin.contracts.contract -import kotlin.enums.EnumEntries import kotlin.jvm.JvmField import kotlin.jvm.JvmName import kotlin.jvm.JvmStatic @@ -68,7 +67,7 @@ public sealed class ChannelFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ChannelFlag is no longer an enum class. Deprecated without a replacement.", ) public fun name(): String = this::class.simpleName!! @@ -78,7 +77,7 @@ public sealed class ChannelFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ChannelFlag is no longer an enum class. Deprecated without a replacement.", ) public fun ordinal(): Int = when (this) { @@ -92,7 +91,7 @@ public sealed class ChannelFlag( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ChannelFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "ChannelFlag::class.java", imports = arrayOf("dev.kord.common.entity.ChannelFlag")), @@ -171,7 +170,7 @@ public sealed class ChannelFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ChannelFlag is no longer an enum class. Deprecated without a replacement.", ) @JvmStatic @@ -187,36 +186,13 @@ public sealed class ChannelFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ChannelFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "ChannelFlag.entries.toTypedArray()", imports = arrayOf("dev.kord.common.entity.ChannelFlag")), ) @JvmStatic public open fun values(): Array = entries.toTypedArray() - - /** - * @suppress - */ - @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - @Deprecated( - level = DeprecationLevel.HIDDEN, - message = "ChannelFlag is no longer an enum class.", - replaceWith = ReplaceWith(expression = "ChannelFlag.entries", imports = - arrayOf("dev.kord.common.entity.ChannelFlag")), - ) - @JvmStatic - public open fun getEntries(): EnumEntries = EnumEntriesList - - @Suppress(names = arrayOf("SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", "UPPER_BOUND_VIOLATED")) - private object EnumEntriesList : EnumEntries, List by entries { - override fun equals(other: Any?): Boolean = entries == other - - override fun hashCode(): Int = entries.hashCode() - - override fun toString(): String = entries.toString() - } } } @@ -308,7 +284,7 @@ public class ChannelFlags internal constructor( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Renamed to 'values'.", replaceWith = ReplaceWith(expression = "this.values", imports = arrayOf()), ) @@ -372,7 +348,7 @@ public class ChannelFlags internal constructor( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ChannelFlags is no longer a data class.", replaceWith = ReplaceWith(expression = "this.code", imports = arrayOf()), ) @@ -383,7 +359,7 @@ public class ChannelFlags internal constructor( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "ChannelFlags is no longer a data class. Deprecated without a replacement.", ) public fun copy(code: Int = this.code): ChannelFlags = ChannelFlags(code) diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ChannelType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ChannelType.kt index 09251c1f71f5..100a50643958 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ChannelType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ChannelType.kt @@ -43,7 +43,7 @@ public sealed class ChannelType( unused: Nothing?, ) : ChannelType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ChannelType.from()'.", replaceWith = ReplaceWith(expression = "ChannelType.from(value)", imports = arrayOf("dev.kord.common.entity.ChannelType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ComponentType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ComponentType.kt index 5d51382e475e..ae4ade5a37f6 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ComponentType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ComponentType.kt @@ -44,7 +44,7 @@ public sealed class ComponentType( unused: Nothing?, ) : ComponentType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ComponentType.from()'.", replaceWith = ReplaceWith(expression = "ComponentType.from(value)", imports = arrayOf("dev.kord.common.entity.ComponentType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/DefaultMessageNotificationLevel.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/DefaultMessageNotificationLevel.kt index 8f77fad7db69..c291b59a0aac 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/DefaultMessageNotificationLevel.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/DefaultMessageNotificationLevel.kt @@ -45,7 +45,7 @@ public sealed class DefaultMessageNotificationLevel( unused: Nothing?, ) : DefaultMessageNotificationLevel(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'DefaultMessageNotificationLevel.from()'.", replaceWith = ReplaceWith(expression = "DefaultMessageNotificationLevel.from(value)", imports = diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/DiscordConnectionVisibility.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/DiscordConnectionVisibility.kt index 87ee811b28f0..0cfbae053da8 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/DiscordConnectionVisibility.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/DiscordConnectionVisibility.kt @@ -45,7 +45,7 @@ public sealed class DiscordConnectionVisibility( unused: Nothing?, ) : DiscordConnectionVisibility(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'DiscordConnectionVisibility.from()'.", replaceWith = ReplaceWith(expression = "DiscordConnectionVisibility.from(value)", imports = arrayOf("dev.kord.common.entity.DiscordConnectionVisibility")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EmbedType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EmbedType.kt index df2e2d017053..45ee311f3e0f 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EmbedType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/EmbedType.kt @@ -43,7 +43,7 @@ public sealed class EmbedType( unused: Nothing?, ) : EmbedType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'EmbedType.from()'.", replaceWith = ReplaceWith(expression = "EmbedType.from(value)", imports = arrayOf("dev.kord.common.entity.EmbedType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ExplicitContentFilter.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ExplicitContentFilter.kt index 58879effa7f5..1dbeb09a76c6 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ExplicitContentFilter.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ExplicitContentFilter.kt @@ -44,7 +44,7 @@ public sealed class ExplicitContentFilter( unused: Nothing?, ) : ExplicitContentFilter(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ExplicitContentFilter.from()'.", replaceWith = ReplaceWith(expression = "ExplicitContentFilter.from(value)", imports = arrayOf("dev.kord.common.entity.ExplicitContentFilter")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ForumLayoutType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ForumLayoutType.kt index 309d8987afc9..13cc638b7e93 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ForumLayoutType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ForumLayoutType.kt @@ -44,7 +44,7 @@ public sealed class ForumLayoutType( unused: Nothing?, ) : ForumLayoutType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ForumLayoutType.from()'.", replaceWith = ReplaceWith(expression = "ForumLayoutType.from(value)", imports = arrayOf("dev.kord.common.entity.ForumLayoutType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildFeature.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildFeature.kt index a170b01f0140..717ee3e35589 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildFeature.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildFeature.kt @@ -44,7 +44,7 @@ public sealed class GuildFeature( unused: Nothing?, ) : GuildFeature(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'GuildFeature.from()'.", replaceWith = ReplaceWith(expression = "GuildFeature.from(value)", imports = arrayOf("dev.kord.common.entity.GuildFeature")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildScheduledEventPrivacyLevel.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildScheduledEventPrivacyLevel.kt index 829877e11185..8457099c3527 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildScheduledEventPrivacyLevel.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildScheduledEventPrivacyLevel.kt @@ -45,7 +45,7 @@ public sealed class GuildScheduledEventPrivacyLevel( unused: Nothing?, ) : GuildScheduledEventPrivacyLevel(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'GuildScheduledEventPrivacyLevel.from()'.", replaceWith = ReplaceWith(expression = "GuildScheduledEventPrivacyLevel.from(value)", imports = diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildScheduledEventStatus.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildScheduledEventStatus.kt index d4ba1e04cf2a..cc927ee36493 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildScheduledEventStatus.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/GuildScheduledEventStatus.kt @@ -45,7 +45,7 @@ public sealed class GuildScheduledEventStatus( unused: Nothing?, ) : GuildScheduledEventStatus(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'GuildScheduledEventStatus.from()'.", replaceWith = ReplaceWith(expression = "GuildScheduledEventStatus.from(value)", imports = arrayOf("dev.kord.common.entity.GuildScheduledEventStatus")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/IntegrationExpireBehavior.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/IntegrationExpireBehavior.kt index 1200abb581fb..f89ef8a68f99 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/IntegrationExpireBehavior.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/IntegrationExpireBehavior.kt @@ -45,7 +45,7 @@ public sealed class IntegrationExpireBehavior( unused: Nothing?, ) : IntegrationExpireBehavior(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'IntegrationExpireBehavior.from()'.", replaceWith = ReplaceWith(expression = "IntegrationExpireBehavior.from(value)", imports = arrayOf("dev.kord.common.entity.IntegrationExpireBehavior")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionResponseType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionResponseType.kt index 5f55e9302d5b..ca814eb3259b 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionResponseType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionResponseType.kt @@ -45,7 +45,7 @@ public sealed class InteractionResponseType( unused: Nothing?, ) : InteractionResponseType(type) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'InteractionResponseType.from()'.", replaceWith = ReplaceWith(expression = "InteractionResponseType.from(type)", imports = arrayOf("dev.kord.common.entity.InteractionResponseType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionType.kt index e74129248d1f..82bbcf0ca72b 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InteractionType.kt @@ -44,7 +44,7 @@ public sealed class InteractionType( unused: Nothing?, ) : InteractionType(type) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'InteractionType.from()'.", replaceWith = ReplaceWith(expression = "InteractionType.from(type)", imports = arrayOf("dev.kord.common.entity.InteractionType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InviteTargetType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InviteTargetType.kt index 2bf9eb6387f0..46465cfe03bf 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InviteTargetType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/InviteTargetType.kt @@ -44,7 +44,7 @@ public sealed class InviteTargetType( unused: Nothing?, ) : InviteTargetType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'InviteTargetType.from()'.", replaceWith = ReplaceWith(expression = "InviteTargetType.from(value)", imports = arrayOf("dev.kord.common.entity.InviteTargetType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MFALevel.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MFALevel.kt index af7fade1e2f1..881835af28ad 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MFALevel.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MFALevel.kt @@ -43,7 +43,7 @@ public sealed class MFALevel( unused: Nothing?, ) : MFALevel(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'MFALevel.from()'.", replaceWith = ReplaceWith(expression = "MFALevel.from(value)", imports = arrayOf("dev.kord.common.entity.MFALevel")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageActivityType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageActivityType.kt index 2b1084c07930..9e5f570c3b03 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageActivityType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageActivityType.kt @@ -44,7 +44,7 @@ public sealed class MessageActivityType( unused: Nothing?, ) : MessageActivityType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'MessageActivityType.from()'.", replaceWith = ReplaceWith(expression = "MessageActivityType.from(value)", imports = arrayOf("dev.kord.common.entity.MessageActivityType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageFlag.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageFlag.kt index 81fcc40b4c80..f75c9a539cc7 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageFlag.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageFlag.kt @@ -9,7 +9,6 @@ import dev.kord.common.java import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.contracts.InvocationKind.EXACTLY_ONCE import kotlin.contracts.contract -import kotlin.enums.EnumEntries import kotlin.jvm.JvmField import kotlin.jvm.JvmName import kotlin.jvm.JvmStatic @@ -68,7 +67,7 @@ public sealed class MessageFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "MessageFlag is no longer an enum class. Deprecated without a replacement.", ) public fun name(): String = this::class.simpleName!! @@ -78,7 +77,7 @@ public sealed class MessageFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "MessageFlag is no longer an enum class. Deprecated without a replacement.", ) public fun ordinal(): Int = when (this) { @@ -100,7 +99,7 @@ public sealed class MessageFlag( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "MessageFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "MessageFlag::class.java", imports = arrayOf("dev.kord.common.entity.MessageFlag")), @@ -295,7 +294,7 @@ public sealed class MessageFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "MessageFlag is no longer an enum class. Deprecated without a replacement.", ) @JvmStatic @@ -319,36 +318,13 @@ public sealed class MessageFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "MessageFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "MessageFlag.entries.toTypedArray()", imports = arrayOf("dev.kord.common.entity.MessageFlag")), ) @JvmStatic public open fun values(): Array = entries.toTypedArray() - - /** - * @suppress - */ - @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - @Deprecated( - level = DeprecationLevel.HIDDEN, - message = "MessageFlag is no longer an enum class.", - replaceWith = ReplaceWith(expression = "MessageFlag.entries", imports = - arrayOf("dev.kord.common.entity.MessageFlag")), - ) - @JvmStatic - public open fun getEntries(): EnumEntries = EnumEntriesList - - @Suppress(names = arrayOf("SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", "UPPER_BOUND_VIOLATED")) - private object EnumEntriesList : EnumEntries, List by entries { - override fun equals(other: Any?): Boolean = entries == other - - override fun hashCode(): Int = entries.hashCode() - - override fun toString(): String = entries.toString() - } } } @@ -440,7 +416,7 @@ public class MessageFlags internal constructor( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Renamed to 'values'.", replaceWith = ReplaceWith(expression = "this.values", imports = arrayOf()), ) @@ -504,7 +480,7 @@ public class MessageFlags internal constructor( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "MessageFlags is no longer a data class.", replaceWith = ReplaceWith(expression = "this.code", imports = arrayOf()), ) @@ -515,7 +491,7 @@ public class MessageFlags internal constructor( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "MessageFlags is no longer a data class. Deprecated without a replacement.", ) public fun copy(code: Int = this.code): MessageFlags = MessageFlags(code) @@ -561,7 +537,7 @@ public class MessageFlags internal constructor( * @suppress */ @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Renamed to 'build'", replaceWith = ReplaceWith(expression = "this.build()", imports = arrayOf()), ) diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageStickerType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageStickerType.kt index 2d2202873042..3c4b3acd00c4 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageStickerType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageStickerType.kt @@ -44,7 +44,7 @@ public sealed class MessageStickerType( unused: Nothing?, ) : MessageStickerType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'MessageStickerType.from()'.", replaceWith = ReplaceWith(expression = "MessageStickerType.from(value)", imports = arrayOf("dev.kord.common.entity.MessageStickerType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageType.kt index a4006e5be3bf..d85bb78b9285 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/MessageType.kt @@ -43,7 +43,7 @@ public sealed class MessageType( unused: Nothing?, ) : MessageType(code) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'MessageType.from()'.", replaceWith = ReplaceWith(expression = "MessageType.from(code)", imports = arrayOf("dev.kord.common.entity.MessageType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/NsfwLevel.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/NsfwLevel.kt index 3106b681aca2..0ad123a3db5c 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/NsfwLevel.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/NsfwLevel.kt @@ -43,7 +43,7 @@ public sealed class NsfwLevel( unused: Nothing?, ) : NsfwLevel(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'NsfwLevel.from()'.", replaceWith = ReplaceWith(expression = "NsfwLevel.from(value)", imports = arrayOf("dev.kord.common.entity.NsfwLevel")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/OnboardingPromptType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/OnboardingPromptType.kt index ed9e03649dc0..164742e38c3e 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/OnboardingPromptType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/OnboardingPromptType.kt @@ -44,7 +44,7 @@ public sealed class OnboardingPromptType( unused: Nothing?, ) : OnboardingPromptType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'OnboardingPromptType.from()'.", replaceWith = ReplaceWith(expression = "OnboardingPromptType.from(value)", imports = arrayOf("dev.kord.common.entity.OnboardingPromptType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/OverwriteType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/OverwriteType.kt index a6ac283d83f7..3fe8c4d57c15 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/OverwriteType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/OverwriteType.kt @@ -44,7 +44,7 @@ public sealed class OverwriteType( unused: Nothing?, ) : OverwriteType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'OverwriteType.from()'.", replaceWith = ReplaceWith(expression = "OverwriteType.from(value)", imports = arrayOf("dev.kord.common.entity.OverwriteType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PremiumTier.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PremiumTier.kt index 8c33a7f8588a..38aeec3d09f6 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PremiumTier.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PremiumTier.kt @@ -43,7 +43,7 @@ public sealed class PremiumTier( unused: Nothing?, ) : PremiumTier(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'PremiumTier.from()'.", replaceWith = ReplaceWith(expression = "PremiumTier.from(value)", imports = arrayOf("dev.kord.common.entity.PremiumTier")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PresenceStatus.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PresenceStatus.kt index dafd67c6f891..884898e6e07d 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PresenceStatus.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/PresenceStatus.kt @@ -44,7 +44,7 @@ public sealed class PresenceStatus( unused: Nothing?, ) : PresenceStatus(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'PresenceStatus.from()'.", replaceWith = ReplaceWith(expression = "PresenceStatus.from(value)", imports = arrayOf("dev.kord.common.entity.PresenceStatus")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ScheduledEntityType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ScheduledEntityType.kt index 16598b6dfb31..ffb056112334 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ScheduledEntityType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/ScheduledEntityType.kt @@ -44,7 +44,7 @@ public sealed class ScheduledEntityType( unused: Nothing?, ) : ScheduledEntityType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'ScheduledEntityType.from()'.", replaceWith = ReplaceWith(expression = "ScheduledEntityType.from(value)", imports = arrayOf("dev.kord.common.entity.ScheduledEntityType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/SortOrderType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/SortOrderType.kt index 42b83e7b2208..74b1a6f76808 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/SortOrderType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/SortOrderType.kt @@ -44,7 +44,7 @@ public sealed class SortOrderType( unused: Nothing?, ) : SortOrderType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'SortOrderType.from()'.", replaceWith = ReplaceWith(expression = "SortOrderType.from(value)", imports = arrayOf("dev.kord.common.entity.SortOrderType")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/StageInstancePrivacyLevel.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/StageInstancePrivacyLevel.kt index c87a1efa31ac..7f52e0fc7cb7 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/StageInstancePrivacyLevel.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/StageInstancePrivacyLevel.kt @@ -45,7 +45,7 @@ public sealed class StageInstancePrivacyLevel( unused: Nothing?, ) : StageInstancePrivacyLevel(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'StageInstancePrivacyLevel.from()'.", replaceWith = ReplaceWith(expression = "StageInstancePrivacyLevel.from(value)", imports = arrayOf("dev.kord.common.entity.StageInstancePrivacyLevel")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/TeamMembershipState.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/TeamMembershipState.kt index 1d60497e97fc..236f161c561a 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/TeamMembershipState.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/TeamMembershipState.kt @@ -44,7 +44,7 @@ public sealed class TeamMembershipState( unused: Nothing?, ) : TeamMembershipState(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'TeamMembershipState.from()'.", replaceWith = ReplaceWith(expression = "TeamMembershipState.from(value)", imports = arrayOf("dev.kord.common.entity.TeamMembershipState")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/TextInputStyle.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/TextInputStyle.kt index 103242190a2a..1080721875a2 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/TextInputStyle.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/TextInputStyle.kt @@ -46,7 +46,7 @@ public sealed class TextInputStyle( unused: Nothing?, ) : TextInputStyle(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'TextInputStyle.from()'.", replaceWith = ReplaceWith(expression = "TextInputStyle.from(value)", imports = arrayOf("dev.kord.common.entity.TextInputStyle")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/UserPremium.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/UserPremium.kt index b13e780723d5..b1522902a317 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/UserPremium.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/UserPremium.kt @@ -45,7 +45,7 @@ public sealed class UserPremium( unused: Nothing?, ) : UserPremium(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'UserPremium.from()'.", replaceWith = ReplaceWith(expression = "UserPremium.from(value)", imports = arrayOf("dev.kord.common.entity.UserPremium")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/VerificationLevel.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/VerificationLevel.kt index 5bfe329e1c79..b53fec62b30a 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/VerificationLevel.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/VerificationLevel.kt @@ -44,7 +44,7 @@ public sealed class VerificationLevel( unused: Nothing?, ) : VerificationLevel(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'VerificationLevel.from()'.", replaceWith = ReplaceWith(expression = "VerificationLevel.from(value)", imports = arrayOf("dev.kord.common.entity.VerificationLevel")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/VideoQualityMode.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/VideoQualityMode.kt index ad707e5de565..f293c39ff57c 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/VideoQualityMode.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/VideoQualityMode.kt @@ -44,7 +44,7 @@ public sealed class VideoQualityMode( unused: Nothing?, ) : VideoQualityMode(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'VideoQualityMode.from()'.", replaceWith = ReplaceWith(expression = "VideoQualityMode.from(value)", imports = arrayOf("dev.kord.common.entity.VideoQualityMode")), diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/WebhookType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/WebhookType.kt index 1a0cfd8a2ad5..32b1165d33dd 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/WebhookType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/WebhookType.kt @@ -43,7 +43,7 @@ public sealed class WebhookType( unused: Nothing?, ) : WebhookType(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'WebhookType.from()'.", replaceWith = ReplaceWith(expression = "WebhookType.from(value)", imports = arrayOf("dev.kord.common.entity.WebhookType")), diff --git a/common/src/commonMain/kotlin/entity/ActivityFlag.kt b/common/src/commonMain/kotlin/entity/ActivityFlag.kt index 9f5a1fff4cbf..32c2e9f54005 100644 --- a/common/src/commonMain/kotlin/entity/ActivityFlag.kt +++ b/common/src/commonMain/kotlin/entity/ActivityFlag.kt @@ -8,7 +8,6 @@ import dev.kord.common.java import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.contracts.InvocationKind.EXACTLY_ONCE import kotlin.contracts.contract -import kotlin.enums.EnumEntries import kotlin.jvm.JvmField import kotlin.jvm.JvmName import kotlin.jvm.JvmStatic @@ -68,7 +67,7 @@ public sealed class ActivityFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "ActivityFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "ActivityFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun name(): String = this::class.simpleName!! /** @@ -76,7 +75,7 @@ public sealed class ActivityFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "ActivityFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "ActivityFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun ordinal(): Int = when (this) { Instance -> 0 Join -> 1 @@ -97,7 +96,7 @@ public sealed class ActivityFlag( message = "ActivityFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "ActivityFlag::class.java", imports = arrayOf("dev.kord.common.entity.ActivityFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun getDeclaringClass(): Class = ActivityFlag::class.java @@ -213,7 +212,7 @@ public sealed class ActivityFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "ActivityFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "ActivityFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) @JvmStatic public open fun valueOf(name: String): ActivityFlag = when (name) { "Instance" -> Instance @@ -236,33 +235,10 @@ public sealed class ActivityFlag( message = "ActivityFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "ActivityFlag.entries.toTypedArray()", imports = arrayOf("dev.kord.common.entity.ActivityFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmStatic public open fun values(): Array = entries.toTypedArray() - - /** - * @suppress - */ - @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - @Deprecated( - level = DeprecationLevel.HIDDEN, - message = "ActivityFlag is no longer an enum class.", - replaceWith = ReplaceWith(expression = "ActivityFlag.entries", imports = - arrayOf("dev.kord.common.entity.ActivityFlag")), - ) - @JvmStatic - public open fun getEntries(): EnumEntries = EnumEntriesList - - @Suppress(names = arrayOf("SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", "UPPER_BOUND_VIOLATED")) - private object EnumEntriesList : EnumEntries, List by entries { - override fun equals(other: Any?): Boolean = entries == other - - override fun hashCode(): Int = entries.hashCode() - - override fun toString(): String = entries.toString() - } } } @@ -344,7 +320,7 @@ public class ActivityFlags internal constructor( "Don't construct an instance of 'ActivityFlags' from a raw value. Use the factory functions described in the " + "documentation instead.", ReplaceWith("ActivityFlags.Builder(value).build()", "dev.kord.common.entity.ActivityFlags"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public constructor(value: Int) : this(value, null) @@ -368,7 +344,7 @@ public class ActivityFlags internal constructor( @Deprecated( message = "Renamed to 'values'.", replaceWith = ReplaceWith(expression = "this.values", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public val flags: Set get() = values diff --git a/common/src/commonMain/kotlin/entity/DiscordShard.kt b/common/src/commonMain/kotlin/entity/DiscordShard.kt index 54317f8125b8..a83ecd5746a3 100644 --- a/common/src/commonMain/kotlin/entity/DiscordShard.kt +++ b/common/src/commonMain/kotlin/entity/DiscordShard.kt @@ -37,7 +37,7 @@ public data class DiscordShard(val index: Int, val count: Int) { @Deprecated( "Renamed to 'NewCompanion', which no longer implements 'KSerializer'.", ReplaceWith("DiscordShard.serializer()", imports = ["dev.kord.common.entity.DiscordShard"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmField public val Companion: Companion = Companion() @@ -46,7 +46,7 @@ public data class DiscordShard(val index: Int, val count: Int) { @Deprecated( "Renamed to 'NewCompanion', which no longer implements 'KSerializer'.", ReplaceWith("DiscordShard.serializer()", imports = ["dev.kord.common.entity.DiscordShard"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class Companion internal constructor() : KSerializer by Serializer { public fun serializer(): KSerializer = this diff --git a/common/src/commonMain/kotlin/entity/DiscordUser.kt b/common/src/commonMain/kotlin/entity/DiscordUser.kt index 2cd6295b0570..b285e2683bdb 100644 --- a/common/src/commonMain/kotlin/entity/DiscordUser.kt +++ b/common/src/commonMain/kotlin/entity/DiscordUser.kt @@ -159,7 +159,7 @@ public data class DiscordOptionallyMemberUser( @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "DEPRECATION_ERROR") @Deprecated( "'UserFlags.UserFlagsBuilder' is deprecated, use 'UserFlags.Builder' instead.", - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, ) @kotlin.internal.LowPriorityInOverloadResolution public inline fun UserFlags(builder: UserFlags.UserFlagsBuilder.() -> Unit): UserFlags { diff --git a/common/src/commonMain/kotlin/entity/GuildMemberFlag.kt b/common/src/commonMain/kotlin/entity/GuildMemberFlag.kt index 30b49beb7b94..c544d2f57cc0 100644 --- a/common/src/commonMain/kotlin/entity/GuildMemberFlag.kt +++ b/common/src/commonMain/kotlin/entity/GuildMemberFlag.kt @@ -8,7 +8,6 @@ import dev.kord.common.java import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.contracts.InvocationKind.EXACTLY_ONCE import kotlin.contracts.contract -import kotlin.enums.EnumEntries import kotlin.jvm.JvmField import kotlin.jvm.JvmName import kotlin.jvm.JvmStatic @@ -68,7 +67,7 @@ public sealed class GuildMemberFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "GuildMemberFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "GuildMemberFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun name(): String = name private val name get() = this::class.simpleName!! @@ -77,7 +76,7 @@ public sealed class GuildMemberFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "GuildMemberFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "GuildMemberFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun ordinal(): Int = when (this) { DidRejoin -> 0 CompletedOnboarding -> 1 @@ -93,7 +92,7 @@ public sealed class GuildMemberFlag( message = "GuildMemberFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "GuildMemberFlag::class.java", imports = arrayOf("dev.kord.common.entity.GuildMemberFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun getDeclaringClass(): Class = GuildMemberFlag::class.java @@ -144,7 +143,7 @@ public sealed class GuildMemberFlag( @Deprecated( "'GuildMemberFlag' is no longer serializable, serialize 'GuildMemberFlags' instead. Deprecated without a " + "replacement.", - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, ) public fun serializer(): KSerializer = Serializer @@ -203,7 +202,7 @@ public sealed class GuildMemberFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "GuildMemberFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "GuildMemberFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) @JvmStatic public open fun valueOf(name: String): GuildMemberFlag = valueOf0(name) private fun valueOf0(name: String) = when (name) { @@ -222,34 +221,10 @@ public sealed class GuildMemberFlag( message = "GuildMemberFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "GuildMemberFlag.entries.toTypedArray()", imports = arrayOf("dev.kord.common.entity.GuildMemberFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmStatic public open fun values(): Array = entries.toTypedArray() - - /** - * @suppress - */ - @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - @Deprecated( - level = DeprecationLevel.HIDDEN, - message = "GuildMemberFlag is no longer an enum class.", - replaceWith = ReplaceWith(expression = "GuildMemberFlag.entries", imports = - arrayOf("dev.kord.common.entity.GuildMemberFlag")), - ) - @JvmStatic - public open fun getEntries(): EnumEntries = EnumEntriesList - - @Suppress(names = arrayOf("SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", "UPPER_BOUND_VIOLATED")) - private object EnumEntriesList : EnumEntries, List by - entries { - override fun equals(other: Any?): Boolean = entries == other - - override fun hashCode(): Int = entries.hashCode() - - override fun toString(): String = entries.toString() - } } } @@ -333,7 +308,7 @@ public class GuildMemberFlags internal constructor( "Don't construct an instance of 'GuildMemberFlags' from a raw code. Use the factory functions described in " + "the documentation instead.", ReplaceWith("GuildMemberFlags.Builder(code).build()", "dev.kord.common.entity.GuildMemberFlags"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public constructor(code: Int) : this(code, null) @@ -412,7 +387,7 @@ public class GuildMemberFlags internal constructor( @Deprecated( message = "GuildMemberFlags is no longer a data class.", replaceWith = ReplaceWith(expression = "this.code", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public operator fun component1(): Int = code @@ -421,7 +396,7 @@ public class GuildMemberFlags internal constructor( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "GuildMemberFlags is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "GuildMemberFlags is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun copy(code: Int = this.code): GuildMemberFlags = GuildMemberFlags(code, null) public class Builder( diff --git a/common/src/commonMain/kotlin/entity/Interactions.kt b/common/src/commonMain/kotlin/entity/Interactions.kt index cc186b30b1c2..c537524d5728 100644 --- a/common/src/commonMain/kotlin/entity/Interactions.kt +++ b/common/src/commonMain/kotlin/entity/Interactions.kt @@ -155,7 +155,7 @@ public data class ApplicationCommandOption( * e.g: `Choice<@Serializable(NotSerializable::class) Any?>` * The serialization is handled by [Choice] serializer instead where we don't care about the generic type. */ -@Deprecated("This is no longer used, deprecated without a replacement.", level = DeprecationLevel.ERROR) +@Deprecated("This is no longer used, deprecated without a replacement.", level = DeprecationLevel.HIDDEN) @KordExperimental public object NotSerializable : KSerializer { override fun deserialize(decoder: Decoder): Nothing = error("This operation is not supported.") @@ -244,7 +244,7 @@ public sealed class Choice { public companion object { @Suppress("UNUSED_PARAMETER") - @Deprecated("Choice is no longer generic", ReplaceWith("this.serializer()"), DeprecationLevel.ERROR) + @Deprecated("Choice is no longer generic", ReplaceWith("this.serializer()"), DeprecationLevel.HIDDEN) public fun serializer(typeSerial0: KSerializer): KSerializer = serializer() } } @@ -718,7 +718,7 @@ public data class DiscordAutoComplete( @Deprecated( "DiscordAutoComplete is no longer generic", ReplaceWith("this.serializer()"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun serializer(typeSerial0: KSerializer): KSerializer = serializer() } diff --git a/common/src/commonMain/kotlin/entity/Permission.kt b/common/src/commonMain/kotlin/entity/Permission.kt index ce72a2146deb..856903ee0900 100644 --- a/common/src/commonMain/kotlin/entity/Permission.kt +++ b/common/src/commonMain/kotlin/entity/Permission.kt @@ -108,14 +108,14 @@ public sealed class Permission { @Deprecated( "Construct an unknown 'Permission' with 'Permission.fromShift()' instead.", ReplaceWith("Permission.fromShift(TODO())", imports = ["dev.kord.common.entity.Permission"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public constructor(code: DiscordBitSet) : super(code) @Deprecated( "Construct an unknown 'Permission' with 'Permission.fromShift()' instead.", ReplaceWith("Permission.fromShift(TODO())", imports = ["dev.kord.common.entity.Permission"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public constructor(vararg values: Long) : super(DiscordBitSet(values)) } @@ -370,7 +370,7 @@ public sealed class Permission { @Deprecated( "'Permission.All' is not a proper 'Permission' instance. Replace with 'Permissions.ALL'.", ReplaceWith("Permissions.ALL", imports = ["dev.kord.common.entity.Permissions", "dev.kord.common.entity.ALL"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public object All : Permission(Permissions.ALL.code) @@ -435,7 +435,7 @@ public sealed class Permission { @Deprecated( "Renamed to 'entries'.", ReplaceWith("Permission.entries", imports = ["dev.kord.common.entity.Permission"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public val values: Set get() = entries.toSet() @@ -574,7 +574,7 @@ public class Permissions internal constructor( "Don't construct an instance of 'Permissions' from a raw code. Use the factory functions described in the " + "documentation instead.", ReplaceWith("Permissions.Builder(code).build()", "dev.kord.common.entity.Permissions"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public constructor(code: DiscordBitSet) : this(code, null) @@ -633,7 +633,7 @@ public class Permissions internal constructor( @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "DEPRECATION_ERROR") @Deprecated( "'Permissions.PermissionsBuilder' is deprecated, use 'Permissions.Builder' instead.", - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, ) @kotlin.internal.LowPriorityInOverloadResolution public inline fun copy(block: PermissionsBuilder.() -> Unit): Permissions { @@ -654,7 +654,7 @@ public class Permissions internal constructor( @Deprecated( message = "Permissions is no longer a data class.", replaceWith = ReplaceWith(expression = "this.code", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public operator fun component1(): DiscordBitSet = code @@ -663,13 +663,13 @@ public class Permissions internal constructor( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "Permissions is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "Permissions is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun copy(code: DiscordBitSet = this.code): Permissions = Permissions(code, null) @Deprecated( "Renamed to 'Builder'.", ReplaceWith("Permissions.Builder", imports = ["dev.kord.common.entity.Permissions"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class PermissionsBuilder(code: DiscordBitSet) { private val delegate = Builder(code) @@ -739,7 +739,7 @@ public class Permissions internal constructor( @Deprecated( "Renamed to 'NewCompanion', which no longer implements 'KSerializer'.", ReplaceWith("Permissions.serializer()", imports = ["dev.kord.common.entity.Permissions"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmField public val Companion: Companion = Companion() @@ -748,7 +748,7 @@ public class Permissions internal constructor( @Deprecated( "Renamed to 'NewCompanion', which no longer implements 'KSerializer'.", ReplaceWith("Permissions.serializer()", imports = ["dev.kord.common.entity.Permissions"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class Companion internal constructor() : KSerializer by Serializer { public fun serializer(): KSerializer = this @@ -767,7 +767,7 @@ public inline fun Permissions(builder: Permissions.Builder.() -> Unit = {}): Per @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "DEPRECATION_ERROR") @Deprecated( "'Permissions.PermissionsBuilder' is deprecated, use 'Permissions.Builder' instead.", - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, ) @kotlin.internal.LowPriorityInOverloadResolution public inline fun Permissions(block: Permissions.PermissionsBuilder.() -> Unit = {}): Permissions { @@ -821,6 +821,6 @@ public fun PermissionWithIterable(flags: Iterable): Permissions = P "Permissions.Builder(DiscordBitSet(value)).build()", imports = ["dev.kord.common.entity.Permissions", "dev.kord.common.DiscordBitSet"], ), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun Permissions(value: String): Permissions = Permissions(DiscordBitSet(value), null) diff --git a/common/src/commonMain/kotlin/entity/SystemChannelFlag.kt b/common/src/commonMain/kotlin/entity/SystemChannelFlag.kt index ce04932b9613..cb97eb7c2b6b 100644 --- a/common/src/commonMain/kotlin/entity/SystemChannelFlag.kt +++ b/common/src/commonMain/kotlin/entity/SystemChannelFlag.kt @@ -8,7 +8,6 @@ import dev.kord.common.java import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.contracts.InvocationKind.EXACTLY_ONCE import kotlin.contracts.contract -import kotlin.enums.EnumEntries import kotlin.jvm.JvmField import kotlin.jvm.JvmName import kotlin.jvm.JvmStatic @@ -69,7 +68,7 @@ public sealed class SystemChannelFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "SystemChannelFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "SystemChannelFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun name(): String = this::class.simpleName!! /** @@ -77,7 +76,7 @@ public sealed class SystemChannelFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "SystemChannelFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "SystemChannelFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun ordinal(): Int = when (this) { SuppressJoinNotifications -> 0 SuppressPremiumSubscriptions -> 1 @@ -95,7 +94,7 @@ public sealed class SystemChannelFlag( message = "SystemChannelFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "SystemChannelFlag::class.java", imports = arrayOf("dev.kord.common.entity.SystemChannelFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun getDeclaringClass(): Class = SystemChannelFlag::class.java @@ -221,7 +220,7 @@ public sealed class SystemChannelFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "SystemChannelFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "SystemChannelFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) @JvmStatic public open fun valueOf(name: String): SystemChannelFlag = when (name) { "SuppressJoinNotifications" -> SuppressJoinNotifications @@ -241,34 +240,10 @@ public sealed class SystemChannelFlag( message = "SystemChannelFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "SystemChannelFlag.entries.toTypedArray()", imports = arrayOf("dev.kord.common.entity.SystemChannelFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmStatic public open fun values(): Array = entries.toTypedArray() - - /** - * @suppress - */ - @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - @Deprecated( - level = DeprecationLevel.HIDDEN, - message = "SystemChannelFlag is no longer an enum class.", - replaceWith = ReplaceWith(expression = "SystemChannelFlag.entries", imports = - arrayOf("dev.kord.common.entity.SystemChannelFlag")), - ) - @JvmStatic - public open fun getEntries(): EnumEntries = EnumEntriesList - - @Suppress(names = arrayOf("SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", "UPPER_BOUND_VIOLATED")) - private object EnumEntriesList : EnumEntries, List by - entries { - override fun equals(other: Any?): Boolean = entries == other - - override fun hashCode(): Int = entries.hashCode() - - override fun toString(): String = entries.toString() - } } } @@ -352,7 +327,7 @@ public class SystemChannelFlags internal constructor( "Don't construct an instance of 'SystemChannelFlags' from a raw code. Use the factory functions described in " + "the documentation instead.", ReplaceWith("SystemChannelFlags.Builder(code).build()", "dev.kord.common.entity.SystemChannelFlags"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public constructor(code: Int) : this(code, null) @@ -431,7 +406,7 @@ public class SystemChannelFlags internal constructor( @Deprecated( message = "SystemChannelFlags is no longer a data class.", replaceWith = ReplaceWith(expression = "this.code", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public operator fun component1(): Int = code @@ -440,7 +415,7 @@ public class SystemChannelFlags internal constructor( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "SystemChannelFlags is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "SystemChannelFlags is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun copy(code: Int = this.code): SystemChannelFlags = SystemChannelFlags(code, null) public class Builder( @@ -501,7 +476,7 @@ public class SystemChannelFlags internal constructor( @Deprecated( "Renamed to 'NewCompanion', which no longer implements 'KSerializer'.", ReplaceWith("SystemChannelFlags.serializer()", imports = ["dev.kord.common.entity.SystemChannelFlags"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmField public val Companion: Companion = Companion() @@ -510,7 +485,7 @@ public class SystemChannelFlags internal constructor( @Deprecated( "Renamed to 'NewCompanion', which no longer implements 'KSerializer'.", ReplaceWith("SystemChannelFlags.serializer()", imports = ["dev.kord.common.entity.SystemChannelFlags"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class Companion internal constructor() : KSerializer by Serializer { public fun serializer(): KSerializer = this diff --git a/common/src/commonMain/kotlin/entity/UserFlag.kt b/common/src/commonMain/kotlin/entity/UserFlag.kt index 5504ae40094b..3f8de6b72003 100644 --- a/common/src/commonMain/kotlin/entity/UserFlag.kt +++ b/common/src/commonMain/kotlin/entity/UserFlag.kt @@ -8,7 +8,6 @@ import dev.kord.common.java import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.contracts.InvocationKind.EXACTLY_ONCE import kotlin.contracts.contract -import kotlin.enums.EnumEntries import kotlin.jvm.JvmField import kotlin.jvm.JvmName import kotlin.jvm.JvmStatic @@ -63,14 +62,14 @@ public sealed class UserFlag( * @suppress */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) - @Deprecated(message = "UserFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + @Deprecated(message = "UserFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun name(): String = this::class.simpleName!! /** * @suppress */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith", "DEPRECATION_ERROR")) - @Deprecated(message = "UserFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + @Deprecated(message = "UserFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun ordinal(): Int = when (this) { DiscordEmployee -> 0 DiscordPartner -> 1 @@ -98,7 +97,7 @@ public sealed class UserFlag( message = "UserFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "UserFlag::class.java", imports = arrayOf("dev.kord.common.entity.UserFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun getDeclaringClass(): Class = UserFlag::class.java @@ -159,7 +158,7 @@ public sealed class UserFlag( @Deprecated( "'UserFlag.System' is no longer documented. You can still use it with 'UserFlag.fromShift(12)'.", ReplaceWith("UserFlag.fromShift(12)", imports = ["dev.kord.common.entity.UserFlag"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public object System : UserFlag(12) @@ -362,7 +361,7 @@ public sealed class UserFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "UserFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "UserFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) @JvmStatic public open fun valueOf(name: String): UserFlag = when (name) { "DiscordEmployee" -> DiscordEmployee @@ -392,33 +391,10 @@ public sealed class UserFlag( message = "UserFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "UserFlag.entries.toTypedArray()", imports = arrayOf("dev.kord.common.entity.UserFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmStatic public open fun values(): Array = entries.toTypedArray() - - /** - * @suppress - */ - @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - @Deprecated( - level = DeprecationLevel.HIDDEN, - message = "UserFlag is no longer an enum class.", - replaceWith = ReplaceWith(expression = "UserFlag.entries", imports = - arrayOf("dev.kord.common.entity.UserFlag")), - ) - @JvmStatic - public open fun getEntries(): EnumEntries = EnumEntriesList - - @Suppress(names = arrayOf("SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", "UPPER_BOUND_VIOLATED")) - private object EnumEntriesList : EnumEntries, List by entries { - override fun equals(other: Any?): Boolean = entries == other - - override fun hashCode(): Int = entries.hashCode() - - override fun toString(): String = entries.toString() - } } } @@ -498,7 +474,7 @@ public class UserFlags internal constructor( "Don't construct an instance of 'UserFlags' from a raw code. Use the factory functions described in the " + "documentation instead.", ReplaceWith("UserFlags.Builder(code).build()", "dev.kord.common.entity.UserFlags"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public constructor(code: Int) : this(code, null) /** @@ -521,7 +497,7 @@ public class UserFlags internal constructor( @Deprecated( message = "Renamed to 'values'.", replaceWith = ReplaceWith(expression = "this.values", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public val flags: List get() = values.toList() @@ -571,7 +547,7 @@ public class UserFlags internal constructor( @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "DEPRECATION_ERROR") @Deprecated( "'UserFlags.UserFlagsBuilder' is deprecated, use 'UserFlags.Builder' instead.", - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, ) @kotlin.internal.LowPriorityInOverloadResolution public inline fun copy(block: UserFlagsBuilder.() -> Unit): UserFlags { @@ -592,7 +568,7 @@ public class UserFlags internal constructor( @Deprecated( message = "UserFlags is no longer a data class.", replaceWith = ReplaceWith(expression = "this.code", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public operator fun component1(): Int = code @@ -600,13 +576,13 @@ public class UserFlags internal constructor( * @suppress */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) - @Deprecated(message = "UserFlags is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + @Deprecated(message = "UserFlags is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun copy(code: Int = this.code): UserFlags = UserFlags(code, null) @Deprecated( "Renamed to 'Builder'.", ReplaceWith("UserFlags.Builder", imports = ["dev.kord.common.entity.UserFlags"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class UserFlagsBuilder(code: Int = 0) { private val delegate = Builder(code) @@ -672,7 +648,7 @@ public class UserFlags internal constructor( @Deprecated( "Renamed to 'Companion', which no longer implements 'KSerializer'.", ReplaceWith("UserFlags.serializer()", imports = ["dev.kord.common.entity.UserFlags"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmField public val UserFlagsSerializer: UserFlagsSerializer = UserFlagsSerializer() @@ -681,7 +657,7 @@ public class UserFlags internal constructor( @Deprecated( "Renamed to 'Companion', which no longer implements 'KSerializer'.", ReplaceWith("UserFlags.serializer()", imports = ["dev.kord.common.entity.UserFlags"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class UserFlagsSerializer internal constructor() : KSerializer by Serializer { public fun serializer(): KSerializer = this diff --git a/core/api/core.api b/core/api/core.api index 9cc2073a0042..0a2cc7e9ba7a 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -53,8 +53,6 @@ public final class dev/kord/core/Kord : kotlinx/coroutines/CoroutineScope { public static synthetic fun getGuildApplicationCommands$default (Ldev/kord/core/Kord;Ldev/kord/common/entity/Snowflake;Ljava/lang/Boolean;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow; public final fun getGuildOrNull (Ldev/kord/common/entity/Snowflake;Ldev/kord/core/supplier/EntitySupplyStrategy;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun getGuildOrNull$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 synthetic fun getGuildOrThrow (Ldev/kord/common/entity/Snowflake;Ldev/kord/core/supplier/EntitySupplyStrategy;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static synthetic fun getGuildOrThrow$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 getGuildPreview (Ldev/kord/common/entity/Snowflake;Ldev/kord/core/supplier/EntitySupplyStrategy;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun getGuildPreview$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 getGuildPreviewOrNull (Ldev/kord/common/entity/Snowflake;Ldev/kord/core/supplier/EntitySupplyStrategy;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -154,11 +152,11 @@ public final class dev/kord/core/Unsafe { public final class dev/kord/core/UtilKt { public static final fun enableEvent (Ldev/kord/gateway/Intents$Builder;Lkotlin/reflect/KClass;)V - public static final fun enableEvent (Ldev/kord/gateway/Intents$IntentsBuilder;Lkotlin/reflect/KClass;)V + public static final synthetic fun enableEvent (Ldev/kord/gateway/Intents$IntentsBuilder;Lkotlin/reflect/KClass;)V public static final fun enableEvents (Ldev/kord/gateway/Intents$Builder;Ljava/lang/Iterable;)V public static final fun enableEvents (Ldev/kord/gateway/Intents$Builder;[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 synthetic fun enableEvents (Ldev/kord/gateway/Intents$IntentsBuilder;Ljava/lang/Iterable;)V + public static final synthetic fun enableEvents (Ldev/kord/gateway/Intents$IntentsBuilder;[Lkotlin/reflect/KClass;)V } public abstract interface class dev/kord/core/behavior/ApplicationCommandBehavior : dev/kord/core/entity/Entity { @@ -399,9 +397,7 @@ public final class dev/kord/core/behavior/GuildBehaviorKt { public static synthetic fun createKeywordPresetAutoModerationRule$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 createMediaChannel (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun createMediaChannel$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 synthetic fun createMentionSpamAutoModerationRule (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun createMentionSpamAutoModerationRule (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 createMentionSpamAutoModerationRule$default (Ldev/kord/core/behavior/GuildBehavior;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static synthetic fun createMentionSpamAutoModerationRule$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 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; @@ -6510,7 +6506,6 @@ public final class dev/kord/core/entity/Member : dev/kord/core/entity/User, dev/ public fun fetchMember (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun fetchMemberOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getCommunicationDisabledUntil ()Lkotlinx/datetime/Instant; - public final synthetic fun getDisplayName ()Ljava/lang/String; public final fun getEffectiveName ()Ljava/lang/String; public final fun getFlags ()Ldev/kord/common/entity/GuildMemberFlags; public fun getGuild ()Ldev/kord/core/behavior/GuildBehavior; @@ -6569,7 +6564,7 @@ public final class dev/kord/core/entity/Message : dev/kord/core/behavior/Message public final fun getAuthor ()Ldev/kord/core/entity/User; public final fun getAuthorAsMember (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun getAuthorAsMemberOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun getAuthorAsMemberOrThrow (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public final synthetic fun getAuthorAsMemberOrThrow (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannel ()Ldev/kord/core/behavior/channel/MessageChannelBehavior; public fun getChannel (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun getChannelId ()Ldev/kord/common/entity/Snowflake; @@ -7062,7 +7057,7 @@ public final class dev/kord/core/entity/TeamMember { public final fun getData ()Ldev/kord/core/cache/data/TeamMemberData; public final fun getKord ()Ldev/kord/core/Kord; public final fun getMembershipState ()Ldev/kord/common/entity/TeamMembershipState; - public final fun getPermissions ()Ljava/util/List; + public final synthetic fun getPermissions ()Ljava/util/List; public final fun getRole ()Ldev/kord/common/entity/TeamMemberRole; public final fun getTeamId ()Ldev/kord/common/entity/Snowflake; public final fun getUser (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -9055,7 +9050,7 @@ public abstract class dev/kord/core/entity/component/SelectMenuComponent : dev/k } public final class dev/kord/core/entity/component/SelectMenuComponentKt { - public static final fun getOptions (Ldev/kord/core/entity/component/StringSelectComponent;)Ljava/util/List; + public static final synthetic fun getOptions (Ldev/kord/core/entity/component/StringSelectComponent;)Ljava/util/List; } public final class dev/kord/core/entity/component/SelectOption { diff --git a/core/src/commonMain/kotlin/Kord.kt b/core/src/commonMain/kotlin/Kord.kt index 9f42c3bf3c43..ae299b660e23 100644 --- a/core/src/commonMain/kotlin/Kord.kt +++ b/core/src/commonMain/kotlin/Kord.kt @@ -253,18 +253,6 @@ public class Kord( strategy: EntitySupplyStrategy<*> = resources.defaultStrategy, ): Guild = strategy.supply(this).getGuild(id) - /** - * Requests the [Guild] with the given [id]. - * - * @throws RequestException if something went wrong while retrieving the guild. - * @throws EntityNotFoundException if the guild is null. - */ - @Deprecated("Renamed to getGuild", ReplaceWith("this.getGuild(id, strategy)"), level = DeprecationLevel.HIDDEN) - public suspend fun getGuildOrThrow( - id: Snowflake, - strategy: EntitySupplyStrategy<*> = resources.defaultStrategy, - ): Guild = strategy.supply(this).getGuild(id) - /** * Requests to get the [Webhook] in this guild. * diff --git a/core/src/commonMain/kotlin/Util.kt b/core/src/commonMain/kotlin/Util.kt index 13b84ca1dbf5..a0da8b6a8a82 100644 --- a/core/src/commonMain/kotlin/Util.kt +++ b/core/src/commonMain/kotlin/Util.kt @@ -244,8 +244,8 @@ internal fun paginateThreads( */ public inline fun Intents.Builder.enableEvent(): Unit = enableEvent(T::class) -@Suppress("DEPRECATION_ERROR", "DeprecatedCallableAddReplaceWith") -@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.ERROR) +@Suppress("DEPRECATION_ERROR") +@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.HIDDEN) public inline fun Intents.IntentsBuilder.enableEvent(): Unit = enableEvent0(T::class) /** @@ -261,8 +261,8 @@ public inline fun Intents.IntentsBuilder.enableEvent(): Unit public fun Intents.Builder.enableEvents(events: Iterable>): Unit = events.forEach { enableEvent(it) } -@Suppress("DEPRECATION_ERROR", "DeprecatedCallableAddReplaceWith") -@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.ERROR) +@Suppress("DEPRECATION_ERROR") +@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.HIDDEN) public fun Intents.IntentsBuilder.enableEvents(events: Iterable>): Unit = events.forEach { enableEvent0(it) } @@ -279,8 +279,8 @@ public fun Intents.IntentsBuilder.enableEvents(events: Iterable): Unit = events.forEach { enableEvent(it) } -@Suppress("DEPRECATION_ERROR", "DeprecatedCallableAddReplaceWith") -@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.ERROR) +@Suppress("DEPRECATION_ERROR") +@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.HIDDEN) public fun Intents.IntentsBuilder.enableEvents(vararg events: KClass): Unit = events.forEach { enableEvent0(it) } @@ -461,8 +461,8 @@ public fun Intents.Builder.enableEvent(event: KClass): Unit = when (e else -> Unit } -@Suppress("DEPRECATION_ERROR", "DeprecatedCallableAddReplaceWith") -@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.ERROR) +@Suppress("DEPRECATION_ERROR") +@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.HIDDEN) public fun Intents.IntentsBuilder.enableEvent(event: KClass) { enableEvent0(event) } diff --git a/core/src/commonMain/kotlin/behavior/GuildBehavior.kt b/core/src/commonMain/kotlin/behavior/GuildBehavior.kt index 4943b58dac5f..efcb4287cd37 100644 --- a/core/src/commonMain/kotlin/behavior/GuildBehavior.kt +++ b/core/src/commonMain/kotlin/behavior/GuildBehavior.kt @@ -1126,24 +1126,3 @@ public suspend inline fun GuildBehavior.createMentionSpamAutoModerationRule( val rule = kord.rest.autoModeration.createMentionSpamAutoModerationRule(guildId = id, name, eventType, builder) return MentionSpamAutoModerationRule(AutoModerationRuleData.from(rule), kord, supplier) } - -@Deprecated( - "The 'mentionLimit' parameter is optional, only 'mentionLimit' OR 'mentionRaidProtectionEnabled' is required.", - ReplaceWith( - "this.createMentionSpamAutoModerationRule(name, eventType) { this@createMentionSpamAutoModerationRule" + - ".mentionLimit = mentionLimit\nbuilder() }" - ), - DeprecationLevel.HIDDEN, -) -public suspend inline fun GuildBehavior.createMentionSpamAutoModerationRule( - name: String, - eventType: AutoModerationRuleEventType = MessageSend, - mentionLimit: Int, - builder: MentionSpamAutoModerationRuleCreateBuilder.() -> Unit, -): MentionSpamAutoModerationRule { - contract { callsInPlace(builder, EXACTLY_ONCE) } - return createMentionSpamAutoModerationRule(name, eventType) { - this.mentionLimit = mentionLimit - builder() - } -} diff --git a/core/src/commonMain/kotlin/entity/Member.kt b/core/src/commonMain/kotlin/entity/Member.kt index 7bd6cd45d1d2..6be08925ca85 100644 --- a/core/src/commonMain/kotlin/entity/Member.kt +++ b/core/src/commonMain/kotlin/entity/Member.kt @@ -31,17 +31,6 @@ public class Member( override val guildId: Snowflake get() = memberData.guildId - /** - * The name as shown in the discord client, prioritizing [nickname] over [globalName] and [username]. - */ - @Deprecated( - "This was renamed to 'effectiveName' to avoid confusion with 'User.globalName' which is also called display " + - "name.", - ReplaceWith("this.effectiveName"), - DeprecationLevel.HIDDEN, - ) - public val displayName: String get() = effectiveName - /** * The member's effective name, prioritizing [nickname] over [globalName] and [username]. */ diff --git a/core/src/commonMain/kotlin/entity/Message.kt b/core/src/commonMain/kotlin/entity/Message.kt index bc92071d25a7..911a23bddd29 100644 --- a/core/src/commonMain/kotlin/entity/Message.kt +++ b/core/src/commonMain/kotlin/entity/Message.kt @@ -305,7 +305,7 @@ public class Message( */ override suspend fun asMessage(): Message = this - @Deprecated("Renamed to 'getAuthorAsMember'.", ReplaceWith("this.getAuthorAsMember()"), DeprecationLevel.ERROR) + @Deprecated("Renamed to 'getAuthorAsMember'.", ReplaceWith("this.getAuthorAsMember()"), DeprecationLevel.HIDDEN) public suspend fun getAuthorAsMemberOrThrow(): Member = getAuthorAsMember() /** diff --git a/core/src/commonMain/kotlin/entity/Team.kt b/core/src/commonMain/kotlin/entity/Team.kt index c582b0c1e85d..58c4329b98eb 100644 --- a/core/src/commonMain/kotlin/entity/Team.kt +++ b/core/src/commonMain/kotlin/entity/Team.kt @@ -84,7 +84,7 @@ public class TeamMember(public val data: TeamMemberData, public val kord: Kord) @Deprecated( "'permissions' was never different from `[\"*\"]`. It is now replaced by 'role'.", ReplaceWith("this.role"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public val permissions: List get() = listOf("*") diff --git a/core/src/commonMain/kotlin/entity/component/SelectMenuComponent.kt b/core/src/commonMain/kotlin/entity/component/SelectMenuComponent.kt index 0e84c35ef91f..1bbb41aeff96 100644 --- a/core/src/commonMain/kotlin/entity/component/SelectMenuComponent.kt +++ b/core/src/commonMain/kotlin/entity/component/SelectMenuComponent.kt @@ -60,7 +60,7 @@ public class StringSelectComponent(data: ComponentData) : SelectMenuComponent(da /** The possible options to choose from. */ @Suppress("EXTENSION_SHADOWED_BY_MEMBER") -@Deprecated("Replaced by member in StringSelectComponent.", ReplaceWith("this.options"), DeprecationLevel.ERROR) +@Deprecated("Replaced by member in StringSelectComponent.", ReplaceWith("this.options"), DeprecationLevel.HIDDEN) public val StringSelectComponent.options: List get() = options public class UserSelectComponent(data: ComponentData) : SelectMenuComponent(data) { diff --git a/gateway/api/gateway.api b/gateway/api/gateway.api index 69ea4603d3fb..a1353511dfd8 100644 --- a/gateway/api/gateway.api +++ b/gateway/api/gateway.api @@ -1197,7 +1197,7 @@ public final class dev/kord/gateway/Intent$AutoModerationExecution : dev/kord/ga public final class dev/kord/gateway/Intent$Companion { public final fun fromShift (I)Ldev/kord/gateway/Intent; public final fun getEntries ()Ljava/util/List; - public final fun getValues ()Ljava/util/Set; + public final synthetic fun getValues ()Ljava/util/Set; } public final class dev/kord/gateway/Intent$DirectMessageTyping : dev/kord/gateway/Intent { @@ -1277,8 +1277,8 @@ public final class dev/kord/gateway/Intent$Unknown : dev/kord/gateway/Intent { public final class dev/kord/gateway/IntentKt { public static final fun Intents (Ljava/lang/Iterable;)Ldev/kord/gateway/Intents; - public static final fun Intents (Ljava/lang/String;)Ldev/kord/gateway/Intents; - public static final fun Intents (Lkotlin/jvm/functions/Function1;)Ldev/kord/gateway/Intents; + public static final synthetic fun Intents (Ljava/lang/String;)Ldev/kord/gateway/Intents; + public static final synthetic fun Intents (Lkotlin/jvm/functions/Function1;)Ldev/kord/gateway/Intents; public static final fun Intents ([Ldev/kord/gateway/Intent;)Ldev/kord/gateway/Intents; public static final fun Intents ([Ldev/kord/gateway/Intents;)Ldev/kord/gateway/Intents; public static synthetic fun Intents$default (Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/kord/gateway/Intents; @@ -1290,11 +1290,11 @@ public final class dev/kord/gateway/IntentKt { public final class dev/kord/gateway/Intents { public static final field Companion Ldev/kord/gateway/Intents$Companion; - public final fun component1 ()Ldev/kord/common/DiscordBitSet; + public final synthetic fun component1 ()Ldev/kord/common/DiscordBitSet; public final fun contains (Ldev/kord/gateway/Intent;)Z public final fun contains (Ldev/kord/gateway/Intents;)Z - public final fun copy (Ldev/kord/common/DiscordBitSet;)Ldev/kord/gateway/Intents; - public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/gateway/Intents; + public final synthetic fun copy (Ldev/kord/common/DiscordBitSet;)Ldev/kord/gateway/Intents; + public final synthetic fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/gateway/Intents; public static synthetic fun copy$default (Ldev/kord/gateway/Intents;Ldev/kord/common/DiscordBitSet;ILjava/lang/Object;)Ldev/kord/gateway/Intents; public final fun copy0 (Lkotlin/jvm/functions/Function1;)Ldev/kord/gateway/Intents; public fun equals (Ljava/lang/Object;)Z @@ -1320,10 +1320,10 @@ public final class dev/kord/gateway/Intents$Builder { } public final class dev/kord/gateway/Intents$Companion { - public final fun getAll ()Ldev/kord/gateway/Intents; - public final fun getNonPrivileged ()Ldev/kord/gateway/Intents; - public final fun getNone ()Ldev/kord/gateway/Intents; - public final fun getPrivileged ()Ldev/kord/gateway/Intents; + public final synthetic fun getAll ()Ldev/kord/gateway/Intents; + public final synthetic fun getNonPrivileged ()Ldev/kord/gateway/Intents; + public final synthetic fun getNone ()Ldev/kord/gateway/Intents; + public final synthetic fun getPrivileged ()Ldev/kord/gateway/Intents; public final fun serializer ()Lkotlinx/serialization/KSerializer; } @@ -1971,7 +1971,7 @@ public final class dev/kord/gateway/builder/LoginBuilder { public final fun getIntents ()Ldev/kord/gateway/Intents; public final fun getName ()Ljava/lang/String; public final fun getPresence ()Ldev/kord/gateway/DiscordPresence; - public final fun intents (Lkotlin/jvm/functions/Function1;)V + public final synthetic fun intents (Lkotlin/jvm/functions/Function1;)V public final fun intents0 (Lkotlin/jvm/functions/Function1;)V public final fun presence (Lkotlin/jvm/functions/Function1;)V public final fun setIntents (Ldev/kord/gateway/Intents;)V diff --git a/gateway/src/commonMain/kotlin/Event.kt b/gateway/src/commonMain/kotlin/Event.kt index 956538f076d6..18021d8a9ea4 100644 --- a/gateway/src/commonMain/kotlin/Event.kt +++ b/gateway/src/commonMain/kotlin/Event.kt @@ -596,7 +596,7 @@ public data class Heartbeat(val data: Long) : Event() { @Deprecated( "Renamed to 'NewCompanion', which no longer implements 'KSerializer'.", ReplaceWith("Heartbeat.serializer()", imports = ["dev.kord.gateway.Heartbeat"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmField public val Companion: Companion = Companion() @@ -605,7 +605,7 @@ public data class Heartbeat(val data: Long) : Event() { @Deprecated( "Renamed to 'NewCompanion', which no longer implements 'KSerializer'.", ReplaceWith("Heartbeat.serializer()", imports = ["dev.kord.gateway.Heartbeat"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class Companion internal constructor() : KSerializer by Serializer { public fun serializer(): KSerializer = this diff --git a/gateway/src/commonMain/kotlin/Intent.kt b/gateway/src/commonMain/kotlin/Intent.kt index 72b3d2b5284b..c3ffc92c478b 100644 --- a/gateway/src/commonMain/kotlin/Intent.kt +++ b/gateway/src/commonMain/kotlin/Intent.kt @@ -102,7 +102,7 @@ public sealed class Intent( @Deprecated( "Renamed to 'GuildModeration'.", ReplaceWith("Intent.GuildModeration", imports = ["dev.kord.gateway.Intent"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public object GuildBans : Intent(2) @@ -283,7 +283,7 @@ public sealed class Intent( @Deprecated( "Renamed to 'entries'.", ReplaceWith("Intent.entries", imports = ["dev.kord.gateway.Intent"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public val values: Set get() = entries.toSet() @@ -441,7 +441,7 @@ public class Intents internal constructor( @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "DEPRECATION_ERROR") @Deprecated( "'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, ) @kotlin.internal.LowPriorityInOverloadResolution public inline fun copy(block: IntentsBuilder.() -> Unit): Intents { @@ -462,7 +462,7 @@ public class Intents internal constructor( @Deprecated( message = "Intents is no longer a data class.", replaceWith = ReplaceWith(expression = "this.code", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public operator fun component1(): DiscordBitSet = code @@ -470,13 +470,13 @@ public class Intents internal constructor( * @suppress */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) - @Deprecated(message = "Intents is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + @Deprecated(message = "Intents is no longer a data class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun copy(code: DiscordBitSet = this.code): Intents = Intents(code) @Deprecated( "Renamed to 'Builder'.", ReplaceWith("Intents.Builder", imports = ["dev.kord.gateway.Intents"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class IntentsBuilder(code: DiscordBitSet = EmptyBitSet()) { private val delegate = Builder(code) @@ -543,7 +543,7 @@ public class Intents internal constructor( @Deprecated( "Renamed to 'ALL'", ReplaceWith("Intents.ALL", imports = [" dev.kord.gateway.Intents", " dev.kord.gateway.ALL"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @PrivilegedIntent public val all: Intents get() = ALL @@ -551,7 +551,7 @@ public class Intents internal constructor( @Deprecated( "Renamed to 'PRIVILEGED'", ReplaceWith("Intents.PRIVILEGED", imports = [" dev.kord.gateway.Intents", " dev.kord.gateway.PRIVILEGED"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @PrivilegedIntent public val privileged: Intents get() = PRIVILEGED @@ -562,14 +562,14 @@ public class Intents internal constructor( "Intents.NON_PRIVILEGED", imports = [" dev.kord.gateway.Intents", " dev.kord.gateway.NON_PRIVILEGED"], ), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public val nonPrivileged: Intents get() = NON_PRIVILEGED @Deprecated( "Renamed to 'NONE'", ReplaceWith("Intents.NONE", imports = [" dev.kord.gateway.Intents", " dev.kord.gateway.NONE"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public val none: Intents get() = NONE } @@ -578,7 +578,7 @@ public class Intents internal constructor( @Deprecated( "Replaced by 'Intents.serializer()'.", ReplaceWith("Intents.serializer()", imports = ["dev.kord.gateway.Intents"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public object IntentsSerializer : KSerializer by Intents.Serializer @@ -592,7 +592,7 @@ public inline fun Intents(builder: Intents.Builder.() -> Unit = {}): Intents { } @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "DEPRECATION_ERROR") -@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.ERROR) +@Deprecated("'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", level = DeprecationLevel.HIDDEN) @kotlin.internal.LowPriorityInOverloadResolution public inline fun Intents(builder: Intents.IntentsBuilder.() -> Unit = {}): Intents { contract { callsInPlace(builder, EXACTLY_ONCE) } @@ -640,6 +640,6 @@ public fun IntentsWithIterable(flags: Iterable): Intents = Intents(flag "Intents.Builder(DiscordBitSet(value)).build()", imports = ["dev.kord.gateway.Intents", "dev.kord.common.DiscordBitSet"], ), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun Intents(value: String): Intents = Intents(DiscordBitSet(value)) diff --git a/gateway/src/commonMain/kotlin/OpCode.kt b/gateway/src/commonMain/kotlin/OpCode.kt index cdc911e6bd04..20d722d50788 100644 --- a/gateway/src/commonMain/kotlin/OpCode.kt +++ b/gateway/src/commonMain/kotlin/OpCode.kt @@ -80,7 +80,7 @@ public enum class OpCode(public val code: Int) { @Deprecated( "Renamed to 'Companion', which no longer implements 'KSerializer'.", ReplaceWith("OpCode.serializer()", imports = ["dev.kord.gateway.OpCode"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmField public val OpCodeSerializer: OpCodeSerializer = OpCodeSerializer() @@ -89,7 +89,7 @@ public enum class OpCode(public val code: Int) { @Deprecated( "Renamed to 'Companion', which no longer implements 'KSerializer'.", ReplaceWith("OpCode.serializer()", imports = ["dev.kord.gateway.OpCode"]), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public class OpCodeSerializer internal constructor() : KSerializer by Serializer { public fun serializer(): KSerializer = this diff --git a/gateway/src/commonMain/kotlin/builder/LoginBuilder.kt b/gateway/src/commonMain/kotlin/builder/LoginBuilder.kt index 3ddf8b437066..37c3065488ca 100644 --- a/gateway/src/commonMain/kotlin/builder/LoginBuilder.kt +++ b/gateway/src/commonMain/kotlin/builder/LoginBuilder.kt @@ -25,12 +25,12 @@ public class LoginBuilder { @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "DEPRECATION_ERROR") @Deprecated( "'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.", - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, ) @kotlin.internal.LowPriorityInOverloadResolution public inline fun intents(builder: Intents.IntentsBuilder.() -> Unit) { contract { callsInPlace(builder, InvocationKind.EXACTLY_ONCE) } - this.intents = Intents(builder) + this.intents = Intents.IntentsBuilder().apply(builder).flags() } @JvmName("intents0") // TODO other name when deprecated overload is removed diff --git a/ksp-processors/src/main/kotlin/generation/bitflags/BitFlagsGeneration.kt b/ksp-processors/src/main/kotlin/generation/bitflags/BitFlagsGeneration.kt index efc9b85a225a..276d69b79390 100644 --- a/ksp-processors/src/main/kotlin/generation/bitflags/BitFlagsGeneration.kt +++ b/ksp-processors/src/main/kotlin/generation/bitflags/BitFlagsGeneration.kt @@ -131,7 +131,7 @@ internal fun BitFlags.generateFileSpec(originatingFile: KSFile) = fileSpecForGen Deprecated( "Renamed to 'values'.", ReplaceWith("this.values", imports = emptyArray()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) ) getter { diff --git a/ksp-processors/src/main/kotlin/generation/bitflags/Builder.kt b/ksp-processors/src/main/kotlin/generation/bitflags/Builder.kt index 5d15f02b16e0..e422f48472dd 100644 --- a/ksp-processors/src/main/kotlin/generation/bitflags/Builder.kt +++ b/ksp-processors/src/main/kotlin/generation/bitflags/Builder.kt @@ -55,7 +55,7 @@ internal fun TypeSpec.Builder.addBuilder() = addClass(builderCN) { Deprecated( "Renamed to 'build'", ReplaceWith("this.build()", imports = emptyArray()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) ) returns(collectionCN) diff --git a/ksp-processors/src/main/kotlin/generation/bitflags/DataClassArtifacts.kt b/ksp-processors/src/main/kotlin/generation/bitflags/DataClassArtifacts.kt index 9ff4e8f86eba..7fcce1b78c83 100644 --- a/ksp-processors/src/main/kotlin/generation/bitflags/DataClassArtifacts.kt +++ b/ksp-processors/src/main/kotlin/generation/bitflags/DataClassArtifacts.kt @@ -11,7 +11,7 @@ import dev.kord.ksp.generation.GenerationEntity.BitFlags import dev.kord.ksp.generation.shared.GenerationContext // TODO bump LEVEL and remove this file eventually -private val LEVEL = DeprecationLevel.ERROR +private val LEVEL = DeprecationLevel.HIDDEN context(BitFlags, GenerationContext) @OptIn(DelicateKotlinPoetApi::class) diff --git a/ksp-processors/src/main/kotlin/generation/bitflags/EnumArtifacts.kt b/ksp-processors/src/main/kotlin/generation/bitflags/EnumArtifacts.kt index 22e9434421d6..a66e73890952 100644 --- a/ksp-processors/src/main/kotlin/generation/bitflags/EnumArtifacts.kt +++ b/ksp-processors/src/main/kotlin/generation/bitflags/EnumArtifacts.kt @@ -1,7 +1,7 @@ package dev.kord.ksp.generation.bitflags import com.squareup.kotlinpoet.* -import com.squareup.kotlinpoet.KModifier.* +import com.squareup.kotlinpoet.KModifier.OPEN import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy import com.squareup.kotlinpoet.jvm.jvmField import com.squareup.kotlinpoet.jvm.jvmStatic @@ -10,11 +10,9 @@ import dev.kord.ksp.generation.GenerationEntity.BitFlags import dev.kord.ksp.generation.shared.GenerationContext import dev.kord.ksp.generation.shared.nameWithSuppressedDeprecation import kotlin.DeprecationLevel.HIDDEN -import kotlin.enums.EnumEntries -// TODO bump LEVEL and ENUM_ENTRIES_LEVEL and remove this file eventually -private val LEVEL = DeprecationLevel.ERROR -private val ENUM_ENTRIES_LEVEL = HIDDEN // deprecated before released, only present in snapshots +// TODO bump LEVEL and remove this file eventually +private val LEVEL = HIDDEN private val CLASS = ClassName("dev.kord.common", "Class") private val JAVA = MemberName("dev.kord.common", "java") @@ -111,48 +109,4 @@ internal fun TypeSpec.Builder.addDeprecatedEntityCompanionObjectEnumArtifacts() returns(ARRAY.parameterizedBy(entityCN)) addStatement("return entries.toTypedArray()") } - val enumEntries = EnumEntries::class.asClassName().parameterizedBy(entityCN) - addObject("EnumEntriesList") { - addAnnotation( - Suppress( - "SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", - "UPPER_BOUND_VIOLATED", - ) - ) - addModifiers(PRIVATE) - addSuperinterface(enumEntries) - addSuperinterface(LIST.parameterizedBy(entityCN), delegate = CodeBlock.of("entries")) - addFunction("equals") { - addModifiers(OVERRIDE) - addParameter("other") - returns() - addStatement("return entries == other") - } - addFunction("hashCode") { - addModifiers(OVERRIDE) - returns() - addStatement("return entries.hashCode()") - } - addFunction("toString") { - addModifiers(OVERRIDE) - returns() - addStatement("return entries.toString()") - } - } - addFunction("getEntries") { - addKdoc("@suppress") - addAnnotation(Suppress("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - addAnnotation( - Deprecated( - "$entityName is no longer an enum class.", - ReplaceWith("$entityName.entries", entityCN.canonicalName), - ENUM_ENTRIES_LEVEL, - ) - ) - jvmStatic() - addModifiers(OPEN) - returns(enumEntries) - addStatement("return EnumEntriesList") - } } diff --git a/ksp-processors/src/main/kotlin/generation/kordenum/KordEnumGeneration.kt b/ksp-processors/src/main/kotlin/generation/kordenum/KordEnumGeneration.kt index 8babde45cdd0..19dbd2fc510a 100644 --- a/ksp-processors/src/main/kotlin/generation/kordenum/KordEnumGeneration.kt +++ b/ksp-processors/src/main/kotlin/generation/kordenum/KordEnumGeneration.kt @@ -46,7 +46,7 @@ internal fun KordEnum.generateFileSpec(originatingFile: KSFile) = fileSpecForGen Deprecated( "Replaced by '$entityName.from()'.", ReplaceWith("$entityName.from($valueName)", entityCN.canonicalName), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) ) addModifiers(PUBLIC) diff --git a/rest/api/rest.api b/rest/api/rest.api index a60c114ac21f..4864ceb4ebdf 100644 --- a/rest/api/rest.api +++ b/rest/api/rest.api @@ -304,7 +304,6 @@ public final class dev/kord/rest/builder/automoderation/KeywordPresetAutoModerat } public abstract interface class dev/kord/rest/builder/automoderation/MentionSpamAutoModerationRuleBuilder : dev/kord/rest/builder/automoderation/TimeoutAutoModerationRuleBuilder { - public abstract synthetic fun assignMentionLimit (I)V public abstract fun getMentionLimit ()Ljava/lang/Integer; public abstract fun getMentionRaidProtectionEnabled ()Ljava/lang/Boolean; public abstract fun getTriggerType ()Ldev/kord/common/entity/AutoModerationRuleTriggerType$MentionSpam; @@ -318,21 +317,17 @@ public final class dev/kord/rest/builder/automoderation/MentionSpamAutoModeratio public final class dev/kord/rest/builder/automoderation/MentionSpamAutoModerationRuleCreateBuilder : dev/kord/rest/builder/automoderation/AutoModerationRuleCreateBuilder, dev/kord/rest/builder/automoderation/MentionSpamAutoModerationRuleBuilder { public fun (Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;)V - public synthetic fun (Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;I)V - public synthetic fun assignMentionLimit (I)V public synthetic fun buildTriggerMetadata ()Ldev/kord/common/entity/optional/Optional; public fun getMentionLimit ()Ljava/lang/Integer; public fun getMentionRaidProtectionEnabled ()Ljava/lang/Boolean; public fun getTriggerType ()Ldev/kord/common/entity/AutoModerationRuleTriggerType$MentionSpam; public synthetic fun getTriggerType ()Ldev/kord/common/entity/AutoModerationRuleTriggerType; - public synthetic fun setMentionLimit (I)V public fun setMentionLimit (Ljava/lang/Integer;)V public fun setMentionRaidProtectionEnabled (Ljava/lang/Boolean;)V } public final class dev/kord/rest/builder/automoderation/MentionSpamAutoModerationRuleModifyBuilder : dev/kord/rest/builder/automoderation/AutoModerationRuleModifyBuilder, dev/kord/rest/builder/automoderation/MentionSpamAutoModerationRuleBuilder { public fun ()V - public synthetic fun assignMentionLimit (I)V public fun getMentionLimit ()Ljava/lang/Integer; public fun getMentionRaidProtectionEnabled ()Ljava/lang/Boolean; public fun getTriggerType ()Ldev/kord/common/entity/AutoModerationRuleTriggerType$MentionSpam; @@ -1086,10 +1081,10 @@ public abstract class dev/kord/rest/builder/component/SelectMenuBuilder : dev/ko public final class dev/kord/rest/builder/component/SelectMenuBuilderKt { public static final fun channelType (Ldev/kord/rest/builder/component/ChannelSelectBuilder;Ldev/kord/common/entity/ChannelType;)V - public static final fun getOptions (Ldev/kord/rest/builder/component/StringSelectBuilder;)Ljava/util/List; + public static final synthetic fun getOptions (Ldev/kord/rest/builder/component/StringSelectBuilder;)Ljava/util/List; public static final fun option (Ldev/kord/rest/builder/component/StringSelectBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun option$default (Ldev/kord/rest/builder/component/StringSelectBuilder;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V - public static final fun setOptions (Ldev/kord/rest/builder/component/StringSelectBuilder;Ljava/util/List;)V + public static final synthetic fun setOptions (Ldev/kord/rest/builder/component/StringSelectBuilder;Ljava/util/List;)V } public final class dev/kord/rest/builder/component/SelectOptionBuilder { @@ -2907,7 +2902,7 @@ public final class dev/kord/rest/json/request/AutoCompleteResponseCreateRequest$ public final class dev/kord/rest/json/request/AutoCompleteResponseCreateRequest$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; - public final fun serializer (Lkotlinx/serialization/KSerializer;)Lkotlinx/serialization/KSerializer; + public final synthetic fun serializer (Lkotlinx/serialization/KSerializer;)Lkotlinx/serialization/KSerializer; } public final class dev/kord/rest/json/request/AutoModerationRuleCreateRequest { @@ -7151,7 +7146,6 @@ public final class dev/kord/rest/service/AutoModerationService : dev/kord/rest/s public static synthetic fun createAutoModerationRule$default (Ldev/kord/rest/service/AutoModerationService;Ldev/kord/common/entity/Snowflake;Ldev/kord/rest/json/request/AutoModerationRuleCreateRequest;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public final fun createKeywordAutoModerationRule (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createKeywordPresetAutoModerationRule (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final synthetic fun createMentionSpamAutoModerationRule (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createMentionSpamAutoModerationRule (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun createSpamAutoModerationRule (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Ldev/kord/common/entity/AutoModerationRuleEventType;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun deleteAutoModerationRule (Ldev/kord/common/entity/Snowflake;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; diff --git a/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleBuilder.kt b/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleBuilder.kt index ebe5869a8440..b9bd19072b92 100644 --- a/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleBuilder.kt @@ -306,17 +306,6 @@ public sealed interface MentionSpamAutoModerationRuleBuilder : TimeoutAutoModera /** Total number of unique role and user mentions allowed per message (maximum of 50). */ public var mentionLimit: Int? - /** - * Use this to set [mentionLimit][MentionSpamAutoModerationRuleBuilder.mentionLimit] for - * [MentionSpamAutoModerationRuleBuilder]. - */ - @Deprecated( - "This can be replaced with 'mentionLimit', it is now a 'var'.", - ReplaceWith("this.run { this@run.mentionLimit = mentionLimit }"), - DeprecationLevel.HIDDEN, - ) - public fun assignMentionLimit(mentionLimit: Int) - /** Whether to automatically detect mention raids. */ public var mentionRaidProtectionEnabled: Boolean? } diff --git a/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleCreateBuilder.kt b/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleCreateBuilder.kt index c52dfd44f489..82acfabeb759 100644 --- a/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleCreateBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleCreateBuilder.kt @@ -120,41 +120,6 @@ public class MentionSpamAutoModerationRuleCreateBuilder( name: String, eventType: AutoModerationRuleEventType, ) : AutoModerationRuleCreateBuilder(name, eventType), MentionSpamAutoModerationRuleBuilder { - @Deprecated( - "The 'mentionLimit' parameter is optional, only 'mentionLimit' OR 'mentionRaidProtectionEnabled' is required.", - ReplaceWith( - "MentionSpamAutoModerationRuleCreateBuilder(name, eventType).apply { this@apply.mentionLimit = mentionLimit }", - imports = ["dev.kord.rest.builder.automoderation.MentionSpamAutoModerationRuleCreateBuilder"], - ), - DeprecationLevel.HIDDEN, - ) - public constructor(name: String, eventType: AutoModerationRuleEventType, mentionLimit: Int) : this( - name, - eventType, - ) { - this.mentionLimit = mentionLimit - } - - /** @suppress Use `this.mentionLimit = mentionLimit` instead. */ - @Deprecated( - "This can be replaced with 'mentionLimit', it is now a 'var'.", - ReplaceWith("this.run { this@run.mentionLimit = mentionLimit }"), - DeprecationLevel.HIDDEN, - ) - override fun assignMentionLimit(mentionLimit: Int) { - this.mentionLimit = mentionLimit - } - - /** @suppress This declaration only exists to preserve binary compatibility. */ - @Suppress("NON_FINAL_MEMBER_IN_FINAL_CLASS") - @Deprecated( - "This can be replaced with 'mentionLimit', it is now a 'var'.", - ReplaceWith("this.run { this@run.mentionLimit = mentionLimit }"), - DeprecationLevel.HIDDEN, - ) - public open fun setMentionLimit(mentionLimit: Int) { - this.mentionLimit = mentionLimit - } private var _mentionLimit: OptionalInt = OptionalInt.Missing override var mentionLimit: Int? by ::_mentionLimit.delegate() diff --git a/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleModifyBuilder.kt b/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleModifyBuilder.kt index 56cde798723f..0bbeb537c301 100644 --- a/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleModifyBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/automoderation/AutoModerationRuleModifyBuilder.kt @@ -147,16 +147,6 @@ public class MentionSpamAutoModerationRuleModifyBuilder : private var _mentionLimit: OptionalInt = OptionalInt.Missing override var mentionLimit: Int? by ::_mentionLimit.delegate() - /** @suppress Use `this.mentionLimit = mentionLimit` instead. */ - @Deprecated( - "This can be replaced with 'mentionLimit', it is now a 'var'.", - ReplaceWith("this.run { this@run.mentionLimit = mentionLimit }"), - DeprecationLevel.HIDDEN, - ) - override fun assignMentionLimit(mentionLimit: Int) { - this.mentionLimit = mentionLimit - } - private var _mentionRaidProtectionEnabled: OptionalBoolean = OptionalBoolean.Missing override var mentionRaidProtectionEnabled: Boolean? by ::_mentionRaidProtectionEnabled.delegate() diff --git a/rest/src/commonMain/kotlin/builder/component/SelectMenuBuilder.kt b/rest/src/commonMain/kotlin/builder/component/SelectMenuBuilder.kt index c1ea5e5f065d..657a1d079f11 100644 --- a/rest/src/commonMain/kotlin/builder/component/SelectMenuBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/component/SelectMenuBuilder.kt @@ -65,7 +65,7 @@ public class StringSelectBuilder(customId: String) : SelectMenuBuilder(customId) /** The choices in the select, max 25. */ @Suppress("EXTENSION_SHADOWED_BY_MEMBER") -@Deprecated("Replaced by member in StringSelectBuilder.", ReplaceWith("this.options"), DeprecationLevel.ERROR) +@Deprecated("Replaced by member in StringSelectBuilder.", ReplaceWith("this.options"), DeprecationLevel.HIDDEN) public var StringSelectBuilder.options: MutableList get() = options set(value) { diff --git a/rest/src/commonMain/kotlin/builder/message/create/MessageCreateBuilder.kt b/rest/src/commonMain/kotlin/builder/message/create/MessageCreateBuilder.kt index dbb0cb0110af..a099a98fffd8 100644 --- a/rest/src/commonMain/kotlin/builder/message/create/MessageCreateBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/message/create/MessageCreateBuilder.kt @@ -82,7 +82,7 @@ public sealed class AbstractMessageCreateBuilder : MessageCreateBuilder { @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.embed'.", ReplaceWith("this.embed(block)", imports = ["dev.kord.rest.builder.message.embed"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public inline fun MessageCreateBuilder.embed(block: EmbedBuilder.() -> Unit) { contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) } @@ -99,7 +99,7 @@ public inline fun MessageCreateBuilder.embed(block: EmbedBuilder.() -> Unit) { @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.allowedMentions'.", ReplaceWith("this.allowedMentions(block)", imports = ["dev.kord.rest.builder.message.allowedMentions"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public inline fun MessageCreateBuilder.allowedMentions(block: AllowedMentionsBuilder.() -> Unit = {}) { contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) } @@ -114,7 +114,7 @@ public inline fun MessageCreateBuilder.allowedMentions(block: AllowedMentionsBui @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.actionRow'.", ReplaceWith("this.actionRow(builder)", imports = ["dev.kord.rest.builder.message.actionRow"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public inline fun MessageCreateBuilder.actionRow(builder: ActionRowBuilder.() -> Unit) { contract { @@ -133,7 +133,7 @@ public inline fun MessageCreateBuilder.actionRow(builder: ActionRowBuilder.() -> @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.messageFlags'.", ReplaceWith("this.messageFlags(builder)", imports = ["dev.kord.rest.builder.message.messageFlags"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public inline fun MessageCreateBuilder.messageFlags(builder: MessageFlags.Builder.() -> Unit) { contract { diff --git a/rest/src/commonMain/kotlin/builder/message/create/UpdateMessageInteractionResponseCreateBuilder.kt b/rest/src/commonMain/kotlin/builder/message/create/UpdateMessageInteractionResponseCreateBuilder.kt index acd243389c4b..747da458b1ea 100644 --- a/rest/src/commonMain/kotlin/builder/message/create/UpdateMessageInteractionResponseCreateBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/message/create/UpdateMessageInteractionResponseCreateBuilder.kt @@ -22,7 +22,7 @@ public class UpdateMessageInteractionResponseCreateBuilder : @set:Deprecated( "This setter will be removed in the future, replace with files.clear() followed by files.addAll(...).", ReplaceWith("this.files.clear()\nthis.files.addAll(value)"), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) override var files: MutableList = mutableListOf() diff --git a/rest/src/commonMain/kotlin/builder/message/modify/MessageModifyBuilder.kt b/rest/src/commonMain/kotlin/builder/message/modify/MessageModifyBuilder.kt index e64022f7a388..2ae3fe71f2a4 100644 --- a/rest/src/commonMain/kotlin/builder/message/modify/MessageModifyBuilder.kt +++ b/rest/src/commonMain/kotlin/builder/message/modify/MessageModifyBuilder.kt @@ -24,7 +24,7 @@ public sealed interface MessageModifyBuilder : MessageBuilder { @set:Deprecated( "This setter will be removed in the future, replace with files.clear() followed by files.addAll(...).", ReplaceWith("this.files.clear()\nthis.files.addAll(value)"), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) override var files: MutableList } @@ -68,7 +68,7 @@ public sealed class AbstractMessageModifyBuilder : MessageModifyBuilder { @set:Deprecated( "This setter will be removed in the future, replace with files.clear() followed by files.addAll(...).", ReplaceWith("this.files.clear()\nthis.files.addAll(value)"), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) final override var files: MutableList = mutableListOf() @@ -82,7 +82,7 @@ public sealed class AbstractMessageModifyBuilder : MessageModifyBuilder { @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.embed'.", ReplaceWith("this.embed(block)", imports = ["dev.kord.rest.builder.message.embed"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public inline fun MessageModifyBuilder.embed(block: EmbedBuilder.() -> Unit) { contract { @@ -101,7 +101,7 @@ public inline fun MessageModifyBuilder.embed(block: EmbedBuilder.() -> Unit) { @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.allowedMentions'.", ReplaceWith("this.allowedMentions(block)", imports = ["dev.kord.rest.builder.message.allowedMentions"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public inline fun MessageModifyBuilder.allowedMentions(block: AllowedMentionsBuilder.() -> Unit = {}) { contract { @@ -115,7 +115,7 @@ public inline fun MessageModifyBuilder.allowedMentions(block: AllowedMentionsBui @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.actionRow'.", ReplaceWith("this.actionRow(builder)", imports = ["dev.kord.rest.builder.message.actionRow"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public inline fun MessageModifyBuilder.actionRow(builder: ActionRowBuilder.() -> Unit) { contract { @@ -134,7 +134,7 @@ public inline fun MessageModifyBuilder.actionRow(builder: ActionRowBuilder.() -> @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.messageFlags'.", ReplaceWith("this.messageFlags(builder)", imports = ["dev.kord.rest.builder.message.messageFlags"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public inline fun MessageModifyBuilder.messageFlags(builder: MessageFlags.Builder.() -> Unit) { contract { diff --git a/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt b/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt index 725c99ef4d3e..e0aa77e812ab 100644 --- a/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt +++ b/rest/src/commonMain/kotlin/json/request/InteractionsRequests.kt @@ -80,7 +80,7 @@ public data class AutoCompleteResponseCreateRequest( @Deprecated( "AutoCompleteResponseCreateRequest is no longer generic", ReplaceWith("this.serializer()"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun serializer(typeSerial0: KSerializer): KSerializer = serializer() diff --git a/rest/src/commonMain/kotlin/service/AutoModerationService.kt b/rest/src/commonMain/kotlin/service/AutoModerationService.kt index d3b59a114afe..a86b592ac228 100644 --- a/rest/src/commonMain/kotlin/service/AutoModerationService.kt +++ b/rest/src/commonMain/kotlin/service/AutoModerationService.kt @@ -79,28 +79,6 @@ public class AutoModerationService(requestHandler: RequestHandler) : RestService return createAutoModerationRule(guildId, request.toRequest(), request.reason) } - @Deprecated( - "The 'mentionLimit' parameter is optional, only 'mentionLimit' OR 'mentionRaidProtectionEnabled' is required.", - ReplaceWith( - "this.createMentionSpamAutoModerationRule(guildId, name, eventType) { " + - "this@createMentionSpamAutoModerationRule.mentionLimit = mentionLimit\nbuilder() }" - ), - DeprecationLevel.HIDDEN, - ) - public suspend inline fun createMentionSpamAutoModerationRule( - guildId: Snowflake, - name: String, - eventType: AutoModerationRuleEventType, - mentionLimit: Int, - builder: MentionSpamAutoModerationRuleCreateBuilder.() -> Unit, - ): DiscordAutoModerationRule { - contract { callsInPlace(builder, EXACTLY_ONCE) } - return createMentionSpamAutoModerationRule(guildId, name, eventType) { - this.mentionLimit = mentionLimit - builder() - } - } - public suspend fun modifyAutoModerationRule( guildId: Snowflake, ruleId: Snowflake, diff --git a/rest/src/commonMain/kotlin/service/InteractionService.kt b/rest/src/commonMain/kotlin/service/InteractionService.kt index 977ca65ea3a0..4ae5f1deaf5b 100644 --- a/rest/src/commonMain/kotlin/service/InteractionService.kt +++ b/rest/src/commonMain/kotlin/service/InteractionService.kt @@ -126,7 +126,7 @@ public class InteractionService(requestHandler: RequestHandler) : RestService(re @Deprecated( "DiscordAutoComplete is no longer generic and the typeSerializer argument is no longer needed.", ReplaceWith("this.createAutoCompleteInteractionResponse(interactionId, interactionToken, autoComplete)"), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public suspend inline fun createAutoCompleteInteractionResponse( interactionId: Snowflake, diff --git a/rest/src/jvmMain/kotlin/dev/kord/rest/builder/message/create/MessageCreateBuilderJvm.kt b/rest/src/jvmMain/kotlin/dev/kord/rest/builder/message/create/MessageCreateBuilderJvm.kt index 68095de51612..a50a2c395858 100644 --- a/rest/src/jvmMain/kotlin/dev/kord/rest/builder/message/create/MessageCreateBuilderJvm.kt +++ b/rest/src/jvmMain/kotlin/dev/kord/rest/builder/message/create/MessageCreateBuilderJvm.kt @@ -12,7 +12,7 @@ import dev.kord.rest.builder.message.addFile as addFileExtensionOnNewSupertype @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.addFile'.", ReplaceWith("this.addFile(path)", imports = ["dev.kord.rest.builder.message.addFile"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public fun MessageCreateBuilder.addFile(path: Path): NamedFile = addFileExtensionOnNewSupertype(path) diff --git a/rest/src/jvmMain/kotlin/dev/kord/rest/builder/message/modify/MessageModifyBuilderJvm.kt b/rest/src/jvmMain/kotlin/dev/kord/rest/builder/message/modify/MessageModifyBuilderJvm.kt index c33219f92386..9547a078dda4 100644 --- a/rest/src/jvmMain/kotlin/dev/kord/rest/builder/message/modify/MessageModifyBuilderJvm.kt +++ b/rest/src/jvmMain/kotlin/dev/kord/rest/builder/message/modify/MessageModifyBuilderJvm.kt @@ -12,7 +12,7 @@ import dev.kord.rest.builder.message.addFile as addFileExtensionOnNewSupertype @Deprecated( "Replaced by extension on 'MessageBuilder'. Change import to 'dev.kord.rest.builder.message.addFile'.", ReplaceWith("this.addFile(path)", imports = ["dev.kord.rest.builder.message.addFile"]), - DeprecationLevel.WARNING, + DeprecationLevel.ERROR, ) public fun MessageModifyBuilder.addFile(path: Path): NamedFile = addFileExtensionOnNewSupertype(path) diff --git a/voice/api/voice.api b/voice/api/voice.api index 9c0f2da413ff..186b2bbf5d6d 100644 --- a/voice/api/voice.api +++ b/voice/api/voice.api @@ -211,7 +211,7 @@ public final class dev/kord/voice/EncryptionMode$Companion { } public final class dev/kord/voice/EncryptionMode$Unknown : dev/kord/voice/EncryptionMode { - public fun (Ljava/lang/String;)V + public synthetic fun (Ljava/lang/String;)V } public final class dev/kord/voice/EncryptionMode$XSalsa20Poly1305 : dev/kord/voice/EncryptionMode { @@ -253,25 +253,23 @@ public abstract class dev/kord/voice/SpeakingFlag { public synthetic fun (ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getDeclaringClass ()Ljava/lang/Class; - public static synthetic fun getEntries ()Lkotlin/enums/EnumEntries; + public final synthetic fun getDeclaringClass ()Ljava/lang/Class; public final fun getShift ()I public final fun hashCode ()I - public final fun name ()Ljava/lang/String; - public final fun ordinal ()I + public final synthetic fun name ()Ljava/lang/String; + public final synthetic fun ordinal ()I public final fun plus (Ldev/kord/voice/SpeakingFlag;)Ldev/kord/voice/SpeakingFlags; public final fun plus (Ldev/kord/voice/SpeakingFlags;)Ldev/kord/voice/SpeakingFlags; public final fun toString ()Ljava/lang/String; - public static fun valueOf (Ljava/lang/String;)Ldev/kord/voice/SpeakingFlag; - public static fun values ()[Ldev/kord/voice/SpeakingFlag; + public static synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/voice/SpeakingFlag; + public static synthetic fun values ()[Ldev/kord/voice/SpeakingFlag; } public final class dev/kord/voice/SpeakingFlag$Companion { public final fun fromShift (I)Ldev/kord/voice/SpeakingFlag; public final fun getEntries ()Ljava/util/List; - public synthetic fun getEntries ()Lkotlin/enums/EnumEntries; - public fun valueOf (Ljava/lang/String;)Ldev/kord/voice/SpeakingFlag; - public fun values ()[Ldev/kord/voice/SpeakingFlag; + public synthetic fun valueOf (Ljava/lang/String;)Ldev/kord/voice/SpeakingFlag; + public synthetic fun values ()[Ldev/kord/voice/SpeakingFlag; } public final class dev/kord/voice/SpeakingFlag$Microphone : dev/kord/voice/SpeakingFlag { @@ -306,7 +304,7 @@ public final class dev/kord/voice/SpeakingFlags { public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/voice/SpeakingFlags; public fun equals (Ljava/lang/Object;)Z public final fun getCode ()I - public final fun getFlags ()Ljava/util/List; + public final synthetic fun getFlags ()Ljava/util/List; public final fun getValues ()Ljava/util/Set; public fun hashCode ()I public final fun minus (Ldev/kord/voice/SpeakingFlag;)Ldev/kord/voice/SpeakingFlags; @@ -321,7 +319,7 @@ public final class dev/kord/voice/SpeakingFlags$Builder { public fun (I)V public synthetic fun (IILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun build ()Ldev/kord/voice/SpeakingFlags; - public final fun flags ()Ldev/kord/voice/SpeakingFlags; + public final synthetic fun flags ()Ldev/kord/voice/SpeakingFlags; public final fun unaryMinus (Ldev/kord/voice/SpeakingFlag;)V public final fun unaryMinus (Ldev/kord/voice/SpeakingFlags;)V public final fun unaryPlus (Ldev/kord/voice/SpeakingFlag;)V diff --git a/voice/build/generated/ksp/main/kotlin/dev/kord/voice/EncryptionMode.kt b/voice/build/generated/ksp/main/kotlin/dev/kord/voice/EncryptionMode.kt index 8af4ff9f1a3c..62711149222a 100644 --- a/voice/build/generated/ksp/main/kotlin/dev/kord/voice/EncryptionMode.kt +++ b/voice/build/generated/ksp/main/kotlin/dev/kord/voice/EncryptionMode.kt @@ -44,7 +44,7 @@ public sealed class EncryptionMode( unused: Nothing?, ) : EncryptionMode(value) { @Deprecated( - level = DeprecationLevel.ERROR, + level = DeprecationLevel.HIDDEN, message = "Replaced by 'EncryptionMode.from()'.", replaceWith = ReplaceWith(expression = "EncryptionMode.from(value)", imports = arrayOf("dev.kord.voice.EncryptionMode")), diff --git a/voice/src/main/kotlin/SpeakingFlag.kt b/voice/src/main/kotlin/SpeakingFlag.kt index fc24599355c7..38461994cf20 100644 --- a/voice/src/main/kotlin/SpeakingFlag.kt +++ b/voice/src/main/kotlin/SpeakingFlag.kt @@ -26,7 +26,6 @@ package dev.kord.voice import kotlin.LazyThreadSafetyMode.PUBLICATION import kotlin.contracts.InvocationKind.EXACTLY_ONCE import kotlin.contracts.contract -import kotlin.enums.EnumEntries import kotlinx.serialization.KSerializer import kotlinx.serialization.Serializable import kotlinx.serialization.builtins.serializer @@ -83,7 +82,7 @@ public sealed class SpeakingFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "SpeakingFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "SpeakingFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun name(): String = this::class.simpleName!! /** @@ -91,7 +90,7 @@ public sealed class SpeakingFlag( */ @Suppress(names = arrayOf("DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "SpeakingFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "SpeakingFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) public fun ordinal(): Int = when (this) { Microphone -> 0 Soundshare -> 1 @@ -106,7 +105,7 @@ public sealed class SpeakingFlag( message = "SpeakingFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "SpeakingFlag::class.java", imports = arrayOf("dev.kord.voice.SpeakingFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun getDeclaringClass(): Class = SpeakingFlag::class.java @@ -186,7 +185,7 @@ public sealed class SpeakingFlag( */ @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "DeprecatedCallableAddReplaceWith")) @Deprecated(message = - "SpeakingFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.ERROR) + "SpeakingFlag is no longer an enum class. Deprecated without a replacement.", level = DeprecationLevel.HIDDEN) @JvmStatic public open fun valueOf(name: String): SpeakingFlag = when (name) { "Microphone" -> Microphone @@ -203,33 +202,10 @@ public sealed class SpeakingFlag( message = "SpeakingFlag is no longer an enum class.", replaceWith = ReplaceWith(expression = "SpeakingFlag.entries.toTypedArray()", imports = arrayOf("dev.kord.voice.SpeakingFlag")), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) @JvmStatic public open fun values(): Array = entries.toTypedArray() - - /** - * @suppress - */ - @Suppress(names = arrayOf("NON_FINAL_MEMBER_IN_OBJECT", "UPPER_BOUND_VIOLATED")) - @Deprecated( - level = DeprecationLevel.HIDDEN, - message = "SpeakingFlag is no longer an enum class.", - replaceWith = ReplaceWith(expression = "SpeakingFlag.entries", imports = - arrayOf("dev.kord.voice.SpeakingFlag")), - ) - @JvmStatic - public open fun getEntries(): EnumEntries = EnumEntriesList - - @Suppress(names = arrayOf("SEALED_INHERITOR_IN_DIFFERENT_MODULE", - "SEALED_INHERITOR_IN_DIFFERENT_PACKAGE", "UPPER_BOUND_VIOLATED")) - private object EnumEntriesList : EnumEntries, List by entries { - override fun equals(other: Any?): Boolean = entries == other - - override fun hashCode(): Int = entries.hashCode() - - override fun toString(): String = entries.toString() - } } } @@ -325,7 +301,7 @@ public class SpeakingFlags internal constructor( @Deprecated( message = "Renamed to 'values'.", replaceWith = ReplaceWith(expression = "this.values", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public val flags: List get() = values.toList() @@ -427,7 +403,7 @@ public class SpeakingFlags internal constructor( @Deprecated( message = "Renamed to 'build'", replaceWith = ReplaceWith(expression = "this.build()", imports = arrayOf()), - DeprecationLevel.ERROR, + DeprecationLevel.HIDDEN, ) public fun flags(): SpeakingFlags = build() }