Sha256: 789433b12791e801f64e0a5992bd00c2f2a4ec06ca1be7d0d39d7cb0189f4316

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

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

module Slack
  module Cli
    class App
      desc 'CallsParticipants methods.'
      command 'calls_participants' do |g|
        g.desc 'Registers new participants added to a Call.'
        g.long_desc %( Registers new participants added to a Call. )
        g.command 'add' do |c|
          c.flag 'id', desc: 'id returned by the calls.add method.'
          c.flag 'users', desc: 'The list of users to add as participants in the Call. Read more on how to specify users here.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.calls_participants_add(options))
          end
        end

        g.desc 'Registers participants removed from a Call.'
        g.long_desc %( Registers participants removed from a Call. )
        g.command 'remove' do |c|
          c.flag 'id', desc: 'id returned by the calls.add method.'
          c.flag 'users', desc: 'The list of users to remove as participants in the Call. Read more on how to specify users here.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.calls_participants_remove(options))
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 bin/commands/calls_participants.rb
slack-ruby-client-2.3.0 bin/commands/calls_participants.rb
slack-ruby-client-2.2.0 bin/commands/calls_participants.rb
slack-ruby-client-2.1.0 bin/commands/calls_participants.rb