-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
Is the feature you are looking for already implemented in the library?
- I have reviewed the implemented features.
Is your "solution" already implemented in an opened pull request?
- I have reviewed the existing pull requests.
Is your feature request related to a problem? Please describe.
When working with WhatsApp Communities, moderation actions are only exposed at group level.
While it is technically possible to iterate over all groups belonging to a Community, there is no native way to perform moderation actions at Community level.
As a result, it is not possible to ban or remove a participant from a Community as a single logical entity.
Describe the solution you'd like.
Expose moderation actions at Community level.
The goal is not to simplify group iteration, but to support a proper Community-level operation, allowing a participant to be removed or banned from the Community itself.
Conceptually, this would mean removing a user from the Community entity, with WhatsApp handling the propagation to:
- the announcement group
- all linked sub-groups
For example (conceptually):
await client.banParticipantFromCommunity(communityId, participantId);This reflects how Communities work from a moderation and permission perspective, rather than a client-side workaround.
Describe an alternate solution if you have one.
At the moment, there is no real alternative solution.
Iterating over groups is already possible, but it does not replace a true Community-level moderation action.
Additional Context
This request is about exposing Community-level capabilities already present in WhatsApp.