Skip to content

Commit 75cfc51

Browse files
authored
Fix bug | Issue #2
1 parent eba5d98 commit 75cfc51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function deployCommands(
5353
for (const file of commandFiles) {
5454
const filePath = "file://" + path.join(folderPath, file);
5555
const command = (await import(filePath)).default;
56-
if (!("data" in command)) {
56+
if (typeof command != "object" || !("data" in command)) {
5757
console.error(
5858
`- Command '${command.name}' is missing the 'data' property!`
5959
);

0 commit comments

Comments
 (0)