Update dependencies (#2180)
* Update dependencies * Fix whatsmeow API changes
This commit is contained in:
11
vendor/github.com/slack-go/slack/auth.go
generated
vendored
11
vendor/github.com/slack-go/slack/auth.go
generated
vendored
@@ -22,12 +22,14 @@ func (api *Client) authRequest(ctx context.Context, path string, values url.Valu
|
||||
return response, response.Err()
|
||||
}
|
||||
|
||||
// SendAuthRevoke will send a revocation for our token
|
||||
// SendAuthRevoke will send a revocation for our token.
|
||||
// For more details, see SendAuthRevokeContext documentation.
|
||||
func (api *Client) SendAuthRevoke(token string) (*AuthRevokeResponse, error) {
|
||||
return api.SendAuthRevokeContext(context.Background(), token)
|
||||
}
|
||||
|
||||
// SendAuthRevokeContext will send a revocation request for our token to api.revoke with context
|
||||
// SendAuthRevokeContext will send a revocation request for our token to api.revoke with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/auth.revoke
|
||||
func (api *Client) SendAuthRevokeContext(ctx context.Context, token string) (*AuthRevokeResponse, error) {
|
||||
if token == "" {
|
||||
token = api.token
|
||||
@@ -50,12 +52,13 @@ type ListTeamsParameters struct {
|
||||
}
|
||||
|
||||
// ListTeams returns all workspaces a token can access.
|
||||
// More info: https://api.slack.com/methods/admin.teams.list
|
||||
// For more details, see ListTeamsContext documentation.
|
||||
func (api *Client) ListTeams(params ListTeamsParameters) ([]Team, string, error) {
|
||||
return api.ListTeamsContext(context.Background(), params)
|
||||
}
|
||||
|
||||
// ListTeams returns all workspaces a token can access with a custom context.
|
||||
// ListTeamsContext returns all workspaces a token can access with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/auth.teams.list
|
||||
func (api *Client) ListTeamsContext(ctx context.Context, params ListTeamsParameters) ([]Team, string, error) {
|
||||
values := url.Values{
|
||||
"token": {api.token},
|
||||
|
||||
Reference in New Issue
Block a user