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 toolkit12mo 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
BonniaOP12mo ago
No description
Bonnia
BonniaOP12mo ago
Sorry for the spam I got a some glitch
Bonnia
BonniaOP12mo ago
No description
Bonnia
BonniaOP12mo 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
dank12mo ago
be patient for help Your intents import and usage are spelt incorrectly
d.js docs
d.js docs12mo ago
Suggestion for @Bonnia:dtypes v10: GatewayIntentBits read more
Bonnia
BonniaOP12mo ago
What do you mean?
dank
dank12mo ago
Import GatewayIntentBits from discord.js And replace it in your client constructor
Bonnia
BonniaOP12mo ago
Could you point at it?
dank
dank12mo ago
What
Bonnia
BonniaOP12mo ago
Point at it which client you meant?
dank
dank12mo ago
Remove whatever IntetBitField is and replace it with GatewayIntentBits
Bonnia
BonniaOP12mo ago
Oh
treble/luna
treble/luna12mo ago
that should error so i doubt that your code is saved
Bonnia
BonniaOP12mo 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/luna12mo ago
you misspelled your intents
Bonnia
BonniaOP12mo ago
No I use intents
d.js docs
d.js docs12mo ago
class IntentsBitField (extends BitField) Data structure that makes it easy to calculate intents.
Bonnia
BonniaOP12mo ago
Ok
treble/luna
treble/luna12mo ago
...which you misspelled
Bonnia
BonniaOP12mo ago
Ok-.- Btw new IntentsBitField(bits); Where I put it?
treble/luna
treble/luna12mo ago
you dont just import the enum
Bonnia
BonniaOP12mo ago
Oh ok
treble/luna
treble/luna12mo ago
and then do waht you did above just with the correct spelling which can be found in the docs
Bonnia
BonniaOP12mo ago
Ok! Or hold on
treble/luna
treble/luna12mo ago
all intents and their spelling can be found here
Bonnia
BonniaOP12mo ago
Ig JavaScript need more time to get known about it-.-
treble/luna
treble/luna12mo ago
you are expected to have a solid understanding of js yes you are just struggling with spelling though
Bonnia
BonniaOP12mo ago
You know? I’ll try do it again and make sure I’ll do it better Thxo my siro >:3
Want results from more Discord servers?
Add your server