mrkaye97 / slackr

An R package for sending messages from R to Slack
https://matthewrkaye.com/slackr/
Other
307 stars 84 forks source link

slackr_upload() issue with oauth_token #137

Closed rkersey8208 closed 3 years ago

rkersey8208 commented 3 years ago

Following all initial directions, I ran

slackr_setup(echo = TRUE, channel = "#mychannel", incoming_webhook_url = "XXXX", bot_user_oauth_token = "xoxb-XXXX") and had no issues using functions like slackr and slackr_msg. However, when I attempted to run slackr_upload("filename", channels = "#mychannel", bot_user_oauth_token = "xoxb-XXXX"), it appeared to run fine, but with no output (no file upload) and no error.

I discovered that removing the oauth_token from the slackr_upload command fixed the issue:

slackr_upload("filename", channels = "#mychannel")