update/add nameSearch and debug control
This commit is contained in:
1 parent
6cbd981a00
commit
68120d1e60
6 files changed
+156
-15
No files matched your search
+6
-8
@@ -17,11 +17,10 @@ module.exports = {
|
||||
* @param {*} param3
|
||||
*/
|
||||
run: async (client, message, args, { GuildDB }) => {
|
||||
let Commands = client.commands.map(
|
||||
(cmd) =>
|
||||
`\`${GuildDB ? GuildDB.prefix : client.config.DefaultPrefix}${
|
||||
let Commands = client.commands.map((cmd) =>
|
||||
cmd.name != 'debug' ? `\`${GuildDB ? GuildDB.prefix : client.config.DefaultPrefix}${
|
||||
cmd.name
|
||||
}${cmd.usage ? " " + cmd.usage : ""}\` - ${cmd.description}`
|
||||
}${cmd.usage ? " " + cmd.usage : ""}\` - ${cmd.description}` : null
|
||||
);
|
||||
|
||||
let Embed = new MessageEmbed()
|
||||
@@ -101,11 +100,10 @@ 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) =>
|
||||
`\`${GuildDB ? GuildDB.prefix : client.config.DefaultPrefix}${
|
||||
let Commands = client.commands.map((cmd) =>
|
||||
cmd.name != 'debug' ? `\`${GuildDB ? GuildDB.prefix : client.config.DefaultPrefix}${
|
||||
cmd.name
|
||||
}${cmd.usage ? " " + cmd.usage : ""}\` - ${cmd.description}`
|
||||
}${cmd.usage ? " " + cmd.usage : ""}\` - ${cmd.description}` : null
|
||||
);
|
||||
|
||||
let Embed = new MessageEmbed()
|
||||
|
||||
Reference in new issue
Block a user