Error with deploying commands
I followed the discord.js guide and made my own command, but when I try and run
node deploy-commands.js
, it has an error with the dban.js file that i have made for my new command.11 Replies
- 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![email protected]
node.js v18.12.1
code:
Error:
you forgot a ,
and also
.addParam isnt a thing
how would i add a paramiter then?
where?
between your builder and execute
addStringOption etc
if you followed the guide, the guide should explain it
so i can also deleete the
type: 'string',
part too?you can delete the whole addParam function
also your handling logic is incorrect
i recommend following the guide
and your ban thing is also api spam
the bot is only in 4 servers
and its a private bot
oh also
thats invalid js
yeah im new to this whole js thing
your await needs to be async
then i recommend checking out #resources as a strong js understanding is required