Disallow setting non-permission attributes

This commit is contained in:
Mitchell Ferree
2017-08-08 22:19:59 -04:00
committed by Rapptz
parent de65f7309b
commit ecdd21212c
+2
View File
@@ -529,6 +529,8 @@ class PermissionOverwrite:
Set the value of permissions by their name.
"""
__slots__ = ('_values',)
def __init__(self, **kwargs):
self._values = {}