Skip to content

Commit

Permalink
Fix help autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Sep 9, 2024
1 parent 3766119 commit 802ea60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 802ea60

Please sign in to comment.