diff --git a/index.d.ts b/index.d.ts index ae31dc4..de9b781 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1717,6 +1717,8 @@ declare namespace WAWebJS { lastMessage: Message, /** Indicates if the Chat is pinned */ pinned: boolean, + /** Indicates if the Chat is locked */ + isLocked: boolean, /** Archives this chat */ archive: () => Promise, diff --git a/src/structures/Chat.js b/src/structures/Chat.js index 93d9a0c..9cd7679 100644 --- a/src/structures/Chat.js +++ b/src/structures/Chat.js @@ -63,6 +63,12 @@ class Chat extends Base { */ this.pinned = !!data.pin; + /** + * Indicates if the Chat is locked + * @type {boolean} + */ + this.isLocked = data.isLocked; + /** * Indicates if the chat is muted or not * @type {boolean}