DiabolusGX
DiabolusGX
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
I get this error once every few weeks and discord resets my bot's token.
Unhandled rejection: Authentication failed at WebSocketShard.onClose (/home/booster-bot/booster-bot/node_modules/@discordjs/ws/dist/index.js:1035:15)
Unhandled rejection: Authentication failed at WebSocketShard.onClose (/home/booster-bot/booster-bot/node_modules/@discordjs/ws/dist/index.js:1035:15)
It appears your bot, Booster Bot, has connected to Discord more than 1000 times within a short time period. Since this kind of behavior is usually a result of a bug we have gone ahead and reset your bot's token.
Unfortunately I don't have full stack trace, can somone help with potential issue for this? I'm using djs v14.11.0
42 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 1/18/2024 in #djs-questions
Separate instance of container for each shard
Is there any way to shard my bot in multiple processes? like running multiple docker containers for each shard?
6 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2023 in #djs-questions
Better way to plugin slash commands support with existing msg content commands
Can someone suggest a way to plugin interactions with existing command structure for djs? like it's mentioned on djs guide - command file will have few properties and 1 exec function I can see 2 ways here: 1. I extract whole business logic in different functions and keep communication fn different for msg content and slash command 2. I can put if checks and use proper fn of msg or interaction to reply Not satisfied with either and looking for better solution
21 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 9/11/2022 in #djs-questions
Error [GUILD_MEMBERS_TIMEOUT] Members didn't arrive in time.
Hi, I'm getting this err when bot starts & it does not execute any event (including ready event) when this err arrives. It's not happening all the time.. err:
Error [GUILD_MEMBERS_TIMEOUT]: Members didn't arrive in time.
at Timeout._onTimeout (/home/booster-bot/booster-bot/node_modules/discord.js/src/managers/GuildMemberManager.js:454:16)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7) {
[Symbol(code)]: 'GUILD_MEMBERS_TIMEOUT'
}
Error [GUILD_MEMBERS_TIMEOUT]: Members didn't arrive in time.
at Timeout._onTimeout (/home/booster-bot/booster-bot/node_modules/discord.js/src/managers/GuildMemberManager.js:454:16)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7) {
[Symbol(code)]: 'GUILD_MEMBERS_TIMEOUT'
}
76 replies