diff --git a/core/src/commonMain/kotlin/entity/monetization/Entitlement.kt b/core/src/commonMain/kotlin/entity/monetization/Entitlement.kt index 49b27b674520..f933a0844f40 100644 --- a/core/src/commonMain/kotlin/entity/monetization/Entitlement.kt +++ b/core/src/commonMain/kotlin/entity/monetization/Entitlement.kt @@ -97,6 +97,15 @@ public class Entitlement( public val isConsumed: Boolean? get() = data.consumed.value + /** + * For One-Time Purchase consumable [Sku]s, marks this entitlement for the [user] as [consumed][isConsumed]. + * + * @throws RestRequestException if something went wrong during the request. + */ + public suspend fun consume() { + kord.rest.entitlement.consumeEntitlement(applicationId, id) + } + /** * Requests to delete this currently active test entitlement. * @@ -111,15 +120,6 @@ public class Entitlement( kord.rest.entitlement.deleteTestEntitlement(applicationId, id) } - /** - * For One-Time Purchase consumable [Sku]s, marks this entitlement for the [user] as [consumed][isConsumed]. - * - * @throws RestRequestException if something went wrong during the request. - */ - public suspend fun consume() { - kord.rest.entitlement.consumeEntitlement(applicationId, id) - } - override fun equals(other: Any?): Boolean = other is Entitlement && this.id == other.id && this.applicationId == other.applicationId