Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'name') #11

Open
BxinoProductions opened this issue Sep 9, 2022 · 4 comments
Open

Cannot read properties of undefined (reading 'name') #11

BxinoProductions opened this issue Sep 9, 2022 · 4 comments

Comments

@BxinoProductions
Copy link

i was in class so i cudent answer
im getting this

TypeError: Cannot read properties of undefined (reading 'name')
at /home/runner/BxinoUtilities/commands/prefix/Info/help.js:10:87
at /home/runner/BxinoUtilities/node_modules/@discordjs/collection/dist/collection.cjs:174:14
at Function.from ()
at Map.map (/home/runner/BxinoUtilities/node_modules/@discordjs/collection/dist/collection.cjs:172:18)
at Object.run (/home/runner/BxinoUtilities/commands/prefix/Info/help.js:10:45)
at Client. (/home/runner/BxinoUtilities/events/Guild/messageCreate.js:60:15)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)

how to fix

@D99-1
Copy link

D99-1 commented Sep 11, 2022

Define 'name' 🤯

@FisbanRegner
Copy link

with out code it hard to say what the problem actually is, but it appears that in line 10 of help.js you are looking for 'name' and its undefined.

@shimizudev
Copy link

Can you share your code?

@Nathaniel-VFX
Copy link
Owner

Your file locations is /commands/prefix/info/help.js
But the handler is suitable for the /commands/info/help.js
The code cannot access the name properties in your file due to different file location, so you can either change the code of the handler or remove your prefix folder.

@Nathaniel-VFX Nathaniel-VFX changed the title still need help Cannot read properties of undefined (reading 'name') Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants