Return new message after sending
This commit is contained in:
parent
2a3f404244
commit
88c56b1371
4 changed files with 44 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue