Overview
Properties
cumulativeMonths
Type: number
The cumulative amount of months the user has been subscribed for.
Returns the months if a gift sub or the cumulative months.
duration
Type: number
The duration of subscription, in months.
This refers to first-time subscriptions, auto-renewal subscriptions, re-subscriptions, or gifted subscriptions.
gifterDisplayName
Type: string | null
The display name of the user gifting the subscription.
Returns null if the subscription is not a gift.
gifterId
Type: string | null
The ID of the user gifting the subscription.
Returns null if the subscription is not a gift.
gifterName
Type: string | null
The name of the user gifting the subscription.
Returns null if the subscription is not a gift.
message
Type: PubSubChatMessage | null
The message sent with the subscription.
Returns null if the subscription is a gift subscription.
months
Type: number
The cumulative amount of months the user has been subscribed for.
Returns the months if a gift sub or the cumulative months.
streakMonths
Type: number
The streak amount of months the user has been subscribed for.
Returns 0 if a gift sub or the streaks months.