Remove all data stores! Move to maps

This commit is contained in:
Amish Shah
2016-08-19 22:34:59 +01:00
parent 82ab92ca2a
commit 8d5d90e222
17 changed files with 81 additions and 111 deletions

View File

@@ -70,7 +70,7 @@ class Guild {
_addMember(guildUser, noEvent) {
if (!(guildUser.user instanceof User)) {
guildUser.user = this.client.store.newUser(guildUser.user);
guildUser.user = this.client.dataManager.newUser(guildUser.user);
}
guildUser.joined_at = guildUser.joined_at || 0;
@@ -263,7 +263,7 @@ class Guild {
if (data.channels) {
this.channels.clear();
for (const channel of data.channels) {
this.client.store.newChannel(channel, this);
this.client.dataManager.newChannel(channel, this);
}
}