1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-16 02:39:01 +00:00

Don't cache webhook users.

Fixes 
This commit is contained in:
Rapptz 2018-02-24 17:37:37 -05:00
parent 355eb08b25
commit 1c215cfbbe

@ -151,7 +151,9 @@ class ConnectionState:
try:
return self._users[user_id]
except KeyError:
self._users[user_id] = user = User(state=self, data=data)
user = User(state=self, data=data)
if user.discriminator != '0000':
self._users[user_id] = user
return user
def get_user(self, id):