Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameTypeRequiredDescription
tokenStringYesAuthentication token of the user
channelIdStringYesId of the channel
membersArrayYesAn array of user ids that will be removed from the channel

Response

...

Errors

 

An object where the keys are user ids of members that were removed and the values are ChannelMemberStatus objects, indicating whether the members were successfully removed or not.

Code Block
languagejs
titleExample
linenumberstrue
{
    "members": {
        "u:<id1>": { "status": "removed" },
        "u:<id2>": { "status": "failed", "error": "UserNotFound" }
    }
}