Skip to content
Merged
Changes from all commits
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
10 changes: 10 additions & 0 deletions content/docs/reference/templates/syntax-and-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand Down