error on handelcomands though i didnt wrote anything there
client.commands.set(command.data.name, command);
^
TypeError: Cannot read properties of undefined (reading 'name')
4 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.
- Issue solved? Press the button!
this is the full error
this is handelcomands code
At least one of your commands does not have a data property.
ok i had a command with nothing writted on it