diff options
| author | Mitchell Ferree <[email protected]> | 2017-08-08 20:06:14 -0600 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-08-08 22:19:59 -0400 |
| commit | ecdd21212cf12f8de306b451ef548ce702ba3603 (patch) | |
| tree | 84de7044cb5d118084a52dd80eeef7a85882d836 | |
| parent | Add heartbeat_timeout to the Client options. (diff) | |
| download | discord.py-ecdd21212cf12f8de306b451ef548ce702ba3603.tar.xz discord.py-ecdd21212cf12f8de306b451ef548ce702ba3603.zip | |
Disallow setting non-permission attributes
| -rw-r--r-- | discord/permissions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index 9ba0e3f0..0f4080b2 100644 --- a/discord/permissions.py +++ b/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 = {} |