Skip to content

Conversation

@hyrodium
Copy link
Contributor

@hyrodium hyrodium commented Sep 8, 2021

This PR fixes #11.

Screenshot:
slack-send-file2

https://api.slack.com/methods/files.upload
"""
function sendfiletoslack(filepath, message, channel, token)
HTTP.setuseragent!("HTTP.jl")
Copy link
Contributor Author

@hyrodium hyrodium Sep 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just copied this line from other functions, but was this unnecessary?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure tbh, I would have to go back and dig around

src/send.jl Outdated
end

"""
sendfiletoslack(filepath, channel, token)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I unified the naming convention with that of other functions such as sendtoslack, but I think just sendfile is fine. (And also, I thought it would be better to change sendtoslack -> sendtext, sendattachmenttoslack->sendattachment.)

@logankilpatrick logankilpatrick merged commit cf5b344 into JuliaLangSlack:main Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Any plans to support sending files?

2 participants