fix: Client.createGroup + GroupChat.addParticipants (#3670)

* Adjustment addParticipants

* createGroup fully refactored, fixed bugs, added creation options and updated docs

* fix: eslint fix

* refactor: GroupChat.addParticipants fully refactored

* fix: eslint fix

---------

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
BenyFilho 2025-08-01 00:43:45 -03:00 • committed by GitHub
commit 81fd090e36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
index.d.ts vendored
View file

@ -684,6 +684,22 @@ declare namespace WAWebJS {
* @default ''
*/
comment?: string
/** If true, only admins can add members to the group (false by default)
* @default false
*/
memberAddMode?: boolean,
/** If true, group admins will be required to approve anyone who wishes to join the group (false by default)
* @default false
*/
membershipApprovalMode?: boolean,
/** If true, only admins can change group group info (true by default)
* @default true
*/
isRestrict?: boolean,
/** If true, only admins can send messages (false by default)
* @default false
*/
isAnnounce?: boolean,
}
/** An object that handles the result for createGroup method */