s&box docs

public static abstract sealed class Sandbox.Streamer

Methods

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)

Parameters

  • duration: Default: 0

public static void ClearChat()

Clear your own chat

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

Parameters

  • username: Default: null

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

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)

Properties

Showing 9 properties

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

Set the delay of your stream

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

Set the game you're playing by game id

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

Are we connected to a service

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

Set the language of your stream

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

Set the title of your stream

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

Your own user id

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

Your own username

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

Amount of concurrent viewer your stream has.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Streamer

On this page