Update /debug

This commit is contained in:
memetrollsXD 2022-08-03 03:01:25 +02:00
parent be8200ebf3
commit fff80e0a65
No known key found for this signature in database
GPG Key ID: 105C2F3417AC32CD

View File

@ -8,8 +8,8 @@ export default async function handle(command: Command) {
else { else {
let level = parseInt(command.args[0]); let level = parseInt(command.args[0]);
if (!level) level = 0; if (!level) level = 0;
if (level > 2 || level < 0) { if (level > VerboseLevel.VERBH || level < 0) {
c.log("Invalid verbose level. Must be between 0 and 2."); c.log("Invalid verbose level. Must be between 0 and 4.");
return; return;
} }