mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Migrate most of the Client Data Store to Clien
This commit is contained in:
@@ -102,7 +102,7 @@ class RESTMethods {
|
||||
}
|
||||
|
||||
getExistingDM(recipient) {
|
||||
const dmChannel = this.rest.client.store.getAsArray('channels')
|
||||
const dmChannel = Array.from(this.rest.client.channels.values())
|
||||
.filter(channel => channel.recipient)
|
||||
.filter(channel => channel.recipient.id === recipient.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user