Sha256: cdf8f3ed78f810d3ff851394fcc8f990b0c87e0ce87f8335a2baa4e679066747

Contents?: true

Size: 590 Bytes

Versions: 39

Compression:

Stored size: 590 Bytes

Contents

module Slack
  module RealTime
    module Api
      module Typing
        #
        # Send a typing indicator to indicate that the user is currently writing a message.
        #
        # @option options [channel] :channel
        #   Channel to send message to. Can be a public channel, private group or IM channel. Can be an encoded ID, or a name.
        def typing(options = {})
          throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
          send_json({ type: 'typing', id: next_id }.merge(options))
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
slack-ruby-client-bhe-0.5.5 lib/slack/real_time/api/typing.rb
slack-ruby-client-bhe-0.5.4 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.14.4 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.14.3 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.14.2 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.14.1 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.14.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.13.1 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.13.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.12.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.11.1 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.11.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.10.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.9.1 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.9.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.8.1 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.8.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.7.9 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.7.8 lib/slack/real_time/api/typing.rb
slack-ruby-client-0.7.7 lib/slack/real_time/api/typing.rb