1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-10 07:49:48 +00:00

Add PermissionOverwrite.is_empty to query empty state of an overwrite.

Fixes 
This commit is contained in:
Rapptz 2016-11-21 03:12:44 -05:00
parent 7ff7b0fb9c
commit fb1f9ac659

@ -557,6 +557,14 @@ class PermissionOverwrite:
return ret
def is_empty(self):
"""Checks if the permission overwrite is currently empty.
An empty permission overwrite is one that has no overwrites set
to True or False.
"""
return all(x is None for x in self._values.values())
def update(self, **kwargs):
"""Bulk updates this permission overwrite object.