From 9e0fe29218cdf84da84f904ad2d2a100c4ce3ff0 Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Fri, 6 Feb 2026 21:42:51 -0300 Subject: [PATCH] New Chat property isLocked (#5798) * New property isLocked * New property isLocked --- index.d.ts | 2 ++ src/structures/Chat.js | 6 ++++++ 2 files changed, 8 insertions(+) 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}