208
|
1 |
/* |
|
2 |
Copyright 2018 Mikael Berthe |
|
3 |
|
|
4 |
Licensed under the MIT license. Please see the LICENSE file is this directory. |
|
5 |
*/ |
|
6 |
|
|
7 |
package madon |
|
8 |
|
|
9 |
import ( |
|
10 |
"github.com/sendgrid/rest" |
|
11 |
) |
|
12 |
|
|
13 |
// GetCustomEmojis returns a list with the server custom emojis |
|
14 |
func (mc *Client) GetCustomEmojis(lopt *LimitParams) ([]Emoji, error) { |
|
15 |
var emojiList []Emoji |
|
16 |
if err := mc.apiCall("custom_emojis", rest.Get, nil, lopt, nil, &emojiList); err != nil { |
|
17 |
return nil, err |
|
18 |
} |
|
19 |
return emojiList, nil |
|
20 |
} |