How do I make a slack bot leave a channel?

白昼怎懂夜的黑 提交于 2020-12-02 00:08:20

问题


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.


回答1:


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




回答2:


If you are asking about Slackbot in particular, you cannot remove it from a channel (see Slack's response to this question).

If you have permission to delete Slackbot's responses, you can install this bot, which will delete Slackbot's automated responses for you.



来源:https://stackoverflow.com/questions/38209815/how-do-i-make-a-slack-bot-leave-a-channel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!