mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-06 03:48:45 +00:00
Add emojis page
This commit is contained in:
parent
967a9c954e
commit
08cc2a6ade
9 changed files with 109 additions and 0 deletions
|
@ -63,3 +63,13 @@ func (c *Client) GetInstancePeers(ctx context.Context) ([]string, error) {
|
|||
}
|
||||
return peers, nil
|
||||
}
|
||||
|
||||
// GetInstanceEmojis return instance emojis.
|
||||
func (c *Client) GetInstanceEmojis(ctx context.Context) ([]*Emoji, error) {
|
||||
var emojis []*Emoji
|
||||
err := c.doAPI(ctx, http.MethodGet, "/api/v1/custom_emojis", nil, &emojis, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return emojis, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue