Merge pull request #16 from paris-ci/alias_administrator_to_admin

Alias admin to administrators in permissions. This needs to be tested…
This commit is contained in:
iDutchy 2021-09-02 03:06:30 +02:00 committed by GitHub
commit a62c0ff0d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,6 +299,13 @@ class Permissions(BaseFlags):
"""
return 1 << 3
@make_permission_alias('administrator')
def admin(self) -> int:
""":class:`bool`: An alias for :attr:`administrator`.
.. versionadded:: 2.0
"""
return 1 << 3
@flag_value
def manage_channels(self) -> int:
""":class:`bool`: Returns ``True`` if a user can edit, delete, or create channels in the guild.