mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
forceFetch callback when no fetch necessary
This commit is contained in:
@@ -264,7 +264,11 @@ export default class InternalClient {
|
||||
this.chunkloaderCount[server.id] = Math.ceil(server.memberCount / 1000);
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
this.chunkloaderCallback = resolve;
|
||||
if (!server) {
|
||||
resolve();
|
||||
} else {
|
||||
this.chunkloaderCallback = resolve;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user