mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Remove all data stores! Move to maps
This commit is contained in:
@@ -10,14 +10,14 @@ class ReadyHandler extends AbstractHandler {
|
||||
const client = this.packetManager.client;
|
||||
|
||||
const clientUser = new ClientUser(client, data.user);
|
||||
client.store.user = clientUser;
|
||||
client.user = clientUser;
|
||||
client.users.set(clientUser.id, clientUser);
|
||||
for (const guild of data.guilds) {
|
||||
client.store.newGuild(guild);
|
||||
client.dataManager.newGuild(guild);
|
||||
}
|
||||
|
||||
for (const privateDM of data.private_channels) {
|
||||
client.store.newChannel(privateDM);
|
||||
client.dataManager.newChannel(privateDM);
|
||||
}
|
||||
|
||||
this.packetManager.ws.sessionID = data.session_id;
|
||||
|
||||
Reference in New Issue
Block a user