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:
parent
81fb154a9f
commit
81fd090e36
1 changed files with 58 additions and 49 deletions
16
index.d.ts
vendored
16
index.d.ts
vendored
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue