mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Move global user cache to a WeakValueDictionary.
This commit is contained in:
1 parent
f8a5d890fe
commit
808a05ff2d
3 files changed
+19
-3
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user