API Referenceglobal
SubscribeMessageclass
A viewer subscribed or resubscribed to the channel. New subs and resubs both arrive here - check `Sandbox.Streamer.SubscribeMessage.IsResub` to tell them apart.
object→SubscribeMessage
Properties7
Showing 7 properties
public int Sandbox.Streamer.SubscribeMessage.CumulativeMonths { get; set; }
Total months this viewer has been subscribed, cumulatively.
Returns:
int—public bool Sandbox.Streamer.SubscribeMessage.IsResub { get; set; }
False for a brand-new subscription, true for a resub.
Returns:
bool—public string Sandbox.Streamer.SubscribeMessage.Message { get; set; }
The optional message the viewer attached to a resub, or null.
Returns:
string—public int Sandbox.Streamer.SubscribeMessage.StreakMonths { get; set; }
Consecutive months subscribed, or 0 if the viewer chose not to share their streak.
Returns:
int—public Sandbox.Streamer.SubscriptionTier Sandbox.Streamer.SubscribeMessage.Tier { get; set; }
The subscription tier.
public System.DateTimeOffset Sandbox.Streamer.SubscribeMessage.Time { get; set; }
When we received the event.
Returns:
DateTimeOffset—No results match this filter.