Class PubSubBitsEventData
- Assembly
- Firesplash.UnityAssets.TwitchIntegration.dll
The data contained in a Bits V1 or V2 message
[Serializable]
public class PubSubBitsEventData : PubSubEventMessageData
- Inheritance
-
PubSubBitsEventData
- Inherited Members
Properties
BadgeEntitlement
Information about a user’s new badge level, if the cheer was not anonymous and the user reached a new badge level with this cheer. Otherwise, null.
[JsonProperty("badge_entitlement")]
public BadgeEntitlement BadgeEntitlement { get; }
Property Value
BitsUsed
Number of bits used.
[JsonProperty("bits_used")]
public int BitsUsed { get; }
Property Value
ChannelId
The ID of the channel where the cheer happened
[JsonProperty("channel_id")]
public string ChannelId { get; }
Property Value
ChannelName
The name of the channel where the cheer happened
[JsonProperty("channel_name")]
public string ChannelName { get; }
Property Value
ChatMessage
Chat message sent with the cheer.
[JsonProperty("chat_message")]
public string ChatMessage { get; }
Property Value
Context
Event type associated with this use of Bits.
[JsonProperty("context")]
public string Context { get; }
Property Value
Time
Time when the Bits were used.
[JsonProperty("time")]
public DateTime Time { get; }
Property Value
TotalBitsUsed
All time total number of Bits used in the channel by this specific user.
[JsonProperty("total_bits_used")]
public int TotalBitsUsed { get; }
Property Value
UserId
The ID of the twitch user who cheered
[JsonProperty("user_id")]
public string UserId { get; }
Property Value
UserName
The login of the twitch user who cheered
[JsonProperty("user_name")]
public string UserName { get; }