mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 04:29:15 +00:00
feat: chat mute expiration timestamp (#351)
add chat.muteExpiration to indicate when the mute expires Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
@@ -57,6 +57,12 @@ class Chat extends Base {
|
|||||||
*/
|
*/
|
||||||
this.archived = data.archive;
|
this.archived = data.archive;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unix timestamp for when the mute expires
|
||||||
|
* @type {number}
|
||||||
|
*/
|
||||||
|
this.muteExpiration = data.muteExpiration;
|
||||||
|
|
||||||
return super._patch(data);
|
return super._patch(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user