diff options
author | Lorenz Diener <[email protected]> | 2017-12-13 17:17:42 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-12-13 17:17:42 +0100 |
commit | 75aebac744717216118afcdb89c96cfe8856e9ef (patch) | |
tree | fd381f166313ef126f4589e4443b642cb9a20aec /mastodon | |
parent | c06baa13b30fc5ce058940e681305f6c03dc0048 (diff) | |
download | mastodon.py-75aebac744717216118afcdb89c96cfe8856e9ef.tar.gz |
Add custom_emojis
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 1c7b2ee..8130b2c 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -714,6 +714,19 @@ class Mastodon: | |||
714 | return self.__api_request('GET', '/api/v1/domain_blocks', params) | 714 | return self.__api_request('GET', '/api/v1/domain_blocks', params) |
715 | 715 | ||
716 | ### | 716 | ### |
717 | # Reading data: Emoji | ||
718 | ### | ||
719 | @api_version("2.1.0") | ||
720 | def custom_emojis(self): | ||
721 | """ | ||
722 | Fetch the list of custom emoji the instance has installed. | ||
723 | |||
724 | Returns a list of emoji dicts. | ||
725 | |||
726 | """ | ||
727 | return self.__api_request('GET', '/api/v1/custom_emojis') | ||
728 | |||
729 | ### | ||
717 | # Writing data: Statuses | 730 | # Writing data: Statuses |
718 | ### | 731 | ### |
719 | @api_version("1.0.0") | 732 | @api_version("1.0.0") |