mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(DMChannel): messages not being cached (#2122)
This commit is contained in:
parent
cce2480bb5
commit
22da595b50
1 changed files with 3 additions and 2 deletions
|
|
@ -69,9 +69,10 @@ class ClientDataManager {
|
|||
}
|
||||
}
|
||||
|
||||
if (channel) {
|
||||
if (this.pastReady && !already) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
||||
if (channel && !already) {
|
||||
if (this.pastReady) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
||||
this.client.channels.set(channel.id, channel);
|
||||
} else if (already) {
|
||||
return channel;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue