forked from lug/matterbridge
Update vendor (#1414)
This commit is contained in:
5
vendor/github.com/slack-go/slack/users.go
generated
vendored
5
vendor/github.com/slack-go/slack/users.go
generated
vendored
@@ -644,10 +644,13 @@ type getUserProfileResponse struct {
|
||||
|
||||
// GetUserProfileContext retrieves a user's profile information with a context.
|
||||
func (api *Client) GetUserProfileContext(ctx context.Context, userID string, includeLabels bool) (*UserProfile, error) {
|
||||
values := url.Values{"token": {api.token}, "user": {userID}}
|
||||
values := url.Values{"token": {api.token}}
|
||||
if includeLabels {
|
||||
values.Add("include_labels", "true")
|
||||
}
|
||||
if userID != "" {
|
||||
values.Add("user", userID)
|
||||
}
|
||||
resp := &getUserProfileResponse{}
|
||||
|
||||
err := api.postMethod(ctx, "users.profile.get", values, &resp)
|
||||
|
Reference in New Issue
Block a user