3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-10 12:37:19 +00:00

fix channel count?

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Tiago R 2023-04-09 18:08:32 +00:00 committed by GitHub
parent 174fe68e22
commit 62ba356708
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",