Help bot not online

Hello there I just did a an the same code without any error but why my bot doesn’t work?
30 Replies
d.js toolkit
d.js toolkit5mo 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!
Bonnia
Bonnia5mo ago
No description
Bonnia
Bonnia5mo ago
Sorry for the spam I got a some glitch
Bonnia
Bonnia5mo ago
No description
Bonnia
Bonnia5mo ago
That’s my bot I put the same token but it doesn’t work with it by what the wrong I did? Ahem anyone please?
dank
dank5mo ago
be patient for help Your intents import and usage are spelt incorrectly
d.js docs
d.js docs5mo ago
Suggestion for @Bonnia:dtypes v10: GatewayIntentBits read more
Bonnia
Bonnia5mo ago
What do you mean?
dank
dank5mo ago
Import GatewayIntentBits from discord.js And replace it in your client constructor
Bonnia
Bonnia5mo ago
Could you point at it?
dank
dank5mo ago
What
Bonnia
Bonnia5mo ago
Point at it which client you meant?
dank
dank5mo ago
Remove whatever IntetBitField is and replace it with GatewayIntentBits
Bonnia
Bonnia5mo ago
Oh
treble/luna
treble/luna5mo ago
that should error so i doubt that your code is saved
Bonnia
Bonnia5mo ago
Uh nope I just started again But I don’t see any error but it won’t work like I want my bot be online
treble/luna
treble/luna5mo ago
you misspelled your intents
Bonnia
Bonnia5mo ago
No I use intents
d.js docs
d.js docs5mo ago
class IntentsBitField (extends BitField) Data structure that makes it easy to calculate intents.
Bonnia
Bonnia5mo ago
Ok
treble/luna
treble/luna5mo ago
...which you misspelled
Bonnia
Bonnia5mo ago
Ok-.- Btw new IntentsBitField(bits); Where I put it?
treble/luna
treble/luna5mo ago
you dont just import the enum
Bonnia
Bonnia5mo ago
Oh ok
treble/luna
treble/luna5mo ago
and then do waht you did above just with the correct spelling which can be found in the docs
Bonnia
Bonnia5mo ago
Ok! Or hold on
treble/luna
treble/luna5mo ago
all intents and their spelling can be found here
Bonnia
Bonnia5mo ago
Ig JavaScript need more time to get known about it-.-
treble/luna
treble/luna5mo ago
you are expected to have a solid understanding of js yes you are just struggling with spelling though
Bonnia
Bonnia5mo ago
You know? I’ll try do it again and make sure I’ll do it better Thxo my siro >:3