mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Add usage and lastRun Data to slash
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user