Only Slash Commands Not Responding, Showing "The application didn't respond in time" with No console

I've tried everything I could, including regenerating the Token and creating a new discord.js project from scratch. Out of all my events, only Events.InteractionCreate isn't receiving anything—no error messages, and nothing is logged even after using console.log. Events.MessageCreate and Events.ClientReady are both working fine and successfully logging outputs. All slash commands have been successfully registered, but none of them (/ping, /user, /server) are working or responding in any way.
11 Replies
d.js toolkit
d.js toolkit2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
HappyApple
HappyAppleOP2mo ago
package.json:
{
"dependencies": {
"discord.js": "^14.16.3"
},
"name": "discord-bot-two",
"version": "1.0.0",
"main": "index.js",
"devDependencies": {},
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
{
"dependencies": {
"discord.js": "^14.16.3"
},
"name": "discord-bot-two",
"version": "1.0.0",
"main": "index.js",
"devDependencies": {},
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
TÆMBØ
TÆMBØ2mo ago
only Events.InteractionCreate isn't receiving anything
How have you verified this? Care to share some of your code?
HappyApple
HappyAppleOP2mo ago
No description
HappyApple
HappyAppleOP2mo ago
index.js:
TÆMBØ
TÆMBØ2mo ago
Do you happen to have an interactions endpoint URL set for your app?
HappyApple
HappyAppleOP2mo ago
no
TÆMBØ
TÆMBØ2mo ago
And just as a sanity check, where did you look to verify that?
HappyApple
HappyAppleOP2mo ago
No description
TÆMBØ
TÆMBØ2mo ago
:Thonk: And you're confident you have your code saved as well?
HappyApple
HappyAppleOP2mo ago
oh, I successfully resolved it! I had previously set an interactions endpoint URL, but after removing it and testing again, the slash commands worked successfully! thank you ! 🥹
Want results from more Discord servers?
Add your server