sendMessage method

void sendMessage(
  1. String target,
  2. String text
)

Say something to a channel or a person.

client.sendMessage('#obby', 'hello there');
client.sendMessage('alice', 'a private word');

Implementation

void sendMessage(String target, String text) {
  _alive();
  command({'type': 'send_message', 'target': target, 'text': text});
}