Fix error when no command found
This commit is contained in:
parent
97830d8444
commit
500c9ace42
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ module.exports = {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(commands === ""){
|
||||||
|
fieldName = "Command not found";
|
||||||
|
commands = "No command with that name found."
|
||||||
|
}
|
||||||
let regex = /<prefix>/g;
|
let regex = /<prefix>/g;
|
||||||
commands = commands.replace(regex, prefix)
|
commands = commands.replace(regex, prefix)
|
||||||
embed.addFields(
|
embed.addFields(
|
||||||
|
|
Loading…
Add table
Reference in a new issue