Skip to content
Snippets Groups Projects
Commit d916d195 authored by Reviath's avatar Reviath
Browse files

Fix unload command

parent b4b83211
Branches
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ client.reloadCommand = (commandName) => {
client.unloadCommand = async (commandName) => {
return new Promise((resolve, reject) => {
try {
delete require.cache[require.resolve(`./komutlar/${command}`)];
delete require.cache[require.resolve(`./commands/${commandName}`)];
let props = require(`./commands/${commandName}`);
client.commands.delete(commandName);
client.aliases.forEach((props, alias) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment