From 3dc3df2f3f3b101716fe2281f657daae84f7d8a2 Mon Sep 17 00:00:00 2001 From: Luca Zeuch Date: Wed, 2 Apr 2025 15:45:39 +0200 Subject: [PATCH] reference: document .Message.RoleSubscriptionData field See botlabs-gg/yagpdb#1865. Signed-off-by: Luca Zeuch --- content/docs/reference/templates/syntax-and-data.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.