Browse Source

Disallow setting non-permission attributes

pull/705/merge
Mitchell Ferree 8 years ago
committed by Rapptz
parent
commit
ecdd21212c
  1. 2
      discord/permissions.py

2
discord/permissions.py

@ -529,6 +529,8 @@ class PermissionOverwrite:
Set the value of permissions by their name.
"""
__slots__ = ('_values',)
def __init__(self, **kwargs):
self._values = {}

Loading…
Cancel
Save