new OutgoingBanchoMessage(banchojs, recipient, message)
Creates an instance of OutgoingBanchoMessage.
Parameters:
Name | Type | Description |
---|---|---|
banchojs |
BanchoClient | |
recipient |
BanchoUser | BanchoChannel | |
message |
string |
- Source:
Properties:
Name | Type | Description |
---|---|---|
banchojs |
BanchoClient | |
recipient |
BanchoUser | BanchoChannel | |
message |
string |
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>