mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 17:36:15 +00:00
Add support for one-time purchases
This commit is contained in:
36
docs/api.rst
36
docs/api.rst
@ -3506,6 +3506,14 @@ of :class:`enum.Enum`.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
|
||||
.. attribute:: durable
|
||||
|
||||
The SKU is a durable one-time purchase.
|
||||
|
||||
.. attribute:: consumable
|
||||
|
||||
The SKU is a consumable one-time purchase.
|
||||
|
||||
.. attribute:: subscription
|
||||
|
||||
The SKU is a recurring subscription.
|
||||
@ -3521,6 +3529,34 @@ of :class:`enum.Enum`.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
|
||||
.. attribute:: purchase
|
||||
|
||||
The entitlement was purchased by the user.
|
||||
|
||||
.. attribute:: premium_subscription
|
||||
|
||||
The entitlement is for a nitro subscription.
|
||||
|
||||
.. attribute:: developer_gift
|
||||
|
||||
The entitlement was gifted by the developer.
|
||||
|
||||
.. attribute:: test_mode_purchase
|
||||
|
||||
The entitlement was purchased by a developer in application test mode.
|
||||
|
||||
.. attribute:: free_purchase
|
||||
|
||||
The entitlement was granted, when the SKU was free.
|
||||
|
||||
.. attribute:: user_gift
|
||||
|
||||
The entitlement was gifted by a another user.
|
||||
|
||||
.. attribute:: premium_purchase
|
||||
|
||||
The entitlement was claimed for free by a nitro subscriber.
|
||||
|
||||
.. attribute:: application_subscription
|
||||
|
||||
The entitlement was purchased as an app subscription.
|
||||
|
Reference in New Issue
Block a user