Versions Compared

Key

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

...

The response object has the following attributes:

NameTypeDescription
idStringIdentifier for the channel
membersObjectAn object whose keys are user ids of the members who were added and values are ChannelMemberStatus objects, indicating whether the addition was successful or not.

Here's an example objectresponse:

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