We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eba5d98 commit 75cfc51Copy full SHA for 75cfc51
1 file changed
index.ts
@@ -53,7 +53,7 @@ export async function deployCommands(
53
for (const file of commandFiles) {
54
const filePath = "file://" + path.join(folderPath, file);
55
const command = (await import(filePath)).default;
56
- if (!("data" in command)) {
+ if (typeof command != "object" || !("data" in command)) {
57
console.error(
58
`- Command '${command.name}' is missing the 'data' property!`
59
);
0 commit comments