Fix error when no command found

This commit is contained in:
SileNce5k 2022-03-27 22:26:16 +02:00
parent 97830d8444
commit 500c9ace42
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -56,6 +56,10 @@ module.exports = {
break;
}
}
if(commands === ""){
fieldName = "Command not found";
commands = "No command with that name found."
}
let regex = /<prefix>/g;
commands = commands.replace(regex, prefix)
embed.addFields(