profile command
This commit is contained in:
1
index.js
1
index.js
@@ -44,6 +44,7 @@ const commandFolders = fs.readdirSync(foldersPath);
|
||||
const command = require(filePath);
|
||||
if ('data' in command && 'execute' in command) {
|
||||
client.commands.set(command.data.name, command);
|
||||
console.log(`Registered command "${command.data.name}"`);
|
||||
} else {
|
||||
console.log(`[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user