mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 03:29:14 +00:00
Allow a chat to be muted indefinitely (#849)
* muteChat fixed * Update src/Client.js Co-authored-by: Pedro S. Lopez <pedroslopez@me.com> * Update src/Client.js Co-authored-by: Pedro S. Lopez <pedroslopez@me.com> * date fix Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
@@ -147,10 +147,10 @@ class Chat extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* Mutes this chat until a specified date
|
||||
* @param {Date} unmuteDate Date at which the Chat will be unmuted
|
||||
* Mutes this chat forever, unless a date is specified
|
||||
* @param {?Date} unmuteDate Date at which the Chat will be unmuted, leave as is to mute forever
|
||||
*/
|
||||
async mute(unmuteDate) {
|
||||
async mute(unmuteDate = undefined) {
|
||||
return this.client.muteChat(this.id._serialized, unmuteDate);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user