rockymadden/slack-cli

Feature Request: Set Channel Topic

Opened this issue · 4 comments

Is it possible to set the channel topic? I can't find it if it is.
I tried
slack chat send "/topic test topic"
but that sends the literal text.

@nhorvath That behavior is currently not available but we can certainly queue it up.

I looked into it some myself... i'm not sure that users marked as "APP" in slack have access to set topic. The Slack API seems to indicate that bot users have access but workspace users don't. It appears that this tool comes in as a workspace user (at least the way I have it set up).

When I tried it it kept telling me the channel didn't exist, despite that I could post messages to that channel.

https://api.slack.com/methods/channels.setTopic

I think you (aka bot user, whoever owns the token) might have to actually be in the channel to set its topic.