Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/resources/Entitlement.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ Refer to the [Monetization Overview](#DOCS_MONETIZATION_OVERVIEW) for more infor

###### Entitlement Structure

| Field | Type | Description |
|----------------|-------------------|---------------------------------------------------------------------------------------------|
| id | snowflake | ID of the entitlement |
| sku_id | snowflake | ID of the SKU |
| application_id | snowflake | ID of the parent application |
| user_id? | snowflake | ID of the user that is granted access to the entitlement's sku |
| type | integer | [Type of entitlement](#DOCS_RESOURCES_ENTITLEMENT/entitlement-object-entitlement-types) |
| deleted | boolean | Entitlement was deleted |
| starts_at? | ISO8601 timestamp | Start date at which the entitlement is valid. Not present when using test entitlements. |
| ends_at? | ISO8601 timestamp | Date at which the entitlement is no longer valid. Not present when using test entitlements. |
| guild_id? | snowflake | ID of the guild that is granted access to the entitlement's sku |
| consumed? | boolean | For consumable items, whether or not the entitlement has been consumed |
| Field | Type | Description |
|----------------|--------------------|---------------------------------------------------------------------------------------------|
| id | snowflake | ID of the entitlement |
| sku_id | snowflake | ID of the SKU |
| application_id | snowflake | ID of the parent application |
| user_id? | snowflake | ID of the user that is granted access to the entitlement's sku |
| type | integer | [Type of entitlement](#DOCS_RESOURCES_ENTITLEMENT/entitlement-object-entitlement-types) |
| deleted | boolean | Entitlement was deleted |
| starts_at | ?ISO8601 timestamp | Start date at which the entitlement is valid. Not present when using test entitlements. |
| ends_at | ?ISO8601 timestamp | Date at which the entitlement is no longer valid. Not present when using test entitlements. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not present when using test entitlements.

I believe this should be amended if this is always present, or null, or otherwise?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, thank you! We should have updated these for the entitlement migration but they were missed.

| guild_id? | snowflake | ID of the guild that is granted access to the entitlement's sku |
| consumed? | boolean | For consumable items, whether or not the entitlement has been consumed |

###### Entitlement Example

Expand Down