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.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/slack-go/slack/info.go b/vendor/github.com/slack-go/slack/info.go
index 16fa667b..fde2bc98 100644
--- a/vendor/github.com/slack-go/slack/info.go
+++ b/vendor/github.com/slack-go/slack/info.go
@@ -321,9 +321,13 @@ type UserPrefs struct {
}
func (api *Client) GetUserPrefs() (*UserPrefsCarrier, error) {
+ return api.GetUserPrefsContext(context.Background())
+}
+
+func (api *Client) GetUserPrefsContext(ctx context.Context) (*UserPrefsCarrier, error) {
response := UserPrefsCarrier{}
- err := api.getMethod(context.Background(), "users.prefs.get", api.token, url.Values{}, &response)
+ err := api.getMethod(ctx, "users.prefs.get", api.token, url.Values{}, &response)
if err != nil {
return nil, err
}