aboutsummaryrefslogtreecommitdiff
path: root/mastodon
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/instance.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/mastodon/instance.go b/mastodon/instance.go
index 3217450..1dc2c8e 100644
--- a/mastodon/instance.go
+++ b/mastodon/instance.go
@@ -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
+}