TwitchLib 3.5.3
Loading...
Searching...
No Matches
TwitchLib.Client.Models.ChatCommand Class Reference

Object representing a command received via Twitch chat. More...

Public Member Functions

 ChatCommand (ChatMessage chatMessage)
 ChatCommand constructor. More...
 
 ChatCommand (ChatMessage chatMessage, string commandText, string argumentsAsString, List< string > argumentsAsList, char commandIdentifier)
 

Properties

List< string > ArgumentsAsList [get]
 Property representing all arguments received in a List form. More...
 
string ArgumentsAsString [get]
 Property representing all arguments received in a string form. More...
 
ChatMessage ChatMessage [get]
 Property representing the chat message that the command came in. More...
 
char CommandIdentifier [get]
 Property representing the command identifier (ie command prefix). More...
 
string CommandText [get]
 Property representing the actual command (without the command prefix). More...
 

Detailed Description

Object representing a command received via Twitch chat.

Constructor & Destructor Documentation

◆ ChatCommand() [1/2]

TwitchLib.Client.Models.ChatCommand.ChatCommand ( ChatMessage  chatMessage)

ChatCommand constructor.

Parameters
chatMessage

◆ ChatCommand() [2/2]

TwitchLib.Client.Models.ChatCommand.ChatCommand ( ChatMessage  chatMessage,
string  commandText,
string  argumentsAsString,
List< string >  argumentsAsList,
char  commandIdentifier 
)

Property Documentation

◆ ArgumentsAsList

List<string> TwitchLib.Client.Models.ChatCommand.ArgumentsAsList
get

Property representing all arguments received in a List form.

◆ ArgumentsAsString

string TwitchLib.Client.Models.ChatCommand.ArgumentsAsString
get

Property representing all arguments received in a string form.

◆ ChatMessage

ChatMessage TwitchLib.Client.Models.ChatCommand.ChatMessage
get

Property representing the chat message that the command came in.

◆ CommandIdentifier

char TwitchLib.Client.Models.ChatCommand.CommandIdentifier
get

Property representing the command identifier (ie command prefix).

◆ CommandText

string TwitchLib.Client.Models.ChatCommand.CommandText
get

Property representing the actual command (without the command prefix).


The documentation for this class was generated from the following file: