Sha256: ab828d5959eddf5a7e85dc0835d486a83e5e4631c1726b7c44e4e855373e320a

Contents?: true

Size: 1.71 KB

Versions: 6

Compression:

Stored size: 1.71 KB

Contents

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

desc 'Rtm methods.'
command 'rtm' do |g|
  g.desc 'Starts a Real Time Messaging session.'
  g.long_desc %( Starts a Real Time Messaging session. )
  g.command 'connect' do |c|
    c.flag 'batch_presence_aware', desc: 'Batch presence deliveries via subscription. Enabling changes the shape of presence_change events. See batch presence.'
    c.flag 'presence_sub', desc: 'Only deliver presence events when requested by subscription. See presence subscriptions.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.rtm_connect(options))
    end
  end

  g.desc 'Starts a Real Time Messaging session.'
  g.long_desc %( Starts a Real Time Messaging session. )
  g.command 'start' do |c|
    c.flag 'batch_presence_aware', desc: 'Batch presence deliveries via subscription. Enabling changes the shape of presence_change events. See batch presence.'
    c.flag 'include_locale', desc: 'Set this to true to receive the locale for users and channels. Defaults to false.'
    c.flag 'mpim_aware', desc: 'Returns MPIMs to the client in the API response.'
    c.flag 'no_latest', desc: 'Exclude latest timestamps for channels, groups, mpims, and ims. Automatically sets no_unreads to 1.'
    c.flag 'no_unreads', desc: 'Skip unread counts for each channel (improves performance).'
    c.flag 'presence_sub', desc: 'Only deliver presence events when requested by subscription. See presence subscriptions.'
    c.flag 'simple_latest', desc: 'Return timestamp only for latest message object of each channel (improves performance).'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.rtm_start(options))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-client-0.17.0 bin/commands/rtm.rb
slack-ruby-client-0.16.0 bin/commands/rtm.rb
slack-ruby-client-0.15.1 bin/commands/rtm.rb
slack-ruby-client-0.15.0 bin/commands/rtm.rb
slack-ruby-client-0.14.6 bin/commands/rtm.rb
slack-ruby-client-0.14.5 bin/commands/rtm.rb