Skip to content

Commit

Permalink
chore(core): update KDoc for methods of Kord
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann committed Sep 9, 2024
1 parent 104ada0 commit 0b29428
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions core/src/commonMain/kotlin/Kord.kt
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public class Kord(
rest.sku.listSkus(selfId).map { Sku(it, this) }

/**
* Requests to get a list of [Entitlement]s.
* Requests to get all [Entitlement]s for this application.
*
* @throws [RequestException] if anything went wrong during the request.
*/
Expand All @@ -398,8 +398,11 @@ public class Kord(
}

/**
* Requests to create a new [test entitlement][Entitlement] to a [Sku] with the given [skuId] for a given [ownerId]
* and [ownerType]. Discord will act as though that owner has entitlement to your premium offering.
* Requests to create a new [test entitlement][Entitlement] to a [Sku] with the given [skuId] for an owner with the
* given [ownerId] and [ownerType]. Discord will act as though that owner has entitlement to your premium offering.
*
* The returned [Entitlement] will not contain [startsAt][Entitlement.startsAt] and [endsAt][Entitlement.endsAt], as
* it's valid in perpetuity.
*
* @throws RestRequestException if something went wrong during the request.
*/
Expand All @@ -419,6 +422,9 @@ public class Kord(
* Requests to create a new [test entitlement][Entitlement] to a [Sku] with the given [skuId] for a given [user].
* Discord will act as though that user has entitlement to your premium offering.
*
* The returned [Entitlement] will not contain [startsAt][Entitlement.startsAt] and [endsAt][Entitlement.endsAt], as
* it's valid in perpetuity.
*
* @throws RestRequestException if something went wrong during the request.
*/
public suspend fun createTestEntitlement(skuId: Snowflake, user: UserBehavior): Entitlement =
Expand All @@ -428,6 +434,9 @@ public class Kord(
* Requests to create a new [test entitlement][Entitlement] to a [Sku] with the given [skuId] for a given [guild].
* Discord will act as though that guild has entitlement to your premium offering.
*
* The returned [Entitlement] will not contain [startsAt][Entitlement.startsAt] and [endsAt][Entitlement.endsAt], as
* it's valid in perpetuity.
*
* @throws RestRequestException if something went wrong during the request.
*/
public suspend fun createTestEntitlement(skuId: Snowflake, guild: GuildBehavior): Entitlement =
Expand Down

0 comments on commit 0b29428

Please sign in to comment.