mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 00:13:01 +00:00
Fix and add documentation
This commit is contained in:
@@ -495,10 +495,7 @@ class PermissionOverwrite:
|
||||
self._values[key] = value
|
||||
|
||||
def pair(self):
|
||||
"""Returns the (allow, deny) pair from this overwrite.
|
||||
|
||||
The value of these pairs is :class:`Permissions`.
|
||||
"""
|
||||
"""Tuple[:class:`Permissions`, :class:`Permissions`]: Returns the (allow, deny) pair from this overwrite."""
|
||||
|
||||
allow = Permissions.none()
|
||||
deny = Permissions.none()
|
||||
@@ -530,6 +527,11 @@ class PermissionOverwrite:
|
||||
|
||||
An empty permission overwrite is one that has no overwrites set
|
||||
to ``True`` or ``False``.
|
||||
|
||||
Returns
|
||||
-------
|
||||
:class:`bool`
|
||||
Indicates if the overwrite is empty.
|
||||
"""
|
||||
return all(x is None for x in self._values.values())
|
||||
|
||||
|
Reference in New Issue
Block a user