mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: more changes to logging
This commit is contained in:
1 parent
7ef666f03d
commit
9d9087d4c3
39 files changed
+403
-260
No files matched your search
@@ -15,7 +15,7 @@ module.exports = {
|
||||
.setNSFW(false),
|
||||
execute: async ({ interaction, client }) => {
|
||||
if (await notValidGuildId(interaction)) {
|
||||
logger.debug(`[Shard ${client.shard.ids[0]}] Not a valid guild id.`);
|
||||
logger.debug('Not a valid guild id.');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -25,10 +25,10 @@ module.exports = {
|
||||
shardClient.registerClientCommands(shardClient);
|
||||
})
|
||||
.then(() => {
|
||||
logger.info(`[Shard ${client.shard.ids[0]}] Reloaded commands across all shards.`);
|
||||
logger.info('Reloaded commands across all shards.');
|
||||
});
|
||||
} catch (error) {
|
||||
logger.error(error, `[Shard ${client.shard.ids[0]}] Failed to reload commands.`);
|
||||
logger.error(error, 'Failed to reload commands.');
|
||||
}
|
||||
|
||||
const commands = client.commands.map((command) => {
|
||||
|
||||
Reference in new issue
Block a user