Return new message after sending

This commit is contained in:
Pedro Lopez
2020-02-01 19:34:28 -04:00
parent 2a3f404244
commit 88c56b1371
4 changed files with 44 additions and 10 deletions

View File

@@ -25,7 +25,11 @@ class Chat extends Base {
return super._patch(data);
}
sendMessage(message) {
/**
* Sends a message to this chat.
* @param {string} message
*/
async sendMessage(message) {
return this.client.sendMessage(this.id._serialized, message);
}
}