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:
Leonardo Almeida
2020-09-27 20:11:08 -03:00
committed by GitHub
parent c7d5eb67ee
commit cbf8fb7cf5

View File

@@ -57,6 +57,12 @@ class Chat extends Base {
*/
this.archived = data.archive;
/**
* Unix timestamp for when the mute expires
* @type {number}
*/
this.muteExpiration = data.muteExpiration;
return super._patch(data);
}