diff --git a/content/docs/reference/templates/syntax-and-data.md b/content/docs/reference/templates/syntax-and-data.md index 371afd1..c7003a9 100644 --- a/content/docs/reference/templates/syntax-and-data.md +++ b/content/docs/reference/templates/syntax-and-data.md @@ -274,6 +274,7 @@ Interaction functions are covered [here](/docs/reference/templates/functions#int | .Message.TTS | Whether the message is text-to-speech. \* | | .Message.Type | The [type](https://discord.com/developers/docs/resources/message#message-object-message-types) of the message. | | .Message.WebhookID | If the message is generated by a webhook, this is the webhook's id | +| .Message.RoleSubscriptionData | Data of the role subscription purchase or renewal that prompted this message. Only set on messages of type 25 (`ROLE_SUBSCRIPTION_PURCHASE`). | [sticker items]: https://discord.com/developers/docs/resources/sticker#sticker-item-object-sticker-item-structure @@ -290,6 +291,15 @@ Interaction functions are covered [here](/docs/reference/templates/functions#int [Message functions documentation](functions#message). +#### RoleSubscriptionData + +| **Field** | **Description** | +|--------------------------------|------------------------------------------------------------------------| +| .RoleSubscriptionListingID | The ID of the SKU and listing that the user is subscribed to. | +| .TierName | The name of the tier that the user is subscribed to. | +| .TotalMonthsSubscribed | The cumulative number of months that the user has been subscribed for. | +| .IsRenewal | Whether this notification is for a renewal rather than a new purchase. | + ### Reaction This is available and part of the dot when reaction trigger type is used.