문제

I don't see it in the documentation, but I was curious if anyone knew of a way within slack app to create a channel programmatically.

Here was my first attempt via slash commands via slackbot, but no success.

curl --data "/open test" https://xxxxxxx.slack.com/services/hooks/slackbot\?token\=xxxxxxxxx\&channel\=%23general
도움이 되었습니까?

해결책 2

You can create channels via the API using the channels.join method: https://api.slack.com/methods/channels.join.

This method is used to join a channel. If the channel does not exist, it is created.

Hope that helps!

다른 팁

You can also create new channels directly with the API method channels.create.

See the documentation for more details

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top