From 5be9f4da7af2c992eaf4be82ffb67f1a6338bcbf Mon Sep 17 00:00:00 2001 From: ITOH Date: Mon, 10 May 2021 18:32:01 +0200 Subject: [PATCH] fix: channel guildId being undefined --- src/structures/channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/channel.ts b/src/structures/channel.ts index d9e81b357..709971fe8 100644 --- a/src/structures/channel.ts +++ b/src/structures/channel.ts @@ -115,7 +115,7 @@ export async function createDiscordenoChannel( `Running forEach loop in createDiscordenoChannel function.`, ); - if (key === "guildId") value = guildId || data.guildId || ""; + if (key === "guildId") value = guildId?.toString() || data.guildId || ""; props[key] = createNewProp( CHANNEL_SNOWFLAKES.includes(key)