Skip to main content

Kick user from channel

Removes specified user from channel

Function KickUserFromChannel(Val Token, Val Channel, Val User) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token
Channel--channelStringChannel ID
User--userStringUser 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);
    oint slack KickUserFromChannel \
--token "***" \
--channel "C081VDNAU30" \
--user "U06UABH3APP"
Result
{
"ok": true
}