Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make a slack bot leave a channel?

Tags:

bots

slack

Bots cannot use the regular channels.leave API call, so how do I make a bot leave a channel, short of kicking it? I need it to leave a channel where I do not have rights to kick users.

like image 501
talloaktrees Avatar asked Jul 05 '16 18:07

talloaktrees


People also ask

How do I leave a locked channel in Slack?

Open the channel you'd like to leave. Tap Details in the top right. Tap Leave.

How do I remove a bot from a Slack channel?

Removing Answer Bot from a Slack channel Answer Bot can be removed from a Slack channel by a Slack administrator. In the Zendesk App channel, enter / zendesk settings to display the app settings. Click Edit existing settings, and select the channel from the dropdown list. Click Remove Answer Bot.

How do I leave a Slack channel without an announcement?

Select Settings & administration, then click Workspace settings. Scroll down to the Join & Leave Messages section and click Expand. Check or uncheck the box next to Show a message when people join or leave channels. Click Save.


1 Answers

You can /remove (or /kick) the bot. Type /kick @botname in the channel which you want the bot to leave.

like image 56
guillaume.deslandes Avatar answered Oct 31 '22 04:10

guillaume.deslandes