1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-03 13:22:19 +02:00
Vitaly the Alpaca (bot) 0f4faff7ab Main build (Jenkins)
2024-10-13 15:00:04 +03:00

752 B

sidebar_position
10

Leave channel

Removes the current bot from the channel

Function LeaveChannel(Val Token, Val Channel) Export

Parameter CLI option Type Description
Token --token String Bot token
Channel --channel String Channel ID

Returns: Map Of KeyAndValue - serialized JSON response from Slack


    Token   = "xoxb-6965308400114-696804637...";
    Channel = "C07RKAL4EF7";

    Result = OPI_Slack.LeaveChannel(Token, Channel);
    
  oint slack LeaveChannel --token %token% --channel "C070VPMKN8J"

{
 "ok": true
}