From 808a05ff2dd37c63020d099827e4248b4e49059d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 4 Jan 2017 05:16:59 -0500 Subject: Move global user cache to a WeakValueDictionary. --- discord/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/user.py') 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 -- cgit v1.2.3