slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.6k stars 1.11k forks source link

AddRemoteFile fails because of token in querystring #1295

Open jjjjeeffff opened 1 week ago

jjjjeeffff commented 1 week ago

What happened

Using AddRemoteFile gives an invalid_auth error when used with a token with proper permissions.

Expected behavior

Should add the remote file.

Steps to reproduce

Create a new app, give appropriate permissions, attempt to call AddRemoteFile.

reproducible code

...

manifest.yaml

...

Versions

The fix for this is to remove this line: https://github.com/slack-go/slack/blob/master/remotefiles.go#L114