mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Migrate most of the Client Data Store to Clien
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user