Bot becomes unresponsive after executing a slash command
Hello! I'm building a discord bot and I've got it functional up to the point of the slash command handler working for one iteration. After any user sends a slash command the bot becomes unresponsive
I'm not sure where in my Logic the issue may be, so I'm going to post the relevant code blocks and maybe someone might be able to help me understand where I went wrong š
20 Replies
ā¢ 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.discord.js@14.11.0
node v18.16.0
bot.js
handleCommands.js
interactionCreate.js
ping.js (the only command I currently have)
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
there aren't any compiler errors in VS Code
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
none that come up no
it just freezes on the console
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
like, I can't type anything into the console after I hit to run
and I get this error the second time I try to use a slash command
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
handleEvents.js
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
just set that to false or remove it entirely?
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
I'll give this a try, thank you š
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
I was worried about that too x.x
sometimes it returns a positive value like 30 or so which seemed correct
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
that worked! š
thank you so much
and now the -1 isn't showing up either
lol