Browse Source
Fix Permissions.all_channel documentation to link attributes
pull/6496/head
TheOneMusic
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
10 deletions
-
discord/permissions.py
|
|
@ -149,15 +149,16 @@ class Permissions(BaseFlags): |
|
|
|
"""A :class:`Permissions` with all channel-specific permissions set to |
|
|
|
``True`` and the guild-specific ones set to ``False``. The guild-specific |
|
|
|
permissions are currently: |
|
|
|
- manage_emojis |
|
|
|
- view_audit_log |
|
|
|
- view_guild_insights |
|
|
|
- manage_guild |
|
|
|
- change_nickname |
|
|
|
- manage_nicknames |
|
|
|
- kick_members |
|
|
|
- ban_members |
|
|
|
- administrator |
|
|
|
|
|
|
|
- :attr:`manage_emojis` |
|
|
|
- :attr:`view_audit_log` |
|
|
|
- :attr:`view_guild_insights` |
|
|
|
- :attr:`manage_guild` |
|
|
|
- :attr:`change_nickname` |
|
|
|
- :attr:`manage_nicknames` |
|
|
|
- :attr:`kick_members` |
|
|
|
- :attr:`ban_members` |
|
|
|
- :attr:`administrator` |
|
|
|
|
|
|
|
.. versionchanged:: 1.7 |
|
|
|
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 |
|
|
|
"Advanced" permissions from the official Discord UI set to ``True``. |
|
|
|
|
|
|
|
.. versionadded: 1.7 |
|
|
|
.. versionadded:: 1.7 |
|
|
|
""" |
|
|
|
return cls(1 << 3) |
|
|
|
|
|
|
|