IChatApi
Interface
Members
3
ReplyAsync
method
Sends a chat message in reply to the chat message that triggered this invocation. Falls back to a regular send if the invocation isn't a chat trigger.Task ReplyAsync(string text, CancellationToken cancellationToken = default)SendAsync
method
Sends a chat message to the broadcaster's channel as the bot.Task SendAsync(string text, CancellationToken cancellationToken = default)Subscribe
method
Opens an IChatSubscription that streams every subsequent chat message on the broadcaster's channel. Intended for long-running handlers (e.g., OnStreamOnlineAttribute) that want to react to chat over time without registering a separate OnChatMessageAttribute method.IChatSubscription Subscribe(CancellationToken cancellationToken = default)
