mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add support for one-time purchases
This commit is contained in:
@ -2454,6 +2454,16 @@ class HTTPClient:
|
||||
),
|
||||
)
|
||||
|
||||
def consume_entitlement(self, application_id: Snowflake, entitlement_id: Snowflake) -> Response[None]:
|
||||
return self.request(
|
||||
Route(
|
||||
'POST',
|
||||
'/applications/{application_id}/entitlements/{entitlement_id}/consume',
|
||||
application_id=application_id,
|
||||
entitlement_id=entitlement_id,
|
||||
),
|
||||
)
|
||||
|
||||
def create_entitlement(
|
||||
self, application_id: Snowflake, sku_id: Snowflake, owner_id: Snowflake, owner_type: sku.EntitlementOwnerType
|
||||
) -> Response[sku.Entitlement]:
|
||||
|
Reference in New Issue
Block a user