diff --git a/commands/help.js b/commands/help.js index fcfdb51..712a51c 100644 --- a/commands/help.js +++ b/commands/help.js @@ -158,7 +158,7 @@ module.exports = { let cmds = []; // if the interaction is not in a guild, we return only the global commands if (interaction.guild === null) { - client.commands.filter(cmd => cmd.name.startsWith(focusedValue) && (cmd.place === "dm" || cmd.place === "both") && (!cmd.serverid)).forEach(cmd => { + client.commands.filter(cmd => cmd.name.startsWith(focusedValue) && (cmd.place === "dm" || cmd.place === "both") && (!cmd.serverid) && cmd.permission === "none").forEach(cmd => { cmds.push({ name: cmd.name, value: cmd.name }); }); } else {