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

please help
95 Replies
d.js toolkit
d.js toolkitβ€’4w ago
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
it just doesnt want to work, and idk what to do
Amgelo
Amgeloβ€’4w ago
is that line 45? and can you show how you import GatewayIntentBits?
Amgelo
Amgeloβ€’4w ago
did you change your code? your error and code don't match according to your error, it comes from line 45
Amgelo
Amgeloβ€’4w ago
but it can't come from here, so it suggests you changed it
No description
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
presenceupdatestatus i don't ermember changing my code hm is there a way to fix it?
Amgelo
Amgeloβ€’4w ago
can you try running again and sharing the new error
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
running again? npm start?
Amgelo
Amgeloβ€’4w ago
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
Amgelo
Amgeloβ€’4w ago
are you sure you're seeing this file?
No description
Amgelo
Amgeloβ€’4w ago
double check if it's saved
Amgelo
Amgeloβ€’4w ago
yes, but the index.js in that path
Amgelo
Amgeloβ€’4w ago
the dot suggests it's not saved
Amgelo
Amgeloβ€’4w ago
try saving first
Amgelo
Amgeloβ€’4w ago
why does it say inptents and not intents
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
i've saved inpntents i have no fkin diea
Amgelo
Amgeloβ€’4w ago
double check it says intents, and that it's saved
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
if that was the cause of it i'll cry nope
Amgelo
Amgeloβ€’4w ago
did this dot dissapear?
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
it sfixed its fixed... i think the command doesn't work.
Amgelo
Amgeloβ€’4w ago
define "doesn't work"
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
definiton : doesn't even show as a command or im stupid
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
this is the code for a simple ping command
No description
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
in the server i have the bot, it does not work
Amgelo
Amgeloβ€’4w ago
are you following the guide or...?
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
nor show the command im doin everythin i can man </3 im sleep deprived liek hell
Amgelo
Amgeloβ€’4w ago
I get that, but from where are you getting the steps to create the bot the guide? (https://discordjs.guide)
yvsean
yvseanβ€’4w ago
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
Amgelo
Amgeloβ€’4w ago
it shouldn't take a while to register, it's immediate
Amgelo
Amgeloβ€’4w ago
refreshing the client sometimes help though
yvsean
yvseanβ€’4w ago
Globally took a while for me but idk today was my first day
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
im not following that * in other words
Amgelo
Amgeloβ€’4w ago
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
yvsean
yvseanβ€’4w ago
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
Amgelo
Amgeloβ€’4w ago
yes it is, and it's the only recommended way
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
command still doesn't show up under /
Amgelo
Amgeloβ€’4w ago
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
Amgelo
Amgeloβ€’4w ago
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 😭
Amgelo
Amgeloβ€’4w ago
you should sleep then
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
i need to get this finished
yvsean
yvseanβ€’4w ago
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
yvsean
yvseanβ€’4w ago
Sleep then finish it Trust me
Amgelo
Amgeloβ€’4w ago
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
Amgelo
Amgeloβ€’4w ago
you can come back later and check the guide instead, it explains step by step what each codeblock does
Amgelo
Amgeloβ€’4w ago
^^
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
i'm having trouble understnading "registering" and "calling"
yvsean
yvseanβ€’4w ago
You defined it, but it isnt getting told to run anywhere
Amgelo
Amgeloβ€’4w ago
do you know js fundamentals?
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
ah alr well i'll have to do that i fixed it
esmBot
esmBotβ€’4w ago
πŸ“ Pong!
Latency: 521ms
Latency: 521ms
yvsean
yvseanβ€’4w ago
Nice
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
thats not what i wnated ot do
yvsean
yvseanβ€’4w ago
Wrong bot
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
but yeah js had to do a few tweaks to the code
yvsean
yvseanβ€’4w ago
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!
yvsean
yvseanβ€’4w ago
Sure lol good luck
𝓐𝓺𝓾𝓲𝓡π“ͺ πŸ₯°
thanks, already coded 2 more commands

Did you find this page helpful?