Not enough sessions

I got this error when starting my bot
Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-05-05T16:50:40.537Z
| at WebSocketManager.connect (/Blazing Bots/campmaster-bot/node_modules/@discordjs/ws/dist/index.js:1362:13)
| at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
| at async WebSocketManager.connect (/Blazing Bots/campmaster-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:206:5)
at async Client.login (/Blazing Bots/campmaster-bot/node_modules/discord.js/src/client/Client.js:226:7)
Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-05-05T16:50:40.537Z
| at WebSocketManager.connect (/Blazing Bots/campmaster-bot/node_modules/@discordjs/ws/dist/index.js:1362:13)
| at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
| at async WebSocketManager.connect (/Blazing Bots/campmaster-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:206:5)
at async Client.login (/Blazing Bots/campmaster-bot/node_modules/discord.js/src/client/Client.js:226:7)
What does this mean?
2 Replies
d.js toolkit
d.js toolkit14mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
sproj003 ♿
sproj003 ♿14mo ago
node version 18.14 djs ThankYou