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.
giftDuration
Type: number | null
The duration of the gifted subscription, in months.
Returns null if the subscription is not a gift.
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.