mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +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 (channel && !already) {
|
||||||
if (this.pastReady && !already) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
if (this.pastReady) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
||||||
this.client.channels.set(channel.id, channel);
|
this.client.channels.set(channel.id, channel);
|
||||||
|
} else if (already) {
|
||||||
return channel;
|
return channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue