Streamerclass

objectStreamer
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Streamer

Methods5

Showing 5 methods

public static void BanUser(string username, string reason, int duration = 0)PUBLICSTATIC

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)

ParameterTypeDescription
usernamestring
reasonstring
duration = 0int
Returns:void

public static void ClearChat()PUBLICSTATIC

Clear your own chat

Returns:void

public static System.Threading.Tasks.Task`1<Sandbox.StreamUser> GetUser(string username = null)PUBLICSTATIC

Get user information. If no username is specified, the user returned is ourself

ParameterTypeDescription
username = nullstring
Returns:Task<StreamUser>

public static void SendMessage(string message)PUBLICSTATIC

Send a message to chat, optionally specify channel you want to send the message, otherwise it is sent to your own chat

ParameterTypeDescription
messagestring
Returns:void

public static void UnbanUser(string username)PUBLICSTATIC

Unban user from your chat by username (Note: You have to be in your chat for this to work)

ParameterTypeDescription
usernamestring
Returns:void

Properties9

Showing 9 properties

public static int Sandbox.Streamer.Delay { get; set; }PUBLICSTATICGETSET

Set the delay of your stream

Returns:int

public static string Sandbox.Streamer.Game { get; set; }PUBLICSTATICGETSET

Set the game you're playing by game id

Returns:string

public static bool Sandbox.Streamer.IsActive { get; set; }PUBLICSTATICGETSET

Are we connected to a service

Returns:bool

public static string Sandbox.Streamer.Language { get; set; }PUBLICSTATICGETSET

Set the language of your stream

Returns:string

public static string Sandbox.Streamer.Title { get; set; }PUBLICSTATICGETSET

Set the title of your stream

Returns:string

public static string Sandbox.Streamer.UserId { get; set; }PUBLICSTATICGETSET

Your own user id

Returns:string

public static string Sandbox.Streamer.Username { get; set; }PUBLICSTATICGETSET

Your own username

Returns:string

public static int Sandbox.Streamer.ViewerCount { get; set; }PUBLICSTATICGETSET

Amount of concurrent viewer your stream has.

Returns:int

On this page