Browse Source

Fix Permissions.all_channel documentation to link attributes

pull/6496/head
TheOneMusic 4 years ago
committed by GitHub
parent
commit
259c3909a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      discord/permissions.py

21
discord/permissions.py

@ -149,15 +149,16 @@ class Permissions(BaseFlags):
"""A :class:`Permissions` with all channel-specific permissions set to """A :class:`Permissions` with all channel-specific permissions set to
``True`` and the guild-specific ones set to ``False``. The guild-specific ``True`` and the guild-specific ones set to ``False``. The guild-specific
permissions are currently: permissions are currently:
- manage_emojis
- view_audit_log - :attr:`manage_emojis`
- view_guild_insights - :attr:`view_audit_log`
- manage_guild - :attr:`view_guild_insights`
- change_nickname - :attr:`manage_guild`
- manage_nicknames - :attr:`change_nickname`
- kick_members - :attr:`manage_nicknames`
- ban_members - :attr:`kick_members`
- administrator - :attr:`ban_members`
- :attr:`administrator`
.. versionchanged:: 1.7 .. versionchanged:: 1.7
Added :attr:`stream`, :attr:`priority_speaker` and :attr:`use_slash_commands` permissions. Added :attr:`stream`, :attr:`priority_speaker` and :attr:`use_slash_commands` permissions.
@ -208,7 +209,7 @@ class Permissions(BaseFlags):
"""A factory method that creates a :class:`Permissions` with all """A factory method that creates a :class:`Permissions` with all
"Advanced" permissions from the official Discord UI set to ``True``. "Advanced" permissions from the official Discord UI set to ``True``.
.. versionadded: 1.7 .. versionadded:: 1.7
""" """
return cls(1 << 3) return cls(1 << 3)

Loading…
Cancel
Save