Gift
- TypeScript
- C#
type GiftPayload = {
id: string
timestamp: number
sender?: AudiencePayload
sku: SkuPayload
count: number
note?: StringContentPayload
}
struct GiftPayload
{
public string Id;
public int Timestamp;
public AudiencePayload? Sender;
public SkuPayload Sku;
public int Count;
public StringContentPayload? Note;
}
This data is sent when a gift is purchased by any audience in a channel.
caution
Some streaming platforms might allow anonymous gifts. In this case, the sender
field will not be present.