Skip to content

Commit

Permalink
[Fix] print all command including the interaction only commands (regi…
Browse files Browse the repository at this point in the history
…on, regionbyid)
  • Loading branch information
naseif committed Nov 25, 2021
1 parent 7f8bcb4 commit 39e0675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/commandsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ let commandsHelper = function () {
client.logger(`Found ${commands.length} Commands, Loading...`);

for (const command of commands) {
client.logger(`Loaded ${command.name}`);
client.commands.set(command.name, command);
client.logger(`Loaded ${command.name || command.data.name}`);
client.commands.set(command.name || command.data.name, command);
}
};

Expand Down

0 comments on commit 39e0675

Please sign in to comment.