Alex
SIASapphire - Imagine a framework
•Created by Alex on 11/26/2024 in #discordjs-support
Interactions randomly fail in a dockerized bot
I am not sure if this is inherently a sapphire thing or a discord.js thing but
My bot (code found here ) has a weird issue to it where it would occasionally just fail commands entirely https://alex.thefoxesare.online/powershell_vFxRKxUOPM.png without any reason in particular. A recurring problem was when a command I don't have permission to run is run and then any command after it would cause the unknown interaction error to happen, sometimes other interactions. I have never seen this happen in a locally hosted instance so I'm not exactly sure what's happening here.
The VPS that the docker instance is on has 2GB of RAM and more than enough CPU and I haven't been hitting any of those limits.
After the unknown interaction error, the bot would shut down shortly after.
The only other detail I necessarily have is that I'm using global commands and I restarted the bot a few times along with tryong to prun the commands and recreate them but it persists
22 replies