mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:23:16 +00:00
Added logging to commands.js
This commit is contained in:
parent
b03c6fd3b0
commit
dd37b3447f
@ -18,7 +18,7 @@ module.exports = {
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
console.log('[Slash Commands] Started refreshing application (/) commands.');
|
||||
client.funcs.logger('Slash Commands', 'Started refreshing application (/) commands.');
|
||||
|
||||
if(version.includes("-dev")){
|
||||
await rest.put(
|
||||
@ -44,9 +44,9 @@ module.exports = {
|
||||
);
|
||||
}
|
||||
|
||||
console.log('[Slash Commands] Successfully reloaded application (/) commands.' + "\n");
|
||||
client.funcs.logger('Slash Commands', 'Successfully reloaded application (/) commands.' + "\n");
|
||||
} catch (error) {
|
||||
console.log('[Slash Commands] Reloading application (/) commands failed.' + "\n");
|
||||
client.funcs.logger('Slash Commands', 'Reloading application (/) commands failed.' + "\n");
|
||||
console.error(error);
|
||||
}
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user