Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions common/api/common.api
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ public final class dev/kord/common/KordConstants {
public static final field INSTANCE Ldev/kord/common/KordConstants;
public final fun getCOMMIT_HASH ()Ljava/lang/String;
public final fun getGITHUB_URL ()Ljava/lang/String;
public final synthetic fun getKORD_COMMIT_HASH ()Ljava/lang/String;
public final synthetic fun getKORD_GITHUB_URL ()Ljava/lang/String;
public final synthetic fun getKORD_SHORT_COMMIT_HASH ()Ljava/lang/String;
public final synthetic fun getKORD_VERSION ()Ljava/lang/String;
public final fun getSHORT_COMMIT_HASH ()Ljava/lang/String;
public final fun getUSER_AGENT ()Ljava/lang/String;
public final fun getVERSION ()Ljava/lang/String;
Expand Down Expand Up @@ -1569,22 +1565,6 @@ public final class dev/kord/common/entity/Choice$Companion {
public final fun serializer (Lkotlinx/serialization/KSerializer;)Lkotlinx/serialization/KSerializer;
}

public final class dev/kord/common/entity/Choice$IntChoice : dev/kord/common/entity/Choice {
public synthetic fun <init> (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;J)V
public final fun component1 ()Ljava/lang/String;
public final fun component2 ()Ldev/kord/common/entity/optional/Optional;
public final fun component3 ()J
public final fun copy (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;J)Ldev/kord/common/entity/Choice$IntChoice;
public static synthetic fun copy$default (Ldev/kord/common/entity/Choice$IntChoice;Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;JILjava/lang/Object;)Ldev/kord/common/entity/Choice$IntChoice;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun getNameLocalizations ()Ldev/kord/common/entity/optional/Optional;
public fun getValue ()Ljava/lang/Long;
public synthetic fun getValue ()Ljava/lang/Object;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}

public final class dev/kord/common/entity/Choice$IntegerChoice : dev/kord/common/entity/Choice {
public fun <init> (Ljava/lang/String;Ldev/kord/common/entity/optional/Optional;J)V
public final fun component1 ()Ljava/lang/String;
Expand Down Expand Up @@ -1872,10 +1852,6 @@ public final class dev/kord/common/entity/ComponentType$RoleSelect : dev/kord/co
public static final field INSTANCE Ldev/kord/common/entity/ComponentType$RoleSelect;
}

public final class dev/kord/common/entity/ComponentType$SelectMenu : dev/kord/common/entity/ComponentType {
public static final field INSTANCE Ldev/kord/common/entity/ComponentType$SelectMenu;
}

public final class dev/kord/common/entity/ComponentType$StringSelect : dev/kord/common/entity/ComponentType {
public static final field INSTANCE Ldev/kord/common/entity/ComponentType$StringSelect;
}
Expand Down Expand Up @@ -4709,14 +4685,6 @@ public final class dev/kord/common/entity/DiscordModal$Companion {
public final fun serializer ()Lkotlinx/serialization/KSerializer;
}

public final class dev/kord/common/entity/DiscordNull {
public static final field Companion Ldev/kord/common/entity/DiscordNull$Companion;
}

public final class dev/kord/common/entity/DiscordNull$Companion {
public final fun serializer ()Lkotlinx/serialization/KSerializer;
}

public final class dev/kord/common/entity/DiscordOnboardingPrompt {
public static final field Companion Ldev/kord/common/entity/DiscordOnboardingPrompt$Companion;
public synthetic fun <init> (ILdev/kord/common/entity/Snowflake;Ldev/kord/common/entity/OnboardingPromptType;Ljava/util/List;Ljava/lang/String;ZZZLkotlinx/serialization/internal/SerializationConstructorMarker;)V
Expand Down Expand Up @@ -6549,10 +6517,6 @@ public final class dev/kord/common/entity/GuildFeature$MemberVerificationGateEna
public static final field INSTANCE Ldev/kord/common/entity/GuildFeature$MemberVerificationGateEnabled;
}

public final class dev/kord/common/entity/GuildFeature$MonetizationEnabled : dev/kord/common/entity/GuildFeature {
public static final field INSTANCE Ldev/kord/common/entity/GuildFeature$MonetizationEnabled;
}

public final class dev/kord/common/entity/GuildFeature$MoreStickers : dev/kord/common/entity/GuildFeature {
public static final field INSTANCE Ldev/kord/common/entity/GuildFeature$MoreStickers;
}
Expand All @@ -6569,10 +6533,6 @@ public final class dev/kord/common/entity/GuildFeature$PreviewEnabled : dev/kord
public static final field INSTANCE Ldev/kord/common/entity/GuildFeature$PreviewEnabled;
}

