Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
AI Integration Quick Reference
SCOPE_ADMIN- Full control over groupSCOPE_MODERATOR- Can moderate members and contentSCOPE_PARTICIPANT- Regular member (default)
Change Scope of a Group Member
UseupdateGroupMemberScope() to change a member’s role. Only group Admins can change scopes.
- Java
- Kotlin
| Parameter | Description |
|---|---|
UID | The UID of the member whose scope you would like to change |
GUID | The GUID of the group for which the member’s scope needs to be changed |
scope | the updated scope of the member. This can be either of the 3 values: 1.CometChatConstants.SCOPE_ADMIN (admin) 2.CometChatConstants.SCOPE_MODERATOR (moderator) 3.CometChatConstants.SCOPE_PARTICIPANT (participant) |
participant. Only the Admin of the group can change the scope of any participant in the group.
Real-Time Group Member Scope Changed Events
When a member’s scope changes, group members receive a real-time event inonGroupMemberScopeChanged() of the GroupListener class. The callback provides an Action object, the updating User, the updated User, and the Group.
- Java
- Kotlin
Missed Group Member Scope Changed Events
When fetching message history, scope changes appear asAction messages with these fields:
action-scopeChangedactionOn-Userobject containing the details of the user whos scope has been changedactionBy-Userobject containing the details of the user who changed the scope of the memberactionFor-Groupobject containing the details of the group in which the member scope was changedoldScope- The original scope of the membernewScope- The updated scope of the member
Next Steps
Add Members
Add new members with specific scopes
Kick Member
Remove members from groups
Transfer Ownership
Transfer group ownership to another admin
Retrieve Members
Fetch list of group members