Sha256: a4980757136ed2e6f6fe5e73ba2d24d210af557845a70b8f41e3c59b3e6ff65a

Contents?: true

Size: 629 Bytes

Versions: 5

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true
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 = {})
          raise ArgumentError, '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

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-2.3.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-2.2.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-2.1.0 lib/slack/real_time/api/typing.rb
slack-ruby-client-2.0.0 lib/slack/real_time/api/typing.rb