Add custom_emojis
This commit is contained in:
pare
c06baa13b3
commit
75aebac744
S'han modificat 2 arxius amb 18 adicions i 0 eliminacions
|
@ -496,6 +496,11 @@ Reading data: Domain blocks
|
||||||
|
|
||||||
.. automethod:: Mastodon.domain_blocks
|
.. automethod:: Mastodon.domain_blocks
|
||||||
|
|
||||||
|
Reading data: Emoji
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
.. automethod:: Mastodon.custom_emojis
|
||||||
|
|
||||||
Writing data: Statuses
|
Writing data: Statuses
|
||||||
----------------------
|
----------------------
|
||||||
These functions allow you to post statuses to Mastodon and to
|
These functions allow you to post statuses to Mastodon and to
|
||||||
|
|
|
@ -713,6 +713,19 @@ class Mastodon:
|
||||||
params = self.__generate_params(locals())
|
params = self.__generate_params(locals())
|
||||||
return self.__api_request('GET', '/api/v1/domain_blocks', params)
|
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
|
# Writing data: Statuses
|
||||||
###
|
###
|
||||||
|
|
Loading…
Referencia en una nova incidència