mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix groupSettingChange read me (#589)
This commit is contained in:
@@ -502,9 +502,9 @@ Of course, replace ``` xyz ``` with an actual ID.
|
|||||||
// only allow admins to send messages
|
// only allow admins to send messages
|
||||||
await conn.groupSettingChange ("abcd-xyz@g.us", GroupSettingChange.messageSend, true)
|
await conn.groupSettingChange ("abcd-xyz@g.us", GroupSettingChange.messageSend, true)
|
||||||
// allow everyone to modify the group's settings -- like display picture etc.
|
// allow everyone to modify the group's settings -- like display picture etc.
|
||||||
await conn.groupSettingChange ("abcd-xyz@g.us", GroupSettingChange.settingChange, false)
|
await conn.groupSettingChange ("abcd-xyz@g.us", GroupSettingChange.settingsChange, false)
|
||||||
// only allow admins to modify the group's settings
|
// only allow admins to modify the group's settings
|
||||||
await conn.groupSettingChange ("abcd-xyz@g.us", GroupSettingChange.settingChange, true)
|
await conn.groupSettingChange ("abcd-xyz@g.us", GroupSettingChange.settingsChange, true)
|
||||||
```
|
```
|
||||||
- To leave a group
|
- To leave a group
|
||||||
``` ts
|
``` ts
|
||||||
|
|||||||
Reference in New Issue
Block a user