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
d.js toolkit
d.js toolkit15mo ago
- 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!
d.js docs
d.js docs15mo ago
guide Home: What's new read more
Matthewsr71
Matthewsr71OP15mo ago
hmm
treble/luna
treble/luna15mo ago
you should have a solid understanding of js before beginning
Matthewsr71
Matthewsr71OP15mo ago
Like what should I explore in more?
treble/luna
treble/luna15mo ago
javascript like the basics at the very least
Matthewsr71
Matthewsr71OP15mo ago
I know javascript..
treble/luna
treble/luna15mo ago
then follow the guide
Nullified
Nullified15mo ago
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😄
treble/luna
treble/luna15mo ago
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
Nullified
Nullified15mo ago
That's true but they can provide some more commentary to some best practices etc, can't hurt I guess 👍
KevinFoged
KevinFoged15mo ago
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 nervousTou
Asteria ☽☾ Moon
What about freecodecamp?
treble/luna
treble/luna15mo ago
freecodecamp is for js, not djs
Looped
Looped15mo ago
freecodecamp is for the javascript language rather than the Discord.JS module
Asteria ☽☾ Moon
Exactly so shouldn’t I have some foundational knowledge of JavaScript
Looped
Looped15mo ago
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)
Snowflake
Snowflake15mo ago
I've been using Sapphire framework lately for my handler, good stuff
Want results from more Discord servers?
Add your server