From 14adee5e2bc324c5c06d330b65304a0e51f1db12 Mon Sep 17 00:00:00 2001 From: Felix Wotschofsky Date: Wed, 29 Jan 2025 14:25:27 +0100 Subject: [PATCH] =?UTF-8?q?Enable=20automatic=20sharding=20=E2=9C=82?= =?UTF-8?q?=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index f4e9b69..969ef4f 100644 --- a/src/app.ts +++ b/src/app.ts @@ -11,7 +11,8 @@ import { initGuildCommands } from './interactions'; import writeToLog from './utils/writeToLog'; const client = new Discord.Client({ - intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildVoiceStates] + intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildVoiceStates], + shards: 'auto' }); client.on('interactionCreate', async (interaction) => {