{
"desc": "Invites a user to a channel.",
"args": {
"channel": {
"type" : "channel",
"required" : true,
"desc" : "Channel to invite user to."
},
"user": {
"type" : "user",
"required" : true,
"desc" : "User to invite to channel."
}
},
"errors": {
"channel_not_found" : "Value passed for `channel` was invalid.",
"user_not_found": "Value passed for `user` was invalid.",
"cant_invite_self" : "Authenticated user cannot invite themselves to a channel.",
"not_in_channel": "Authenticated user is not in the channel.",
"already_in_channel": "Invited user is already in the channel.",
"is_archived" : "Channel has been archived.",
"cant_invite" : "User cannot be invited to this channel."
}
}