new Client VS new REST + new WebSocketManager
I'm confused. I've read the guide but I see competing examples.
Should I use :
or
Using the first option
client.on(Events.ClientReady, msg => {
never triggers, I need to use gateway.on(Events.ClientReady, msg => {
(not client.gateway.on, TS warns about invalid types)
I'm guessing I'm also confused betweent the discord.js package and the @discordjs package 😂
I never used discordjs before and I'm very lost. No two starting examples are alike :/ HALP ! 🙏8 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 staffsounds like you just want the second then
Why ? Whats the difference ? I dont know what I want, I cant find any explanation of the difference between the two 😂
the first is just the second but with extra steps
😂 I'm sold
if you're new to djs i highly doubt youd want that
Arigato! 🙏