module Slack::RealTime::Api::Typing

Public Instance Methods

typing(options = {}) click to toggle source

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.
# File lib/slack/real_time/api/typing.rb, line 10
def typing(options = {})
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
  send_json({ type: 'typing', id: next_id }.merge(options))
end