The application did not respond + err #1326
-
Describe the bugI was following the discord.js code EXACTLY I ran the code but got the resulting error: `node:events:491 TypeError: Cannot read properties of undefined (reading 'get')` After throwing in (at the index.js file):
I got a new error saying client is not defined. Each time I run the /ping command I get the "The application did not respond" error as a reply. To Reproduce(.-.)/ follow the code exactly (lol I spent a couple hours debugging and it still fails. I guess I am just a crappy coder.) ScreenshotsDevice (please complete the following information)Device : Windows 10 computer w/ vs code Additional notesHave a great rest of your day! I wish thy no pesky insects. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Whatever is in front of that
Then you didn't define the identifier
Simply means that you don't send a response. If you are following the guide, that'd be placed in the respective When you are done with a section, you can review the resulting code and compare it with yours to make sure you didn't miss anything. |
Beta Was this translation helpful? Give feedback.
-
If this is indeed a bug with the guide, please provide the exact part of the guide you are receiving the error from. |
Beta Was this translation helpful? Give feedback.
-
Hello! Thank you so much for viewing my issue. This is the line of code that had an error (this is in interactionCreate.js in the events folder https://github.com/discordjs/guide/tree/main/code-samples/creating-your-bot/event-handling I am at this point in the section and I tried using the exact code. (i also added and ran deploy-commands + the commands folder with ping.js) This is the current error I am faced with: Perhaps I did something wrong with the file paths? Is there something I need to install? (Sorry I do code in VS super light mode) |
Beta Was this translation helpful? Give feedback.
-
This suggests that you haven't defined |
Beta Was this translation helpful? Give feedback.
This suggests that you haven't defined
client.commands
, which is covered in the Loading command files section on one of the earlier pages