diff options
| author | Nadir Chowdhury <[email protected]> | 2021-03-13 05:42:25 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-13 00:42:25 -0500 |
| commit | 7d345e8e4e66246c441a8c6154e398bf49ac0b3c (patch) | |
| tree | 88d643c03a74852b28f9ba17a50d58e5c7cd2d3d /discord/permissions.py | |
| parent | Fix references to snowflakes being max 21 long (diff) | |
| download | discord.py-7d345e8e4e66246c441a8c6154e398bf49ac0b3c.tar.xz discord.py-7d345e8e4e66246c441a8c6154e398bf49ac0b3c.zip | |
remove trailing whitespace
Diffstat (limited to 'discord/permissions.py')
| -rw-r--r-- | discord/permissions.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index efab250b..05b6d511 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -159,7 +159,7 @@ class Permissions(BaseFlags): - :attr:`kick_members` - :attr:`ban_members` - :attr:`administrator` - + .. versionchanged:: 1.7 Added :attr:`stream`, :attr:`priority_speaker` and :attr:`use_slash_commands` permissions. """ @@ -169,7 +169,7 @@ class Permissions(BaseFlags): def general(cls): """A factory method that creates a :class:`Permissions` with all "General" permissions from the official Discord UI set to ``True``. - + .. versionchanged:: 1.7 Permission :attr:`read_messages` is now included in the general permissions, but permissions :attr:`administrator`, :attr:`create_instant_invite`, :attr:`kick_members`, @@ -182,7 +182,7 @@ class Permissions(BaseFlags): def membership(cls): """A factory method that creates a :class:`Permissions` with all "Membership" permissions from the official Discord UI set to ``True``. - + .. versionadded:: 1.7 """ return cls(0b00001100000000000000000000000111) @@ -191,7 +191,7 @@ class Permissions(BaseFlags): def text(cls): """A factory method that creates a :class:`Permissions` with all "Text" permissions from the official Discord UI set to ``True``. - + .. versionchanged:: 1.7 Permission :attr:`read_messages` is no longer part of the text permissions. Added :attr:`use_slash_commands` permission. @@ -208,7 +208,7 @@ class Permissions(BaseFlags): def advanced(cls): """A factory method that creates a :class:`Permissions` with all "Advanced" permissions from the official Discord UI set to ``True``. - + .. versionadded:: 1.7 """ return cls(1 << 3) |