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
- 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!Sorry for the spam I got a some glitch
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?
be patient for help
Your intents import and usage are spelt incorrectly
What do you mean?
Import
GatewayIntentBits
from discord.js
And replace it in your client constructorCould you point at it?
What
Point at it which client you meant?
Remove whatever IntetBitField is and replace it with GatewayIntentBits
Oh
that should error
so i doubt that your code is saved
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
you misspelled your intents
No I use intents
Ok
...which you misspelled
Ok-.-
Btw
new IntentsBitField(bits);
Where I put it?you dont
just import the enum
Oh ok
and then do waht you did above
just with the correct spelling
which can be found in the docs
Ok!
Or hold on
all intents and their spelling can be found here
Ig JavaScript need more time to get known about it-.-
you are expected to have a solid understanding of js yes
you are just struggling with spelling though
You know? I’ll try do it again and make sure I’ll do it better Thxo my siro >:3