feat!: Sharding implemented across the bot

This commit is contained in:
Marius Begby committed 2023-07-21 14:17:04 +02:00
1 parent b160cbf564
commit 9c15c636d9
29 files changed
+270 -142

No files matched your search

+6 -2
View File
@@ -19,7 +19,9 @@ module.exports = {
const queue = useQueue(interaction.guild.id);
if (!queue) {
logger.debug(`User used command ${interaction.commandName} but there was no queue.`);
logger.debug(
`[Shard ${interaction.guild.shardId}] User used command ${interaction.commandName} but there was no queue.`
);
return await interaction.editReply({
embeds: [
new EmbedBuilder()
@@ -33,7 +35,9 @@ module.exports = {
if (!queue.deleted) {
queue.delete();
logger.debug(`User used command ${interaction.commandName} and deleted the queue.`);
logger.debug(
`[Shard ${interaction.guild.shardId}] User used command ${interaction.commandName} and deleted the queue.`
);
return await interaction.editReply({
embeds: [