Class: OutgoingBanchoMessage

OutgoingBanchoMessage

Message to be sent later to a BanchoChannel or BanchoUser


new OutgoingBanchoMessage(banchojs, recipient, message)

Creates an instance of OutgoingBanchoMessage.

Parameters:
Name Type Description
banchojs BanchoClient
recipient BanchoUser | BanchoChannel
message string
Properties:
Name Type Description
banchojs BanchoClient
recipient BanchoUser | BanchoChannel
message string
isPublic boolean

If target is considered public by Bancho. true if recipient is a channel and not a multiplayer channel

Source:

Methods


send()

Sends the prepared message to the recipient

Source:
Throws:

If recipient isn't a valid type or if we're offline

Type
Error
Returns:

Resolves when message is sent (rate-limiting)

Type
Promise.<null>