Streamerclass
Methods5
Showing 5 methods
public static void BanUser(string username, string reason, int 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)
| Parameter | Type | Description |
|---|---|---|
| username | string | — |
| reason | string | — |
| duration = 0 | int | — |
void—public static void ClearChat()
Clear your own chat
void—public static System.Threading.Tasks.Task`1<Sandbox.StreamUser> GetUser(string username = null)
Get user information. If no username is specified, the user returned is ourself
| Parameter | Type | Description |
|---|---|---|
| username = null | string | — |
public 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
| Parameter | Type | Description |
|---|---|---|
| message | string | — |
void—public static void UnbanUser(string username)
Unban user from your chat by username (Note: You have to be in your chat for this to work)
| Parameter | Type | Description |
|---|---|---|
| username | string | — |
void—No results match this filter.
Properties9
Showing 9 properties
public static int Sandbox.Streamer.Delay { get; set; }
Set the delay of your stream
int—public static string Sandbox.Streamer.Game { get; set; }
Set the game you're playing by game id
string—public static bool Sandbox.Streamer.IsActive { get; set; }
Are we connected to a service
bool—public static string Sandbox.Streamer.Language { get; set; }
Set the language of your stream
string—public static Sandbox.StreamService Sandbox.Streamer.Service { get; set; }
The service type (ie "Twitch")
public static string Sandbox.Streamer.Title { get; set; }
Set the title of your stream
string—public static string Sandbox.Streamer.UserId { get; set; }
Your own user id
string—public static string Sandbox.Streamer.Username { get; set; }
Your own username
string—public static int Sandbox.Streamer.ViewerCount { get; set; }
Amount of concurrent viewer your stream has.
int—No results match this filter.