dev_panda
DIAdiscord.js - Imagine an app
•Created by dev_panda on 10/2/2024 in #djs-questions
Bot Appearing Offline on Some Shards
I’m running a bot on 635K servers, using
discord-hybrid-sharding
and discord-cross-hosting
for efficient shard management. The setup works fine at the beginning, but after 6-7 hours of uptime, I experience the following issues:
1 Bot appears offline in some Discord servers (specific shards seem to stop functioning or disconnect).
2 .stats
command fails to return the correct total guilds and user count after 6-7 hours of operation.
I've been experiencing a problem My Bot Appearing Offline in some Discord servers (shards) despite all clusters being online and functioning normally. There are no shardDisconnect event calls, and everything seems to be connected correctly based on the logs.
I've consulted the discord-cross-hosting support server, and they mentioned it's unlikely to be a hybrid hosting issue, suggesting it might be related to Discord.js or a network problem. However, after troubleshooting this issue for the past 6-7 days and asking for help in multiple servers, I haven't found a solution.
The bot connects and resumes fine, with no disconnect events. All shards are sending heartbeat acknowledgements, but the bot is still shown as offline in certain servers.
Could an expert please help me debug this? I'm stuck and not sure what to do next. Any help would be greatly appreciated!53 replies
DIAdiscord.js - Imagine an app
•Created by dev_panda on 2/2/2024 in #djs-questions
Slash Command
How do i mention a slash command ?
3 replies