You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
### 2.5.1 (Next)
2
2
3
3
*[#542](https://github.com/slack-ruby/slack-ruby-client/pull/542): Add support for ruby 3.4 - [@dblock](https://github.com/dblock).
4
+
*[#544](https://github.com/slack-ruby/slack-ruby-client/pull/544): Fix: do not resolve channel name for `chat_postMessage` - [@dblock](https://github.com/dblock).
raiseArgumentError,'At least one of :attachments, :blocks, :text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil?
Copy file name to clipboardExpand all lines: lib/slack/web/api/templates/method.erb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ module Slack
48
48
<% end %>
49
49
<% if data['group'] == 'groups' && data['args']['channel'] && !data['args']['channel']['desc'].include?('Can be an encoded ID, or a name.') %>
50
50
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
51
-
<% elsif data['args']['channel'] && !data['args']['channel']['desc'].include?('Can be an encoded ID, or a name.')%>
51
+
<% elsif data['args']['channel'] && ['Can be an encoded ID, or a name.', 'encoded ID or channel name'].none? { |desc| data['args']['channel']['desc'].include?(desc) }%>
52
52
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
0 commit comments