Update dependencies (#2180)
* Update dependencies * Fix whatsmeow API changes
This commit is contained in:
10
vendor/github.com/slack-go/slack/views.go
generated
vendored
10
vendor/github.com/slack-go/slack/views.go
generated
vendored
@@ -155,6 +155,7 @@ type ViewResponse struct {
|
||||
}
|
||||
|
||||
// OpenView opens a view for a user.
|
||||
// For more information see the OpenViewContext documentation.
|
||||
func (api *Client) OpenView(triggerID string, view ModalViewRequest) (*ViewResponse, error) {
|
||||
return api.OpenViewContext(context.Background(), triggerID, view)
|
||||
}
|
||||
@@ -177,6 +178,7 @@ func ValidateUniqueBlockID(view ModalViewRequest) bool {
|
||||
}
|
||||
|
||||
// OpenViewContext opens a view for a user with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/views.open
|
||||
func (api *Client) OpenViewContext(
|
||||
ctx context.Context,
|
||||
triggerID string,
|
||||
@@ -208,11 +210,13 @@ func (api *Client) OpenViewContext(
|
||||
}
|
||||
|
||||
// PublishView publishes a static view for a user.
|
||||
// For more information see the PublishViewContext documentation.
|
||||
func (api *Client) PublishView(userID string, view HomeTabViewRequest, hash string) (*ViewResponse, error) {
|
||||
return api.PublishViewContext(context.Background(), userID, view, hash)
|
||||
}
|
||||
|
||||
// PublishViewContext publishes a static view for a user with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/views.publish
|
||||
func (api *Client) PublishViewContext(
|
||||
ctx context.Context,
|
||||
userID string,
|
||||
@@ -241,11 +245,13 @@ func (api *Client) PublishViewContext(
|
||||
}
|
||||
|
||||
// PushView pushes a view onto the stack of a root view.
|
||||
// For more information see the PushViewContext documentation.
|
||||
func (api *Client) PushView(triggerID string, view ModalViewRequest) (*ViewResponse, error) {
|
||||
return api.PushViewContext(context.Background(), triggerID, view)
|
||||
}
|
||||
|
||||
// PublishViewContext pushes a view onto the stack of a root view with a custom context.
|
||||
// PushViewContext pushes a view onto the stack of a root view with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/views.push
|
||||
func (api *Client) PushViewContext(
|
||||
ctx context.Context,
|
||||
triggerID string,
|
||||
@@ -272,11 +278,13 @@ func (api *Client) PushViewContext(
|
||||
}
|
||||
|
||||
// UpdateView updates an existing view.
|
||||
// For more information see the UpdateViewContext documentation.
|
||||
func (api *Client) UpdateView(view ModalViewRequest, externalID, hash, viewID string) (*ViewResponse, error) {
|
||||
return api.UpdateViewContext(context.Background(), view, externalID, hash, viewID)
|
||||
}
|
||||
|
||||
// UpdateViewContext updates an existing view with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/views.update
|
||||
func (api *Client) UpdateViewContext(
|
||||
ctx context.Context,
|
||||
view ModalViewRequest,
|
||||
|
||||
Reference in New Issue
Block a user