From 802ea60683b9331a05234c150b4656b2cf39855b Mon Sep 17 00:00:00 2001 From: KwikKill Date: Mon, 9 Sep 2024 21:11:12 +0200 Subject: [PATCH] Fix help autocomplete --- commands/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {