diff options
| author | Rapptz <[email protected]> | 2020-09-14 03:14:57 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 03:21:20 -0400 |
| commit | f2de794bdebc65dff99fd4ce13abde2cedf978dd (patch) | |
| tree | 95df96fe9d7e3af25ff43d5eb141909d4a42c84f /discord/abc.py | |
| parent | Allow finer grained control over the member cache. (diff) | |
| download | discord.py-f2de794bdebc65dff99fd4ce13abde2cedf978dd.tar.xz discord.py-f2de794bdebc65dff99fd4ce13abde2cedf978dd.zip | |
Intern status and overwrite strings
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index 75624e18..0ac87d13 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -25,6 +25,7 @@ DEALINGS IN THE SOFTWARE. """ import abc +import sys import copy import asyncio @@ -169,7 +170,7 @@ class _Overwrites: self.id = kwargs.pop('id') self.allow = kwargs.pop('allow', 0) self.deny = kwargs.pop('deny', 0) - self.type = kwargs.pop('type') + self.type = sys.intern(kwargs.pop('type')) def _asdict(self): return { |