From 34aa136bf9f8b51742dfd91b0b5ba5536ef583ff Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Mon, 17 Aug 2020 22:36:23 -0400 Subject: [PATCH] fix(docs): Correctly document Chat timestamp property close #287 --- index.d.ts | 2 +- src/structures/Chat.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 260f8e5..5d2552c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -659,7 +659,7 @@ declare namespace WAWebJS { isReadOnly: boolean, /** Title of the chat */ name: string, - /** Unix timestamp for when the chat was created */ + /** Unix timestamp for when the last activity occurred */ timestamp: number, /** Amount of messages unread */ unreadCount: number, diff --git a/src/structures/Chat.js b/src/structures/Chat.js index 6f99b0c..08b7999 100644 --- a/src/structures/Chat.js +++ b/src/structures/Chat.js @@ -46,7 +46,7 @@ class Chat extends Base { this.unreadCount = data.unreadCount; /** - * Unix timestamp for when the chat was created + * Unix timestamp for when the last activity occurred * @type {number} */ this.timestamp = data.t;