slack-ruby/slack-ruby-client

View on GitHub
bin/commands/conversations_externalInvitePermissions.rb

Summary

Maintainability
A
1 hr
Test Coverage
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Cli
    class App
      desc 'ConversationsExternalinvitepermissions methods.'
      command 'conversations_externalInvitePermissions' do |g|
        g.desc "Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'."
        g.long_desc %( Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'. )
        g.command 'set' do |c|
          c.flag 'action', desc: 'Type of action to be taken: upgrade or downgrade.'
          c.flag 'channel', desc: 'The channel ID to change external invite permissions for.'
          c.flag 'target_team', desc: 'The encoded team ID of the target team.  Must be in the specified channel.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.conversations_externalInvitePermissions_set(options))
          end
        end
      end
    end
  end
end