Method: Slack::Web::Api::Endpoints::Chat#chat_getPermalink

Defined in:
lib/slack/web/api/endpoints/chat.rb

Retrieve a permalink URL for a specific extant message

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :channel (channel)

    The ID of the conversation or channel containing the message.

  • :message_ts (Object)

    A message’s ts value, uniquely identifying it within a channel.

See Also:



72
73
74
75
76
77
# File 'lib/slack/web/api/endpoints/chat.rb', line 72

def chat_getPermalink(options = {})
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
  throw ArgumentError.new('Required arguments :message_ts missing') if options[:message_ts].nil?
  options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
  post('chat.getPermalink', options)
end