module Slack::Web::Api::Endpoints::Chat

def chat_delete(options = {})

Other tags:
    See: https://github.com/dblock/slack-api-ref/blob/master/methods/chat/chat.delete.json -
    See: https://api.slack.com/methods/chat.delete -

Options Hash: (**options)
  • :as_user (Object) --
  • :channel (channel) --
  • :ts (timestamp) --
def chat_delete(options = {})
  throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil?
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
  options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel]
  post('chat.delete', options)
end