Kick user from channel
Removes specified user from channel
Function KickUserFromChannel(Val Token, Val Channel, Val User) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Bot token |
Channel | --channel | String | ✔ | Channel ID |
User | --user | String | ✔ | User ID |
Returns: Map Of KeyAndValue - serialized JSON response from Slack
1C:Enterprise/OneScript code example
Token = "xoxb-6965308400114-696804637...";
Channel = "C08214W5WN6";
User = "U06UABH3APP";
Result = OPI_Slack.KickUserFromChannel(Token, Channel, User);
- Bash
- CMD/Bat
oint slack KickUserFromChannel \
--token "***" \
--channel "C081VDNAU30" \
--user "U06UABH3APP"
oint slack KickUserFromChannel ^
--token "***" ^
--channel "C081VDNAU30" ^
--user "U06UABH3APP"
Result
{
"ok": true
}