lib/slack/endpoint/chat.rb in slack-api-1.2.2 vs lib/slack/endpoint/chat.rb in slack-api-1.2.3
- old
+ new
@@ -8,9 +8,11 @@
#
# @option options [Object] :ts
# Timestamp of the message to be deleted.
# @option options [Object] :channel
# Channel containing the message to be deleted.
+ # @option options [Object] :as_user
+ # Pass true to delete the message as the authed user. Bot users in this context are considered authed users.
# @see https://api.slack.com/methods/chat.delete
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/chat.delete.md
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/chat.delete.json
def chat_delete(options={})
throw ArgumentError.new("Required arguments :ts missing") if options[:ts].nil?