Message
- TypeScript
- C#
type MessagePayload = {
id: string
timestamp: number
sender?: AudiencePayload
content: StringContentPayload
color?: string
emotes: EmotePayload[]
}
struct MessagePayload
{
public string Id;
public int Timestamp;
public AudiencePayload? Sender;
public StringContentPayload Content;
public string? Color;
public EmotePayload[] Emotes;
}
This data is sent when a message is sent by any audience in a channel.
caution
Some streaming platforms might allow anonymous messages. In this case, the sender
field will not be present.