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