I need help with my Discord Bot
Can anyone help me with my bot? The command is not executed and no error appears in the console.
15 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!
- ✅
Marked as resolved by OPi told you to learn the basics of js first, not to ignore my answer and create a post
index:
command (user.js)
please just learn js
Help me and I promise you that I can learn Discordjs as soon as possible
No
you will just run into more issues
Help me
it will be very hard to help you if you don't know what a function is
it will be much easier to learn how to use
discord.js
if you know the basics of javascriptI know what a function is
so then could you elaborate on what you're confused about here? https://discord.com/channels/222078108977594368/824411059443204127/1171922079025737808
A function is a specific action that performs
I just didn't know what was meant by function.
It is difficult to write and understand German without a translator. I have a bit of an idea but I'm really desperate because I used to code with other development languages
Im sorry..
you don't need to continue the conversation in multiple places
that being said, this still doesn't explain what exactly you're confused about
you have a function that you export
you were asked to show the code where you import and call this function
And that's exactly it. I don't know where to export the function. I think you mean deploy-commands.js
you need to import it in your event handler
or set it in your client.commands
the guide covers this
Okay