From 8f8f988e2b4883d1745e6a978da7939572d0bb7d Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 26 Feb 2021 19:11:02 +0100 Subject: [PATCH] fix(structures/channel): empty guildID in Channel struct (#551) --- src/api/structures/guild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/structures/guild.ts b/src/api/structures/guild.ts index bffd97546..f1cc711cb 100644 --- a/src/api/structures/guild.ts +++ b/src/api/structures/guild.ts @@ -146,7 +146,7 @@ export async function createGuild(data: CreateGuildPayload, shardID: number) { ); await Promise.all(channels.map(async (channel) => { - const channelStruct = await structures.createChannel(channel); + const channelStruct = await structures.createChannel(channel, rest.id); return cacheHandlers.set("channels", channelStruct.id, channelStruct); }));