DarkByteZero
DarkByteZero
SIASapphire - Imagine a framework
Created by DarkByteZero on 12/9/2022 in #sapphire-support
ApplicationCommandRegistry save new Command registered to DB
I want to save the idHints automatically in a Database, where can i intercept all new registered Commands with their respective idHint. I did try intercepting all events inside my Client with:
emit(event, ...args) {
// save all events to a file
fs.appendFile('events.log', event + ' ' + JSON.stringify(args) + ' ' + new Date().toString() + ' ', (err) => { if (err) throw err; });

super.emit(event, ...args);
}
emit(event, ...args) {
// save all events to a file
fs.appendFile('events.log', event + ' ' + JSON.stringify(args) + ' ' + new Date().toString() + ' ', (err) => { if (err) throw err; });

super.emit(event, ...args);
}
But i didnt find the Command Id in the file.
12 replies