From d4e90181df77477d803c100f0481ca076245d313 Mon Sep 17 00:00:00 2001 From: Luca Kellermann Date: Sat, 14 Sep 2024 06:15:43 +0200 Subject: [PATCH] chore(common): polish SkuType KDoc --- .../commonMain/kotlin/dev/kord/common/entity/SkuType.kt | 6 +++--- common/src/commonMain/kotlin/entity/Sku.kt | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/SkuType.kt b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/SkuType.kt index 39b3b75f0e1..7392bf3043e 100644 --- a/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/SkuType.kt +++ b/common/build/generated/ksp/metadata/commonMain/kotlin/dev/kord/common/entity/SkuType.kt @@ -42,12 +42,12 @@ public sealed class SkuType( ) : SkuType(value) /** - * A durable, one-time purchase. + * A durable one-time purchase. */ public object Durable : SkuType(2) /** - * A consumable, one-time purchase. + * A consumable one-time purchase. */ public object Consumable : SkuType(3) @@ -57,7 +57,7 @@ public sealed class SkuType( public object Subscription : SkuType(5) /** - * System-generated group for each [Subscription] SKU created. + * System-generated group for each [Subscription][Subscription] [SKU][DiscordSku] created. */ public object SubscriptionGroup : SkuType(6) diff --git a/common/src/commonMain/kotlin/entity/Sku.kt b/common/src/commonMain/kotlin/entity/Sku.kt index 5d0f8dff854..bd952eafb75 100644 --- a/common/src/commonMain/kotlin/entity/Sku.kt +++ b/common/src/commonMain/kotlin/entity/Sku.kt @@ -2,10 +2,13 @@ INT_KORD_ENUM, name = "SkuType", docUrl = "https://discord.com/developers/docs/resources/sku#sku-object-sku-types", entries = [ - Entry("Durable", intValue = 2, kDoc = "A durable, one-time purchase."), - Entry("Consumable", intValue = 3, kDoc = "A consumable, one-time purchase."), + Entry("Durable", intValue = 2, kDoc = "A durable one-time purchase."), + Entry("Consumable", intValue = 3, kDoc = "A consumable one-time purchase."), Entry("Subscription", intValue = 5, kDoc = "Represents a recurring subscription."), - Entry("SubscriptionGroup", intValue = 6, kDoc = "System-generated group for each [Subscription] SKU created."), + Entry( + "SubscriptionGroup", intValue = 6, + kDoc = "System-generated group for each [Subscription][Subscription] [SKU][DiscordSku] created.", + ), ], )