lib/slack/web/api/templates/method.erb in slack-ruby-client-0.11.0 vs lib/slack/web/api/templates/method.erb in slack-ruby-client-0.11.1
- old
+ new
@@ -42,9 +42,12 @@
options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel]
<% end %>
<% if data['args']['user'] %>
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
<% end %>
+<% if data['undocumented'] %>
+ logger.warn('The <%= group %>.<%= name %> method is undocumented.')
+<% end %>
<% if data['args'].keys.include?('cursor') %>
if block_given?
Pagination::Cursor.new(self, :<%= group.gsub(".", "_") %>_<%= name %>, options).each do |page|
yield page
end