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:
@@ -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');
|
||||
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user