Skip to content

Commit

Permalink
fix: remove deleting commands from collection (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnaiyar authored Sep 7, 2024
1 parent 9b45ae5 commit 7bb42e6
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = {
delete require.cache[require.resolve(`../${command.category}/${command.data.name}.js`)];

try {
interaction.client.commands.delete(command.data.name);
const newCommand = require(`../${command.category}/${command.data.name}.js`);
interaction.client.commands.set(newCommand.data.name, newCommand);
await interaction.reply(`Command \`${newCommand.data.name}\` was reloaded!`);
Expand Down

0 comments on commit 7bb42e6

Please sign in to comment.