Class: ChannelMessage

ChannelMessage

Message received from a Channel


new ChannelMessage(user, message, self, channel)

Creates an instance of ChannelMessage.

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

channel BanchoChannel

Channel the message was received from

Properties:
Name Type Description
channel BanchoChannel

Channel the message was received from

Source:

Extends

Members


content

The content of this message

Inherited From:
Overrides:
Source:

Methods


getAction()

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

Inherited From:
Overrides:
Source:
Returns:
Type
string