Sha256: 50108a8017acddac85a59d2ee744a362a24fe5a133c2390d0a0064504fe814e6

Contents?: true

Size: 986 Bytes

Versions: 2

Compression:

Stored size: 986 Bytes

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

desc 'AdminConversations methods.'
command 'admin_conversations' do |g|
  g.desc 'Set the workspaces in an Enterprise grid org that connect to a channel.'
  g.long_desc %( Set the workspaces in an Enterprise grid org that connect to a channel. )
  g.command 'setTeams' do |c|
    c.flag 'channel_id', desc: 'The encoded channel_id to add or remove to workspaces.'
    c.flag 'org_channel', desc: 'True if channel has to be converted to an org channel.'
    c.flag 'target_team_ids', desc: 'A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide.'
    c.flag 'team_id', desc: 'The workspace to which the channel belongs. Omit this argument if the channel is a cross-workspace shared channel.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_conversations_setTeams(options))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-0.15.1 bin/commands/admin_conversations.rb
slack-ruby-client-0.15.0 bin/commands/admin_conversations.rb