debug management

This commit is contained in:
SowinskiBraeden committed 2022-07-25 21:58:13 -07:00
1 parent 74475e6549
commit 631a348717
22 files changed
+100 -24

No files matched your search

+4 -1
View File
@@ -2,6 +2,7 @@ const { MessageEmbed } = require("discord.js");
module.exports = {
name: "help",
debug: false,
description: "Get information on a specific command",
usage: "[command]",
permissions: {
@@ -30,7 +31,9 @@ module.exports = {
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
return interaction.send(`You are not allowed to use the bot in this channel.`);
}
let Commands = client.commands.map((cmd) =>
let Commands = client.commands.filter((cmd) => {
return !cmd.debug
}).map((cmd) =>
`\`/${cmd.name}${cmd.usage ? " " + cmd.usage : ""}\` - ${cmd.description}`
);