forked from slackhq/slack-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchannels.kick.json
More file actions
26 lines (24 loc) · 807 Bytes
/
Copy pathchannels.kick.json
File metadata and controls
26 lines (24 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"desc": "Removes a user from a channel.",
"args": {
"channel": {
"type" : "channel",
"required" : true,
"desc" : "Channel to remove user from."
},
"user": {
"type" : "user",
"required" : true,
"desc" : "User to remove from channel."
}
},
"errors": {
"channel_not_found" : "Value passed for `channel` was invalid.",
"user_not_found" : "Value passed for `user` was invalid.",
"cant_kick_self" : "Authenticated user can't kick themselves from a channel.",
"not_in_channel" : "User was not in the channel.",
"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.",
"restricted_action" : "A team preference prevents the authenticated user from kicking."
}
}