From 62ba356708e369eaeaca88c490b73d6080ea08c3 Mon Sep 17 00:00:00 2001 From: Tiago R Date: Sun, 9 Apr 2023 18:08:32 +0000 Subject: [PATCH] fix channel count? Signed-off-by: GitHub --- backend/src/plugins/Utility/functions/getServerInfoEmbed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts b/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts index ed4cc0ef..f578173f 100644 --- a/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts +++ b/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts @@ -164,7 +164,7 @@ export async function getServerInfoEmbed( (channel) => channel.type === ChannelType.GuildAnnouncement, ); const stageChannels = thisServer.channels.cache.filter((channel) => channel.type === ChannelType.GuildStageVoice); - const totalChannels = thisServer.channels.cache.size - threadChannels.size; + const totalChannels = thisServer.channels.cache.filter((channel) => !channel.isThread()).size; embed.fields.push({ name: preEmbedPadding + "Channels",