Used to indicate the status of adding or removing a user from a channel.

Object Attributes

statusStringCan be either "added", "removed" or "failed"

If the user couldn't be added or removed, the error can be one of the following

  • UserNotFound – no user with the given id could be found
  • UserNotFromSameTeam – user is not part of the same team where the channel is being created
  • UserRestricted – user cannot be added to channel due to certain restrictions
  • InternalServerError – some other error prevented the user from being added to the channel