From aec5e3d77b6e480d04dd8773723de62416a94919 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 16 Jul 2017 14:29:46 +0200 Subject: Update vendor (nlopes/slack) --- vendor/github.com/nlopes/slack/emoji.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'vendor/github.com/nlopes/slack/emoji.go') diff --git a/vendor/github.com/nlopes/slack/emoji.go b/vendor/github.com/nlopes/slack/emoji.go index 776c4a5f..5da9da41 100644 --- a/vendor/github.com/nlopes/slack/emoji.go +++ b/vendor/github.com/nlopes/slack/emoji.go @@ -1,6 +1,7 @@ package slack import ( + "context" "errors" "net/url" ) @@ -12,11 +13,16 @@ type emojiResponseFull struct { // GetEmoji retrieves all the emojis func (api *Client) GetEmoji() (map[string]string, error) { + return api.GetEmojiContext(context.Background()) +} + +// GetEmojiContext retrieves all the emojis with a custom context +func (api *Client) GetEmojiContext(ctx context.Context) (map[string]string, error) { values := url.Values{ "token": {api.config.token}, } response := &emojiResponseFull{} - err := post("emoji.list", values, response, api.debug) + err := post(ctx, "emoji.list", values, response, api.debug) if err != nil { return nil, err } -- cgit v1.2.3