Add custom_emojis

This commit is contained in:
Lorenz Diener 2017-12-13 17:17:42 +01:00
pare c06baa13b3
commit 75aebac744
S'han modificat 2 arxius amb 18 adicions i 0 eliminacions

Veure arxiu

@ -496,6 +496,11 @@ Reading data: Domain blocks
.. automethod:: Mastodon.domain_blocks
Reading data: Emoji
-------------------
.. automethod:: Mastodon.custom_emojis
Writing data: Statuses
----------------------
These functions allow you to post statuses to Mastodon and to

Veure arxiu

@ -713,6 +713,19 @@ class Mastodon:
params = self.__generate_params(locals())
return self.__api_request('GET', '/api/v1/domain_blocks', params)
###
# Reading data: Emoji
###
@api_version("2.1.0")
def custom_emojis(self):
"""
Fetch the list of custom emoji the instance has installed.
Returns a list of emoji dicts.
"""
return self.__api_request('GET', '/api/v1/custom_emojis')
###
# Writing data: Statuses
###