fix(structures/guild): channels not being cached

This commit is contained in:
ITOH
2021-06-23 21:52:13 +02:00
parent cc8209198e
commit 22832d41eb
+5 -1
View File
@@ -264,7 +264,11 @@ export async function createDiscordenoGuild(data: Guild, shardId: number) {
});
}
await Promise.all(promises);
await Promise.all(
promises.map(async (promise) => {
return await promise();
})
);
const roles = await Promise.all(
(data.roles || []).map((role) =>