Method: Slack::Endpoint::Channels#channels_mark

Defined in:
lib/slack/endpoint/channels.rb

#channels_mark(options = {}) ⇒ Object

Sets the read cursor in a channel.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :channel (Object)

    Channel to set reading cursor in.

  • :ts (Object)

    Timestamp of the most recently seen message.

See Also:



160
161
162
163
164
# File 'lib/slack/endpoint/channels.rb', line 160

def channels_mark(options={})
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
  throw ArgumentError.new("Required arguments :ts missing") if options[:ts].nil?
  post("channels.mark", options)
end