From 68e8218b1b8944bd56bb9fbd329b54b639ff916a Mon Sep 17 00:00:00 2001 From: aronmal Date: Wed, 28 Feb 2024 21:59:23 +0100 Subject: [PATCH] Chore: Tiny cleanup --- src/lib/responses.ts | 1 - src/routes/config/[guildId].tsx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/responses.ts b/src/lib/responses.ts index 65d6991..ac3bb37 100644 --- a/src/lib/responses.ts +++ b/src/lib/responses.ts @@ -16,7 +16,6 @@ export function ErrorResponse< error: error ?? httpStatus[`${httpStatus[code]}_NAME`], }; - console.log(responseData); return new Response(JSON.stringify(responseData), { status: httpStatus[code], headers: { diff --git a/src/routes/config/[guildId].tsx b/src/routes/config/[guildId].tsx index 1ea9214..30c68c9 100644 --- a/src/routes/config/[guildId].tsx +++ b/src/routes/config/[guildId].tsx @@ -91,7 +91,7 @@ const getPayload = async ( "User is no MANAGE_GUILD permissions on this guild with requested id!", }; - let channels: ReturnType["guild"]["channels"] = []; + const channels: ReturnType["guild"]["channels"] = []; channelsRequest.data?.forEach((channel) => { if (channel.type !== 0) return; channels.push({ @@ -108,7 +108,6 @@ const getPayload = async ( id: guild.id, name: guild.name, icon: guild.icon, - // channel: "1162917335275950180", channel: "", channels, },