AI Integration Quick Reference
AI Integration Quick Reference
Kick a Group Member
The Admin or Moderator of a group can kick a member out of the group using thekickGroupMember() method.
- Java
- Kotlin
kickGroupMember() takes following parameters:
The kicked user will be no longer part of the group and can not perform any actions in the group, but the kicked user can rejoin the group.
Ban a Group Member
The Admin or Moderator of the group can ban a member from the group using thebanGroupMember() method.
- Java
- Kotlin
banGroupMember() method takes the following parameters:
The banned user will be no longer part of the group and can not perform any actions in the group. A banned user cannot rejoin the group same group without being unbanned.
Unban a Banned Group Member from a Group
Only Admin or Moderators of the group can unban a previously banned member from the group using theunbanGroupMember() method.
- Java
- Kotlin
unbanGroupMember() method takes the following parameters
The unbanned user can now rejoin the group.
Get List of Banned Members for a Group
UseBannedGroupMembersRequestBuilder with the group GUID to fetch banned members.
Set Limit
Set the number of banned members to fetch per request.- Java
- Kotlin
Set Search Keyword
Filter banned members by a search string.- Java
- Kotlin
Fetch Banned Members
After configuring the builder, callbuild() then fetchNext() to retrieve banned members.
- Java
- Kotlin
Real-Time Group Member Kicked/Banned Events
When a member is kicked, banned, or unbanned, group members receive real-time events via theGroupListener class. The callbacks provide an Action object, the affected User, the acting User, and the Group.
- Java
- Kotlin
Missed Group Member Kicked/Banned Events
When fetching message history, kick/ban/unban actions appear asAction messages with these fields:
action-kickedactionBy-Userobject containing the details of the user who has kicked the memberactionOn-Userobject containing the details of the member that has been kickedactionFor-Groupobject containing the details of the Group from which the member was kicked
Action class-
action-bannedactionBy-Userobject containing the details of the user who has banned the memberactionOn-Userobject containing the details of the member that has been bannedactionFor-Groupobject containing the details of the Group from which the member was banned
Action class-
action-unbannedactionBy-Userobject containing the details of the user who has unbanned the memberactionOn-Userobject containing the details of the member that has been unbannedactionFor-Groupobject containing the details of the Group from which the member was unbanned
Next Steps
Add Members
Add new members to groups
Change Member Scope
Update member roles and permissions
Retrieve Members
Fetch list of group members
Group Listeners
Handle real-time group events