-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for channel and channel_id, do not require channel. #540
Conversation
Pull Request Test Coverage Report for Build 13217136744Details
💛 - Coveralls |
3472c48
to
98e515a
Compare
06bf4a5
to
bf2f795
Compare
conversations_id(channel: channel)['channel']['id'] | ||
end.uniq.join(',') | ||
elsif params[:channel] | ||
complete_upload_request_params[:channel] = conversations_id( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be :channel_id instead of :channel? I don't see channel as one of the available arguments in https://api.slack.com/methods/files.completeUploadExternal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are right. I thought I did test it in https://github.com/slack-ruby/slack-ruby-client/blob/master/examples/files_upload_v2/files_upload_v2.rb#L20 but maybe I missed the fact that it wasn't posting to #general after all? Care to help fix, with a test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #548, releasing as 2.5.2.
Closes #539.
cc: @gregsaab