class
Streamer
public static abstract sealed class Streamer Properties
| Name | Type | Description |
|---|---|---|
Username static | String | Your own username |
UserId static | String | Your own user id |
Service static | StreamService | The service type (ie "Twitch") |
IsActive static | Boolean | Are we connected to a service |
Game static | String | Set the game you're playing by game id |
Language static | String | Set the language of your stream |
Title static | String | Set the title of your stream |
Delay static | Int32 | Set the delay of your stream |
ViewerCount static | Int32 | Amount of concurrent viewer your stream has. |
Methods
static Task<StreamUser> GetUser(String username = null) Get user information. If no username is specified, the user returned is ourself
static Void SendMessage(String message) Send a message to chat, optionally specify channel you want to send the message, otherwise it is sent to your own chat
static Void ClearChat() Clear your own chat
static Void BanUser(String username, String reason, Int32 duration = 0) Ban user from your chat by username, the user will no longer be able to chat. Optionally specify the duration, a duration of zero means perm ban (Note: You have to be in your chat for this to work)
static Void UnbanUser(String username) Unban user from your chat by username (Note: You have to be in your chat for this to work)