From cbf8fb7cf5b7c7c36ea529e9116c5965ee50a97e Mon Sep 17 00:00:00 2001 From: Leonardo Almeida Date: Sun, 27 Sep 2020 20:11:08 -0300 Subject: [PATCH] feat: chat mute expiration timestamp (#351) add chat.muteExpiration to indicate when the mute expires Co-authored-by: Pedro S. Lopez --- src/structures/Chat.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/structures/Chat.js b/src/structures/Chat.js index d3174c7..214c43e 100644 --- a/src/structures/Chat.js +++ b/src/structures/Chat.js @@ -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); }