Initial support for pomelo migration

This commit is contained in:
Rapptz
2023-05-03 23:48:46 -04:00
parent 66689e16e8
commit df01db3490
11 changed files with 93 additions and 80 deletions

View File

@ -356,6 +356,7 @@ class ConnectionState(Generic[ClientT]):
return self._users[user_id]
except KeyError:
user = User(state=self, data=data)
# TODO: with the removal of discrims this becomes a bit annoying
if user.discriminator != '0000':
self._users[user_id] = user
return user