Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Commit 38b7037

Browse files
committed
Replaced console.error() with console.warn() for warnings
1 parent 8ce40ad commit 38b7037

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deploy-commands.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ for (const folder of commandFolders) {
1919
if ('data' in command && 'execute' in command) {
2020
commands.push(command.data.toJSON());
2121
} else {
22-
console.error(`[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.`);
22+
console.warn(`[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.`);
2323
}
2424
}
2525
}

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ for (const folder of commandFolders) {
2020
if ('data' in command && 'execute' in command) {
2121
client.commands.set(command.data.name, command);
2222
} else {
23-
console.error(`[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.`);
23+
console.warn(`[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.`);
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)