Class: BanchoMessage

BanchoMessage

Bancho incoming message


<abstract> new BanchoMessage(user, message, self)

Creates an instance of Message.

Parameters:
Name Type Description
user BanchoUser

User the message was sent by

message string

Message body

self boolean

Set to true if this message was sent by this instance of bancho.js

Properties:
Name Type Description
user BanchoUser

User the message was sent by

message string

Message body

self boolean

Set to true if this message was sent by this instance of bancho.js

Source:

Members


content

The content of this message

Source:

Methods


getAction()

Tries to parse this message as an ACTION (/me message).

Source:
Returns:
Type
string