Get the list of members in a chat room.
Whether the user is a guest
for pagination, default value: 100.
Whether to only query online members. This parameter is only valid when guest = false
Start time for pagination; query the list of members after this time in reverse order
updateTime
of the last member of the last pagecallback
Get the members of a chat room by tag
for pagination, default value: 100.
Tag. Get the list of members with the tag.
Start time for pagination; query the list of members after this time in reverse order
enterTime
of the last member of the last pageGet the member information in a chat room. Get up to 20 accounts each time
Remove a member from the chat room.
removed account
Custom information It is recommended to use JSON
format. For data other than JSON
format, the web client will receive the data but will be ignored by other clients.
Add a member to the blocklist
Account to be assigned role
Extension field, the value of attach.custom
in the notifications.
true
: to assign role, false
: unassign role
callback for the result
There are 6 types of roles in the chat room:
Account to be assigned role
Extension field, the value of attach.custom
in the notifications.
true
: to assign role, false
: unassign role
Level, default value: 0
callback for the result
Add a member to the list of muted members
Account to be assigned role
Extension field, the value of attach.custom
in the notifications.
true
: to assign role, false
: unassign role
callback for the result
Grant the membership to a user. Members in the chat room will receive a notification message whose attach.type is one of the following:
There are 6 types of roles in the chat room:
Account to be assigned role
Extension field, the value of attach.custom
in the notifications.
Role to be assigned. If the member belongs to none of the following roles, set the role to regular member.
'manager'
'common'
'black'
'mute'
true
: to assign role, false
: unassign role
callback for the result
There are 6 types of roles in the chat room:
Account to be assigned role
Extension field, the value of attach.custom
in the notifications.
true
: to assign role, false
: unassign role
callback for the result
Temporarily mute a member in a chat room. If needNotify === true, the members will receive the notification of attach.type === addTempMute
Account
extension field of notifications
Mute duration in seconds. If the value is set to 0, a member is unmuted
Whether a notification is required.
callback
Update coordinates
Update the profile of the current user in a chat room
Temporarily mute a member based on the tag. If needNotify === true, the members will receive the notification of attach.type === addTempMuteTag
extension field of notifications
Mute duration in seconds. If the value is set to 0, a member is unmuted
Whether a notification is required.
The target tag of the broadcast message, the default value is options.tag
Mute members with a specified tag
callback
Query the number of online users with a specified tag