Little aditions

Added optional propreties to commands.

Commands with the proprety `folder: 'dev'` can't be reloaded via the reload command.

Now the 'interactionCreate' event log the time of executing of the command.
This commit is contained in:
Guz
2021-08-26 17:58:38 -03:00
parent 671052f1c1
commit ce2e244b70
3 changed files with 18 additions and 2 deletions

View File

@@ -4,6 +4,9 @@ module.exports = {
name: 'interactionCreate',
async execute(interaction, client) {
console.log('NEW INTERACTION ################################');
console.time('Interaction time');
if(interaction.isCommand()) {
console.log(`\nCommand ${interaction.commandName} executing ----------------\n`);
@@ -31,5 +34,8 @@ module.exports = {
}
console.timeEnd('Interaction time');
console.log('################################################\n');
},
};