New to Discord.js

Hello, I'm new to using Javascript to code a Discord bot (I'm also new to using Javascript to code, this is my first experience). I have setup a basic code to start the bot, but I need to have intents. The question is how can I add intents into my bot? Or maybe can I have a latest version of example codes for beginner? Thanks for helping.
5 Replies
d.js toolkit
d.js toolkit9mo 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 docs9mo ago
:guide: Popular Topics: Gateway Intents Rather than blindly enabling all intents, consider what information you actually need. Reducing the number of unnecessary events your bot receives improves performance and reduces bandwidth and memory usage. read more
Jy.
Jy.OP9mo ago
Also I have tried searching for Google and Stack Overflow but none of them helped
d.js docs
d.js docs9mo ago
:guide: Popular Topics: Gateway Intents - Enabling Intents read more
Jy.
Jy.OP9mo ago
I'll read the guide fully. Thanks for helping
Want results from more Discord servers?
Add your server