mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 23:23:08 -04:00
fix forum channel count
This commit is contained in:
parent
19979e440e
commit
83f091b0a6
2 changed files with 12 additions and 6 deletions
|
@ -3,9 +3,9 @@ const { PERMISSION_GROUPS } = require('#constants');
|
|||
|
||||
const { createEmbed, page, formatPaginationEmbeds } = require("#utils/embed");
|
||||
const { guildFeaturesField } = require("#utils/fields");
|
||||
const { getAcronym, getGuildIcon } = require('#utils/guilds');
|
||||
const { getGuildIcon } = require('#utils/guilds');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
const { icon, highlight, timestamp, codeblock, smallIconPill, smallPill } = require("#utils/markdown");
|
||||
const { icon, timestamp, codeblock, smallIconPill, smallPill } = require("#utils/markdown");
|
||||
const { editOrReply } = require("#utils/message");
|
||||
|
||||
module.exports = {
|
||||
|
@ -32,7 +32,7 @@ module.exports = {
|
|||
const textChannels = channels.filter((channel) => channel.isGuildText).length;
|
||||
const voiceChannels = channels.filter((channel) => channel.isGuildVoice).length;
|
||||
const stageChannels = channels.filter((channel) => channel.isGuildStageVoice).length;
|
||||
const forumChannels = channels.filter((channel) => channel.isGuildForumChannel).length;
|
||||
const forumChannels = channels.filter((channel) => channel.isGuildForum).length;
|
||||
|
||||
const g = context.guild
|
||||
// Guild Card
|
||||
|
@ -77,7 +77,7 @@ module.exports = {
|
|||
inline: false
|
||||
})
|
||||
|
||||
if((g.banner || g.splash || g.discoverySplash) != undefined){
|
||||
if((g.banner || g.splash || g.discoverySplash) !== undefined){
|
||||
guildCard.image = {
|
||||
url: (g.bannerUrl || g.splashUrl || g.discoverySplashUrl) + "?size=4096"
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ module.exports = {
|
|||
let i = 0;
|
||||
let ic = Math.ceil(featureCards.length / 2);
|
||||
|
||||
if(ic == 1) featureCards[0].name = `${icon("list")} Server Features`
|
||||
if(ic === 1) featureCards[0].name = `${icon("list")} Server Features`
|
||||
while(featureCards.length >= 1){
|
||||
i++;
|
||||
const sub = featureCards.splice(0, 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue