From 22832d41eb928bc9042006ba5f0c946db2596856 Mon Sep 17 00:00:00 2001 From: ITOH Date: Wed, 23 Jun 2021 21:52:13 +0200 Subject: [PATCH] fix(structures/guild): channels not being cached --- src/structures/guild.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/structures/guild.ts b/src/structures/guild.ts index 63b936205..080468775 100644 --- a/src/structures/guild.ts +++ b/src/structures/guild.ts @@ -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) =>