summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/slack-go/slack/info.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/slack-go/slack/info.go')
-rw-r--r--vendor/github.com/slack-go/slack/info.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/github.com/slack-go/slack/info.go b/vendor/github.com/slack-go/slack/info.go
index ec706240..16fa667b 100644
--- a/vendor/github.com/slack-go/slack/info.go
+++ b/vendor/github.com/slack-go/slack/info.go
@@ -321,10 +321,9 @@ type UserPrefs struct {
}
func (api *Client) GetUserPrefs() (*UserPrefsCarrier, error) {
- values := url.Values{"token": {api.token}}
response := UserPrefsCarrier{}
- err := api.getMethod(context.Background(), "users.prefs.get", values, &response)
+ err := api.getMethod(context.Background(), "users.prefs.get", api.token, url.Values{}, &response)
if err != nil {
return nil, err
}