diff options
| author | TheOneMusic <[email protected]> | 2021-03-01 14:57:28 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-01 08:57:28 -0500 |
| commit | 259c3909a8ef9041cc8f80ac24ca73dadd3db415 (patch) | |
| tree | 2ce1bb44159145ccf87306d7254620672d104354 /discord/permissions.py | |
| parent | Allow AuditLogEntry to be Hashable (diff) | |
| download | discord.py-259c3909a8ef9041cc8f80ac24ca73dadd3db415.tar.xz discord.py-259c3909a8ef9041cc8f80ac24ca73dadd3db415.zip | |
Fix Permissions.all_channel documentation to link attributes
Diffstat (limited to 'discord/permissions.py')
| -rw-r--r-- | discord/permissions.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index 10435e13..efab250b 100644 --- a/discord/permissions.py +++ b/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) |