mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix: private_channels always returns an empty array on ready (#2787)
This commit is contained in:
parent
6f62d7d816
commit
9c2aeb733a
1 changed files with 0 additions and 1 deletions
|
|
@ -17,7 +17,6 @@ class ReadyHandler extends AbstractHandler {
|
|||
client.users.set(clientUser.id, clientUser);
|
||||
|
||||
for (const guild of data.guilds) client.guilds.add(guild);
|
||||
for (const privateDM of data.private_channels) client.channels.add(privateDM);
|
||||
|
||||
const t = client.setTimeout(() => {
|
||||
client.ws.connection.triggerReady();
|
||||
|
|
|
|||
Loading…
Reference in a new issue