Migrate most of the Client Data Store to Clien

This commit is contained in:
Amish Shah
2016-08-19 22:21:30 +01:00
parent ad8b4c7698
commit 82ab92ca2a
31 changed files with 75 additions and 55 deletions

View File

@@ -38,7 +38,7 @@ class ClientDataResolver {
if (user instanceof User) {
return user;
} else if ($string(user)) {
return this.client.store.get('users', user);
return this.client.users.get(user.id);
} else if (user instanceof Message) {
return user.author;
} else if (user instanceof Guild) {
@@ -133,7 +133,7 @@ class ClientDataResolver {
}
if ($string(channel)) {
return this.client.store.get('channels', channel);
return this.client.channels.get(channel.id);
}
return null;