mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
feat!: Sharding implemented across the bot
This commit is contained in:
1 parent
b160cbf564
commit
9c15c636d9
29 files changed
+270
-142
No files matched your search
@@ -11,7 +11,7 @@ module.exports = {
|
||||
.setDMPermission(false),
|
||||
execute: async ({ interaction, client }) => {
|
||||
if (await notValidGuildId(interaction)) {
|
||||
logger.debug(`Shard ${client.shard.ids[0]}> Not a valid guild id.`);
|
||||
logger.debug(`[Shard ${client.shard.ids[0]}] Not a valid guild id.`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ module.exports = {
|
||||
guildCount = results.reduce((acc, guildCount) => acc + guildCount, 0);
|
||||
})
|
||||
.catch((error) => {
|
||||
logger.error(error, `Shard ${client.shard.ids[0]}> Failed to fetch client values from shards.`);
|
||||
logger.error(error, `[Shard ${client.shard.ids[0]}] Failed to fetch client values from shards.`);
|
||||
});
|
||||
|
||||
return await interaction.editReply({
|
||||
|
||||
Reference in new issue
Block a user