How do I start making a code?
Howdy! I'm a new developer to discord.js! I am wondering, how do I start making a code for my discord bot?
18 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!hmm
you should have a solid understanding of js before beginning
Like what should I explore in more?
javascript
like
the basics at the very least
I know javascript..
then follow the guide
The guide has a good walk through of how to create your first bot. If that's not enough I suggest going to YouTube for some great tutorials the community posted 👍
Have fun😄
I wouldn't really recommned youtube as those videos almost get outdated instantly, they do maybe provide a good command handler sometimes that i admit
That's true but they can provide some more commentary to some best practices etc, can't hurt I guess 👍
Some of them also use bad practices, because they're made by people who don't fully understand JS/TS themselves, don't comply to the conventions, etc., leading to poor code quality.
There's very few DJS related channels I'd actually recommend 

What about freecodecamp?
freecodecamp is for js, not djs
freecodecamp is for the javascript language rather than the Discord.JS module
Exactly so shouldn’t I have some foundational knowledge of JavaScript
Freecodecamp gives a basic idea of how JS works, which should make this easier, but you will still need to know about Discord.JS to begin your journey.
I recommend checking https://discordjs.guide/#before-you-begin for basics, and/or watch youtube tutorials (not recommended, tutorial hell is bad)
I've been using Sapphire framework lately for my handler, good stuff