const Overviewembed = new Discord.EmbedBuilder() .setColor(client.config.colors.normal) .setAuthor({ name: command.name, iconURL: client.user.avatarURL()}) .setFooter({ text: `${currentPage}/${totalPages}`, iconURL: client.user.displayAvatarURL() }) .setImage("https://cdn.discordapp.com/attachments/1126719109539836014/1126724352843464754/standard_1.gif") .addFields( { name: "<:fbank:1123874013727432795> • Bot Prefix", value: `Slash Command <:arrow_right:1123874800457232404>Prefix: fe`, inline: true }, { name: "<:fdiscord:1123873855103045654> • Support Server", value: `[Fenix Hub](http:dsc.gg/fenix-hub)`, inline: true }, { name: "<:fannouncement:1123874102944481310> • Website", value: `[Fenix](${client.config.discord websiteLink})`, inline: true }, { name: "<:fslash:1123872951234732042> • Commands", value: `Click On Menu Or Use Arrow Button To See Commands List`, inline: true }, { name: "<:fslash:1123872951234732042> • Total Slash Cmd", value: `${client.commands.map(a => a).length} [Excluding Sub Commands]`, inline: true }, { name: "<:fdiscord:1123873855103045654> • Total Guilds On", value: `${client.guilds.cache.size} Servers`, inline: true }, { name: "<:fmember:1123869265691418665> • Total Members", value: `{client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)} Members`, inline: true }, { name: "<:fsetting:1123874078277771297> • Ping Of Bot", value: `${client.ws.ping} ms`, inline: true }, { name: "<:fdeveloper:1123872927847284776> • Creator of Bot", value: `[BRD ♘ #6561](http:dsc.gg/fenix-hub)`, inline: true }, { name: "<:fbot:1124299432842760222> • Invite Me", value: `[Invite](${client.config.discord.botInvite})`, inline: true }, let embeds = allotherembeds_eachcategory(); if (b.customId == "overview") { return b.editReply({ embeds: [OverviewEmbed], }) } if (b.customId == "afk") { return b.editReply({ embeds: [embeds[0]], }) } if (b.customId == "announcement") { return b.editReply({ embeds: [embeds[1]], }) } if (b.customId == "automod") { return b.editReply({ embeds: [embeds[2]], }) } if (b.customId == "autosetup") { return b.editReply({ embeds: [embeds[3]], }) } if (b.customId == "birthdays") { return b.editReply({ embeds: [embeds[4]], }) } if (b.customId == "casino") { return b.editReply({ embeds: [embeds[5]], }) } if (b.customId == "commands") { return b.editReply({ embeds: [embeds[6]], }) } if (b.customId == "config") { return b.editReply({ embeds: [embeds[7]], }) } if (b.customId == "economy") { return b.editReply({ embeds: [embeds[8]], }) } if (b.customId == "family") { return b.editReply({ embeds: [embeds[9]], }) } if (b.customId == "fun") { return b.editReply({ embeds: [embeds[10]], }) } if (b.customId == "games") { return b.editReply({ embeds: [embeds[11]], }) } if (b.customId == "giveaway") { return b.editReply({ embeds: [embeds[12]], }) } if (b.customId == "guild") { return b.editReply({ embeds: [embeds[13]], }) } if (b.customId == "images") { return b.editReply({ embeds: [embeds[14]], }) } if (b.customId == "info") { return b.editReply({ embeds: [embeds[15]], }) } if (b.customId == "invites") { return b.editReply({ embeds: [embeds[16]], }) } if (b.customId == "levels") { return b.editReply({ embeds: [embeds[17]], }) } if (b.customId == "messages") { return b.editReply({ embeds: [embeds[18]], }) } if (b.customId == "mod") { return b.editReply({ embeds: [embeds[19]], }) } if (b.customId == "music") { return b.editReply({ embeds: [embeds[20]], }) } if (b.customId == "notepad") { return b.editReply({ embeds: [embeds[21]], }) } if (b.customId == "profile") { return b.editReply({ embeds: [embeds[22]], }) } if (b.customId == "radio") { return b.editReply({ embeds: [embeds[23]], }) } if (b.customId == "reactionroles") { return b.editReply({ embeds: [embeds[24]], }) } if (b.customId == "search") { return b.editReply({ embeds: [embeds[25]], }) } if (b.customId == "serverstats") { return b.editReply({ embeds: [embeds[26]], }) } if (b.customId == "setup") { return b.editReply({ embeds: [embeds[27]], }) } if (b.customId == "soundboard") { return b.editReply({ embeds: [embeds[28]], }) } if (b.customId == "stickymessages") { return b.editReply({ embeds: [embeds[29]], }) } if (b.customId == "suggestions"{ return b.editReply({ embeds: [embeds[30]], }) } if (b.customId == "thanks") { return b.editReply({ embeds: [embeds[31]], }) } if (b.customId == "tickets") { return b.editReply({ embeds: [embeds[32]], }) } if (b.customId == "tools") { return b.editReply({ embeds: [embeds[33]], }) } if (b.customId == "voice") { return b.editReply({ embeds: [embeds[34]], }) if (b.isSelectMenu()) { let index = 0; let vembeds = [] let theembeds = [OverviewEmbed, ...allotherembeds_eachcategory()]; for (const value of b.values) { switch (commands)) { case "overview": index = 0; break; case "afk": index = 1; break; case "announcement": index = 2; break; case "automod": index = 3; break; case "autosetup": index = 4; break; case "birthdays": index = 5; break; case "casino": index = 6; break; case "commands": index = 7; break; case "config": index = 8; break; case "eco": index = 9; break; case "family": index = 10; break; case "fun": index = 11; break; case "games": index = 12; break; case "giveaway": index = 13; break; case "guild": index = 14; break; case "images": index = 15; break; case "info": index = 16; break; case "invites": index = 17; break; case "levels": index = 18; break; case "messages": index = 19; break; case "mod": index = 20; break; case "music": index = 21; break; case "notepad": index = 22; case "profile": index = 23; break; case "radio": index = 24; break; case "reactionroles": index = 25; break; case "search": index = 26; break; case "serverstats": index = 27; break; case "setup": index = 28; break; case "soundboard": index = 29; break; case "stickymessages": index = 30; break; case "suggestions": index = 31; break; case "thanks", index = 32; break; case "tickets": index = 33; break; case "tools": index = 34; break; case "voice": index = 35; break; } vembeds.push(theembeds[index]) } b.editReply({ embeds: vembeds, }); }