Skip to content

Commit

Permalink
Change help autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Sep 9, 2024
1 parent e0c00b4 commit 3766119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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")).forEach(cmd => {
client.commands.filter(cmd => cmd.name.startsWith(focusedValue) && (cmd.place === "dm" || cmd.place === "both") && (!cmd.serverid)).forEach(cmd => {
cmds.push({ name: cmd.name, value: cmd.name });
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion commands/lol.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
description: "league of legends related commands",
permission: "none",
hidden: false,
place: "guild",
place: "both",
options: [
{
name: 'account',
Expand Down

0 comments on commit 3766119

Please sign in to comment.