问题
I'm trying to create a channel using the https://github.com/dblock/slack-ruby-client gem.
But it keeps on coming up with an error ":Name missing"
Can anyone give me a code snippet for creating channels with Slack please.
Dave
回答1:
Just looking at the source, you would do:
client = Slack::Web::Client.new(token: 'your_token')
client.channels_create(name: "my_channel_name")
来源:https://stackoverflow.com/questions/37657390/creating-a-channel-in-slack-using-ruby