Files
sbox-public/engine/Sandbox.Engine/Platform/Stream/StreamChatMessage.cs
Garry Newman 62feec4b64 Twitch Api (#5016)
Engine: reworks Twitch IRC parsing/client + Streamer event surface (viewers roster, chat/sub/gift/raid messages) and removes older/broken Twitch API features.

Menu/Editor: adds service linking/stream-connect UI (new Services modal; pause/game modal + editor title button) gated by a project setting.

Services/utilities: introduces helper APIs for linking/listing services; adds unit tests for the IRC parser and subscription tier parsing.
2026-06-06 21:46:13 +01:00

38 lines
905 B
C#

namespace Sandbox;
public static partial class Streamer
{
public struct ChatMessage
{
/// <summary>
/// The viewer who sent the message. Their display name, color and badges live here.
/// </summary>
public Viewer Viewer { get; internal set; }
/// <summary>
/// The message text.
/// </summary>
public string Message { get; internal set; }
/// <summary>
/// The channel the message was sent in.
/// </summary>
public string Channel { get; internal set; }
/// <summary>
/// Bits cheered with this message, or 0 if it wasn't a cheer.
/// </summary>
public int Bits { get; internal set; }
/// <summary>
/// Whether this is the viewer's first ever message in this chat.
/// </summary>
public bool IsFirstMessage { get; internal set; }
/// <summary>
/// When we received the message.
/// </summary>
public DateTimeOffset Time { get; internal set; }
}
}