Superfighters Deluxe
UserMessageCallbackArgs Class Reference

User message callback arguments More...

Inheritance diagram for UserMessageCallbackArgs:

Public Member Functions

 UserMessageCallbackArgs (IUser user, string message)
 Constructor More...
 

Properties

string Command [get]
 Gets the command part of the message. "ABC" part of "/ABC Qwerty" as example. This is always upper-case. More...
 
string CommandArguments [get]
 Gets the command arguments part of the message. "Qwerty" part of the "/ABC Qwerty" as example. More...
 
bool IsCommand [get]
 Gets if this is a command by checking if the message starts with "/". More...
 
string Message [get]
 Gets the message that the user sent. More...
 
IUser User [get]
 Gets the user. More...
 

Detailed Description

User message callback arguments

Constructor & Destructor Documentation

◆ UserMessageCallbackArgs()

UserMessageCallbackArgs ( IUser  user,
string  message 
)

Constructor

Parameters
userUser
messageMessage

Property Documentation

◆ Command

string Command
get

Gets the command part of the message. "ABC" part of "/ABC Qwerty" as example. This is always upper-case.

◆ CommandArguments

string CommandArguments
get

Gets the command arguments part of the message. "Qwerty" part of the "/ABC Qwerty" as example.

◆ IsCommand

bool IsCommand
get

Gets if this is a command by checking if the message starts with "/".

◆ Message

string Message
get

Gets the message that the user sent.

◆ User

IUser User
get

Gets the user.