public final class dev/kord/common/entity/GuildFeature$PrivateThreads : dev/kord/common/entity/GuildFeature {
public static final field INSTANCE Ldev/kord/common/entity/GuildFeature$PrivateThreads;
}

public final class dev/kord/common/entity/GuildFeature$RaidAlertsDisabled : dev/kord/common/entity/GuildFeature {
public static final field INSTANCE Ldev/kord/common/entity/GuildFeature$RaidAlertsDisabled;
}
Expand Down Expand Up @@ -6962,13 +6922,6 @@ public final class dev/kord/common/entity/InteractionType$Unknown : dev/kord/com
public fun <init> (I)V
}

public final class dev/kord/common/entity/InteractionsKt {
public static final synthetic fun boolean (Ldev/kord/common/entity/CommandArgument;)Z
public static final synthetic fun int (Ldev/kord/common/entity/CommandArgument;)J
public static final synthetic fun snowflake (Ldev/kord/common/entity/CommandArgument;)Ldev/kord/common/entity/Snowflake;
public static final synthetic fun string (Ldev/kord/common/entity/CommandArgument;)Ljava/lang/String;
}

public abstract class dev/kord/common/entity/InviteTargetType {
public static final field Companion Ldev/kord/common/entity/InviteTargetType$Companion;
public synthetic fun <init> (ILkotlin/jvm/internal/DefaultConstructorMarker;)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ package dev.kord.common.entity

import kotlin.Any
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.DeprecationLevel
import kotlin.Int
import kotlin.LazyThreadSafetyMode.PUBLICATION
import kotlin.ReplaceWith
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
Expand Down Expand Up @@ -90,17 +87,6 @@ public sealed class ComponentType(
*/
public object ChannelSelect : ComponentType(8)

/**
* A select menu for picking from choices.
*/
@Deprecated(
level = DeprecationLevel.HIDDEN,
message = "Renamed by discord",
replaceWith = ReplaceWith(expression = "StringSelect", imports =
arrayOf("dev.kord.common.entity.ComponentType.StringSelect")),
)
public object SelectMenu : ComponentType(3)

internal object Serializer : KSerializer<ComponentType> {
public override val descriptor: SerialDescriptor =
PrimitiveSerialDescriptor("dev.kord.common.entity.ComponentType", PrimitiveKind.INT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ package dev.kord.common.entity

import kotlin.Any
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.DeprecationLevel
import kotlin.Int
import kotlin.LazyThreadSafetyMode.PUBLICATION
import kotlin.ReplaceWith
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
Expand Down Expand Up @@ -122,17 +119,6 @@ public sealed class GuildFeature(
*/
public object MemberVerificationGateEnabled : GuildFeature("MEMBER_VERIFICATION_GATE_ENABLED")

/**
* Guild has enabled monetization.
*/
@Deprecated(
level = DeprecationLevel.HIDDEN,
message = "Replaced by CreatorMonetizableProvisional.",
replaceWith = ReplaceWith(expression = "GuildFeature.CreatorMonetizableProvisional", imports
= arrayOf("dev.kord.common.entitiy.GuildFeature")),
)
public object MonetizationEnabled : GuildFeature("MONETIZATION_ENABLED")

/**
* Guild has increased custom sticker slots.
*/
Expand All @@ -153,15 +139,6 @@ public sealed class GuildFeature(
*/
public object PreviewEnabled : GuildFeature("PREVIEW_ENABLED")

/**
* Guild has access to create private threads
*/
@Deprecated(
level = DeprecationLevel.HIDDEN,
message = "Creating a private thread no longer requires the server to be boosted.",
)
public object PrivateThreads : GuildFeature("PRIVATE_THREADS")

/**
* Guild has disabled alerts for join raids in the configured safety alerts channel.
*/
Expand Down Expand Up @@ -232,12 +209,10 @@ public sealed class GuildFeature(
"INVITES_DISABLED" -> InvitesDisabled
"INVITE_SPLASH" -> InviteSplash
"MEMBER_VERIFICATION_GATE_ENABLED" -> MemberVerificationGateEnabled
"MONETIZATION_ENABLED" -> @Suppress("DEPRECATION_ERROR") MonetizationEnabled
"MORE_STICKERS" -> MoreStickers
"NEWS" -> News
"PARTNERED" -> Partnered
"PREVIEW_ENABLED" -> PreviewEnabled
"PRIVATE_THREADS" -> @Suppress("DEPRECATION_ERROR") PrivateThreads
"RAID_ALERTS_DISABLED" -> RaidAlertsDisabled
"ROLE_ICONS" -> RoleIcons
"ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE" -> RoleSubscriptionsAvailableForPurchase
Expand Down Expand Up @@ -271,12 +246,10 @@ public sealed class GuildFeature(
InvitesDisabled,
InviteSplash,
MemberVerificationGateEnabled,
@Suppress("DEPRECATION_ERROR") MonetizationEnabled,
MoreStickers,
News,
Partnered,
PreviewEnabled,
@Suppress("DEPRECATION_ERROR") PrivateThreads,
RaidAlertsDisabled,
RoleIcons,
RoleSubscriptionsAvailableForPurchase,
Expand Down
19 changes: 0 additions & 19 deletions common/src/commonMain/kotlin/KordConstants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

package dev.kord.common

import dev.kord.common.annotation.KordExperimental
import kotlin.DeprecationLevel.HIDDEN

public object KordConstants {

/** Kord's version. */
Expand All @@ -22,20 +19,4 @@ public object KordConstants {

/** Kord's value for the [User Agent header](https://discord.com/developers/docs/reference#user-agent). */
public val USER_AGENT: String = "DiscordBot ($GITHUB_URL, $VERSION)"

@Deprecated("Renamed to 'VERSION'.", ReplaceWith("KordConstants.VERSION"), level = HIDDEN)
@KordExperimental
public val KORD_VERSION: String get() = VERSION

@Deprecated("Renamed to 'COMMIT_HASH'.", ReplaceWith("KordConstants.COMMIT_HASH"), level = HIDDEN)
@KordExperimental
public val KORD_COMMIT_HASH: String get() = COMMIT_HASH

@Deprecated("Renamed to 'SHORT_COMMIT_HASH'.", ReplaceWith("KordConstants.SHORT_COMMIT_HASH"), level = HIDDEN)
@KordExperimental
public val KORD_SHORT_COMMIT_HASH: String get() = SHORT_COMMIT_HASH

@Deprecated("Renamed to 'GITHUB_URL'.", ReplaceWith("KordConstants.GITHUB_URL"), level = HIDDEN)
@KordExperimental
public val KORD_GITHUB_URL: String get() = GITHUB_URL
}
8 changes: 0 additions & 8 deletions common/src/commonMain/kotlin/entity/DiscordComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
Entry("RoleSelect", intValue = 6, kDoc = "Select menu for roles."),
Entry("MentionableSelect", intValue = 7, kDoc = "Select menu for mentionables (users and roles)."),
Entry("ChannelSelect", intValue = 8, kDoc = "Select menu for channels."),
Entry(
"SelectMenu", intValue = 3, kDoc = "A select menu for picking from choices.",
deprecated = Deprecated(
"Renamed by discord",
ReplaceWith("StringSelect", "dev.kord.common.entity.ComponentType.StringSelect"),
DeprecationLevel.HIDDEN
),
),
],
)

Expand Down
15 changes: 0 additions & 15 deletions common/src/commonMain/kotlin/entity/DiscordGuild.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,27 +115,13 @@
"MemberVerificationGateEnabled", stringValue = "MEMBER_VERIFICATION_GATE_ENABLED",
kDoc = "Guild has enabled Membership Screening.",
),
Entry(
"MonetizationEnabled", stringValue = "MONETIZATION_ENABLED", kDoc = "Guild has enabled monetization.",
deprecated = Deprecated(
"Replaced by CreatorMonetizableProvisional.",
ReplaceWith("GuildFeature.CreatorMonetizableProvisional", "dev.kord.common.entitiy.GuildFeature"),
level = HIDDEN,
),
),
Entry("MoreStickers", stringValue = "MORE_STICKERS", kDoc = "Guild has increased custom sticker slots."),
Entry("News", stringValue = "NEWS", kDoc = "Guild has access to create announcement channels."),
Entry("Partnered", stringValue = "PARTNERED", kDoc = "Guild is partnered."),
Entry(
"PreviewEnabled", stringValue = "PREVIEW_ENABLED",
kDoc = "Guild can be previewed before joining via Membership Screening or the directory.",
),
Entry(
"PrivateThreads", stringValue = "PRIVATE_THREADS", kDoc = "Guild has access to create private threads",
deprecated = Deprecated(
"Creating a private thread no longer requires the server to be boosted.", level = HIDDEN,
),
),
Entry(
"RaidAlertsDisabled", stringValue = "RAID_ALERTS_DISABLED",
kDoc = "Guild has disabled alerts for join raids in the configured safety alerts channel.",
Expand Down Expand Up @@ -184,7 +170,6 @@ import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import kotlin.DeprecationLevel.HIDDEN

/**
* A partial representation of a [DiscordGuild] that may be [unavailable].
Expand Down
40 changes: 0 additions & 40 deletions common/src/commonMain/kotlin/entity/DiscordNull.kt

This file was deleted.

Loading