ClientMissingIntents, how do i fix this issue? i've tried everything it just doesnt work
please help
95 Replies



it just doesnt want to work, and idk what to do
is that line 45? and can you show how you import GatewayIntentBits?
how i import it?

its these lines

did you change your code? your error and code don't match
according to your error, it comes from line 45
??
but it can't come from here, so it suggests you changed it

presenceupdatestatus
i don't ermember changing my code
hm
is there a way to fix it?
can you try running again and sharing the new error
running again?
npm start?
also this shouldn't cause problems why do you have imports in line 39? imports are usually done at the top of the file
however you're running it and getting the error
i jst do npm start

its a discord bot
uh
this is whats above it


are you sure you're seeing this file?

index.js?
double check if it's saved

yh
yes, but the index.js in that path

the dot suggests it's not saved
in that path?
try saving first

alr
why does it say inptents and not intents
i've saved
inpntents i have no fkin diea
double check it says intents, and that it's saved
if that was the cause of it
i'll cry
nope

did this dot dissapear?
it did

it sfixed
its fixed...
i think
the command doesn't work.
define "doesn't work"

definiton : doesn't even show as a command
or im stupid
this is the code for a simple ping command

in the server i have the bot, it does not work
are you following the guide or...?
nor show the command
im doin everythin i can man </3
im sleep deprived liek hell
I get that, but from where are you getting the steps to create the bot
the guide? (https://discordjs.guide)
Maybe its doing the same thing it did with me where it takes a while to register? Are you registering globally or on guild
globally
thats probably why
it shouldn't take a while to register, it's immediate
not following that
refreshing the client sometimes help though
Globally took a while for me but idk today was my first day
im not following that *
in other words
but I'm not sure if that's the issue in the first place
what are you following then?
uhh, a random yt video
i found
how do i stop the bot now ffs
Is discordjs.guide the official guide? Thats probably why ive had some issues following some other guide then
Ctrl+c usually
that worked
let me try relaunch it
yes it is, and it's the only recommended way

command still doesn't show up under /
the code you shared defines a function for registering commands
but I don't see you calling that function anywhere
so im stupid in other words
it'll probably be easier to share the entire code
ngl
though I'd suggest learning from the guide, instead of following a random video
im sleep deprived like hell, and i can't do much π
you should sleep then
i need to get this finished
I see, yeah probably why i was having issues. Anyway ill leave this forum as this is unproductive toeards helping them
more like my ADHD is saying finish it then u can sleep
its fine man dw xD
Sleep then finish it
Trust me
don't got time
problem is, if you don't understand what you're doing, finishing will be really hard, even more so not being fully capable (because of lack of sleep)
this is the only window im open for w time
hm
you can come back later and check the guide instead, it explains step by step what each codeblock does

i do deploy commands
^^
i'm having trouble understnading
"registering" and "calling"
You defined it, but it isnt getting told to run anywhere
do you know js fundamentals?
ah
alr
well
i'll have to do that
i fixed it
π Pong!
Nice
thats not what i wnated ot do
Wrong bot
but yeah js had to do a few tweaks to the code
Close enough

it works tho :D
now i have to quickly code 2 more commands and i'll be fine,
thank you both for your time to help me, i will probably be back here tmrow or later today tysm tho!
Sure lol good luck
thanks, already coded 2 more commands