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 toolkit14mo 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 docs14mo ago
guide Home: What's new read more
Matthewsr71
Matthewsr71OP14mo ago
hmm
treble/luna
treble/luna14mo ago
you should have a solid understanding of js before beginning
Matthewsr71
Matthewsr71OP14mo ago
Like what should I explore in more?
treble/luna
treble/luna14mo ago
javascript like the basics at the very least
Matthewsr71
Matthewsr71OP14mo ago
I know javascript..
treble/luna
treble/luna14mo ago
then follow the guide
Nullified
Nullified14mo 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/luna14mo 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
Nullified14mo ago
That's true but they can provide some more commentary to some best practices etc, can't hurt I guess 👍
KevinFoged
KevinFoged14mo 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/luna14mo ago
freecodecamp is for js, not djs
Looped
Looped14mo 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
Looped14mo 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
Snowflake14mo ago
I've been using Sapphire framework lately for my handler, good stuff
Want results from more Discord servers?
Add your server