Skip to content

Commit

Permalink
Enable automatic sharding ✂️
Browse files Browse the repository at this point in the history
  • Loading branch information
wotschofsky committed Jan 29, 2025
1 parent fe9935a commit 14adee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 14adee5

Please sign in to comment.