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