Update dependencies (#2180)
* Update dependencies * Fix whatsmeow API changes
This commit is contained in:
10
vendor/github.com/slack-go/slack/reactions.go
generated
vendored
10
vendor/github.com/slack-go/slack/reactions.go
generated
vendored
@@ -129,11 +129,13 @@ func (res listReactionsResponseFull) extractReactedItems() []ReactedItem {
|
||||
}
|
||||
|
||||
// AddReaction adds a reaction emoji to a message, file or file comment.
|
||||
// For more details, see AddReactionContext documentation.
|
||||
func (api *Client) AddReaction(name string, item ItemRef) error {
|
||||
return api.AddReactionContext(context.Background(), name, item)
|
||||
}
|
||||
|
||||
// AddReactionContext adds a reaction emoji to a message, file or file comment with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/reactions.add
|
||||
func (api *Client) AddReactionContext(ctx context.Context, name string, item ItemRef) error {
|
||||
values := url.Values{
|
||||
"token": {api.token},
|
||||
@@ -163,11 +165,13 @@ func (api *Client) AddReactionContext(ctx context.Context, name string, item Ite
|
||||
}
|
||||
|
||||
// RemoveReaction removes a reaction emoji from a message, file or file comment.
|
||||
// For more details, see RemoveReactionContext documentation.
|
||||
func (api *Client) RemoveReaction(name string, item ItemRef) error {
|
||||
return api.RemoveReactionContext(context.Background(), name, item)
|
||||
}
|
||||
|
||||
// RemoveReactionContext removes a reaction emoji from a message, file or file comment with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/reactions.remove
|
||||
func (api *Client) RemoveReactionContext(ctx context.Context, name string, item ItemRef) error {
|
||||
values := url.Values{
|
||||
"token": {api.token},
|
||||
@@ -197,11 +201,13 @@ func (api *Client) RemoveReactionContext(ctx context.Context, name string, item
|
||||
}
|
||||
|
||||
// GetReactions returns details about the reactions on an item.
|
||||
// For more details, see GetReactionsContext documentation.
|
||||
func (api *Client) GetReactions(item ItemRef, params GetReactionsParameters) ([]ItemReaction, error) {
|
||||
return api.GetReactionsContext(context.Background(), item, params)
|
||||
}
|
||||
|
||||
// GetReactionsContext returns details about the reactions on an item with a custom context
|
||||
// GetReactionsContext returns details about the reactions on an item with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/reactions.get
|
||||
func (api *Client) GetReactionsContext(ctx context.Context, item ItemRef, params GetReactionsParameters) ([]ItemReaction, error) {
|
||||
values := url.Values{
|
||||
"token": {api.token},
|
||||
@@ -235,11 +241,13 @@ func (api *Client) GetReactionsContext(ctx context.Context, item ItemRef, params
|
||||
}
|
||||
|
||||
// ListReactions returns information about the items a user reacted to.
|
||||
// For more details, see ListReactionsContext documentation.
|
||||
func (api *Client) ListReactions(params ListReactionsParameters) ([]ReactedItem, *Paging, error) {
|
||||
return api.ListReactionsContext(context.Background(), params)
|
||||
}
|
||||
|
||||
// ListReactionsContext returns information about the items a user reacted to with a custom context.
|
||||
// Slack API docs: https://api.slack.com/methods/reactions.list
|
||||
func (api *Client) ListReactionsContext(ctx context.Context, params ListReactionsParameters) ([]ReactedItem, *Paging, error) {
|
||||
values := url.Values{
|
||||
"token": {api.token},
|
||||
|
||||
Reference in New Issue
Block a user