changeGroupMemberScope()
.
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.CometChat.SCOPE.ADMIN 2.CometChat.SCOPE.MODERATOR 3.CometChat.SCOPE.PARTICIPANT |
participant
. Only the Admin of the group can change the scope of any participant in the group.
onGroupMemberScopeChanged()
method of the GroupListener
class
Action
message. An Action
message is a sub-class of BaseMessage
class.
For the group member scope changed event, in the Action
object received, the following fields can help you get the relevant information-
action
- scopeChanged
actionOn
- User object containing the details of the user whose scope has been changedactionBy
- User object containing the details of the user who changed the scope of the memberactionFor
- Group object 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