lib/slack/endpoint/emoji.rb in slack-api-1.1.6 vs lib/slack/endpoint/emoji.rb in slack-api-1.2.0
- old
+ new
@@ -8,9 +8,10 @@
#
# @see https://api.slack.com/methods/emoji.list
# @see https://github.com/slackhq/slack-api-docs/blob/master/methods/emoji.list.md
# @see https://github.com/slackhq/slack-api-docs/blob/master/methods/emoji.list.json
def emoji_list(options={})
+ options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
post("emoji.list", options)
end
end
end