mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Merge master
This commit is contained in:
commit
1518d58e25
53 changed files with 289 additions and 320 deletions
|
@ -148,12 +148,16 @@ export async function getServerInfoEmbed(
|
|||
const textChannels = thisServer.channels.cache.filter((channel) => channel.type === ChannelType.GuildText);
|
||||
const voiceChannels = thisServer.channels.cache.filter((channel) => channel.type === ChannelType.GuildVoice);
|
||||
const forumChannels = thisServer.channels.cache.filter((channel) => channel.type === ChannelType.GuildForum);
|
||||
const mediaChannels = thisServer.channels.cache.filter((channel) => channel.type === ChannelType.GuildMedia);
|
||||
const threadChannelsText = thisServer.channels.cache.filter(
|
||||
(channel) => channel.isThread() && channel.parent?.type !== ChannelType.GuildForum,
|
||||
);
|
||||
const threadChannelsForums = thisServer.channels.cache.filter(
|
||||
(channel) => channel.isThread() && channel.parent?.type === ChannelType.GuildForum,
|
||||
);
|
||||
const threadChannelsMedia = thisServer.channels.cache.filter(
|
||||
(channel) => channel.isThread() && channel.parent?.type === ChannelType.GuildMedia,
|
||||
);
|
||||
const announcementChannels = thisServer.channels.cache.filter(
|
||||
(channel) => channel.type === ChannelType.GuildAnnouncement,
|
||||
);
|
||||
|
@ -168,6 +172,7 @@ export async function getServerInfoEmbed(
|
|||
Categories: **${categories.size}**
|
||||
Text: **${textChannels.size}** (**${threadChannelsText.size} threads**)
|
||||
Forums: **${forumChannels.size}** (**${threadChannelsForums.size} threads**)
|
||||
Media: **${mediaChannels.size}** (**${threadChannelsMedia.size} threads**)
|
||||
Announcement: **${announcementChannels.size}**
|
||||
Voice: **${voiceChannels.size}**
|
||||
Stage: **${stageChannels.size}**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue