Current section
Files
Jump to
Current section
Files
priv/docs/methods/channels.kick.json
{
"args": {
"channel": {
"desc": "Channel to remove user from.",
"required": true,
"type": "channel"
},
"user": {
"desc": "User to remove from channel.",
"required": true,
"type": "user"
}
},
"desc": "Removes a user from a channel.",
"errors": {
"cant_kick_from_general": "User cannot be removed from #general.",
"cant_kick_from_last_channel": "User cannot be removed from the last channel they're in.",
"cant_kick_self": "Authenticated user can't kick themselves from a channel.",
"channel_not_found": "Value passed for `channel` was invalid.",
"not_in_channel": "User was not in the channel.",
"restricted_action": "A team preference prevents the authenticated user from kicking.",
"user_not_found": "Value passed for `user` was invalid."
}
}