Add usage and lastRun Data to slash

This commit is contained in:
Dragon Fire
2024-04-07 20:19:07 -04:00
parent ab61794d7c
commit b47ced8dd0
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -160,6 +160,8 @@ module.exports = class CommandClient extends Client {
try {
const result = await command.run(interaction);
command.uses++;
command.lastRun = new Date();
this.emit('commandRun', command, result, interaction);
} catch (err) {
this.emit('commandError', interaction, err);