From 677474820f0c4598c03e963e10822d69cda7bdde Mon Sep 17 00:00:00 2001 From: micah <42517495+catgoat@users.noreply.github.com> Date: Fri, 25 Nov 2022 22:01:57 +0000 Subject: update docs, too! --- docs/index.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'docs') diff --git a/docs/index.rst b/docs/index.rst index a1d9695..b95c64d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -882,6 +882,25 @@ Admin account dicts 'account': # The user's account, as a standard user dict } +Admin domain block dicts +~~~~~~~~~~~~~~~~~~~~~~~~ +.. _domain dicts + +.. code-block::python + mastodon.domain_blocks(id=1) + #Returns the following dictionary: + { + 'id': #Str. The database id of a domain block, + 'domain': #Str. The root domain of a block, ie: "example.com", + 'created_at': #Datetime of the block creation. + 'severity': #Str. Severity of the domain block, ie: "suspend". + 'reject_media': #Boolean. True if media is not downloaded from this domain. + 'reject_reports': #Boolean. True if reports are automatically ignored from this domain. + 'private_comment': #Str. Private admin comment for a block. None if not set. + 'public_comment': #Str. Publicly viewable (depending on settings) comment about this domain. None if not set. + 'obfuscate': #Boolean. True if domain name is obfuscated when listing. + } + Status edit dicts ~~~~~~~~~~~~~~~~~ .. _status edit dict: @@ -1446,6 +1465,10 @@ have admin: scopes attached with a lot of care, but be extra careful with those .. automethod:: Mastodon.admin_trending_tags .. automethod:: Mastodon.admin_trending_statuses .. automethod:: Mastodon.admin_trending_links +.. automethod:: Mastodon.admin_domain_blocks +.. automethod:: Mastodon.admin_domain_block +.. automethod:: Mastodon.admin_update_domain_block +.. automethod:: Mastodon.admin_delete_domain_block Acknowledgements ---------------- -- cgit v1.2.3