Skip to content

Commit

Permalink
chore(common): polish SkuType KDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann committed Sep 14, 2024
1 parent 03ffa81 commit d4e9018
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down
9 changes: 6 additions & 3 deletions common/src/commonMain/kotlin/entity/Sku.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
),
],
)

Expand Down

0 comments on commit d4e9018

Please sign in to comment.