aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-04 05:16:59 -0500
committerRapptz <[email protected]>2017-01-04 05:16:59 -0500
commit808a05ff2dd37c63020d099827e4248b4e49059d (patch)
tree558b4198394be13f90e22556b3801e461496e9cd /discord/user.py
parentUpdate examples to match the new rewrite API. (diff)
downloaddiscord.py-808a05ff2dd37c63020d099827e4248b4e49059d.tar.xz
discord.py-808a05ff2dd37c63020d099827e4248b4e49059d.zip
Move global user cache to a WeakValueDictionary.
Diffstat (limited to 'discord/user.py')
-rw-r--r--discord/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/user.py b/discord/user.py
index 387c20b0..e9a19935 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -61,7 +61,7 @@ class User(discord.abc.Messageable):
Specifies if the user is a bot account.
"""
- __slots__ = ('name', 'id', 'discriminator', 'avatar', 'bot', '_state')
+ __slots__ = ('name', 'id', 'discriminator', 'avatar', 'bot', '_state', '__weakref__')
def __init__(self, *, state, data):
self._state = state