debug management
This commit is contained in:
22 files changed
+100
-24
No files matched your search
+4
-1
@@ -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}`
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user