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

132 messages ยท Page 1 of 1 (latest)

rugged pike
#

please help

signal yewBOT
rugged pike
#

it just doesnt want to work, and idk what to do

odd dust
# rugged pike

is that line 45? and can you show how you import GatewayIntentBits?

rugged pike
#

its these lines

odd dust
#

did you change your code? your error and code don't match

#

according to your error, it comes from line 45

rugged pike
#

??

odd dust
#

but it can't come from here, so it suggests you changed it

rugged pike
#

presenceupdatestatus

#

i don't ermember changing my code

#

hm

#

is there a way to fix it?

odd dust
#

can you try running again and sharing the new error

rugged pike
#

running again?

#

npm start?

odd dust
#

also this shouldn't cause problems why do you have imports in line 39? imports are usually done at the top of the file

odd dust
rugged pike
#

i jst do npm start

#

its a discord bot

odd dust
rugged pike
odd dust
#

double check if it's saved

rugged pike
#

yh

odd dust
rugged pike
odd dust
#

the dot suggests it's not saved

rugged pike
#

in that path?

odd dust
#

try saving first

rugged pike
rugged pike
odd dust
#

why does it say inptents and not intents

rugged pike
#

i've saved

#

inpntents i have no fkin diea

odd dust
#

double check it says intents, and that it's saved

rugged pike
#

if that was the cause of it

#

i'll cry

#

nope

odd dust
rugged pike
#

it did

#

it sfixed

#

its fixed...

#

i think

#

the command doesn't work.

odd dust
#

define "doesn't work"

rugged pike
rugged pike
#

or im stupid

#

this is the code for a simple ping command

#

in the server i have the bot, it does not work

odd dust
#

are you following the guide or...?

rugged pike
#

nor show the command

rugged pike
#

im sleep deprived liek hell

odd dust
#

I get that, but from where are you getting the steps to create the bot

hollow berry
odd dust
#

it shouldn't take a while to register, it's immediate

rugged pike
odd dust
#

refreshing the client sometimes help though

hollow berry
#

Globally took a while for me but idk today was my first day

rugged pike
#

im not following that *

#

in other words

odd dust
#

but I'm not sure if that's the issue in the first place

odd dust
rugged pike
#

uhh, a random yt video

#

i found

#

how do i stop the bot now ffs

hollow berry
#

Is discordjs.guide the official guide? Thats probably why ive had some issues following some other guide then

hollow berry
rugged pike
#

that worked

#

let me try relaunch it

odd dust
rugged pike
#

command still doesn't show up under /

odd dust
#

the code you shared defines a function for registering commands

#

but I don't see you calling that function anywhere

rugged pike
#

so im stupid in other words

rugged pike
#

ngl

odd dust
#

though I'd suggest learning from the guide, instead of following a random video

rugged pike
#

im sleep deprived like hell, and i can't do much ๐Ÿ˜ญ

odd dust
#

you should sleep then

rugged pike
#

i need to get this finished

hollow berry
rugged pike
#

more like my ADHD is saying finish it then u can sleep

hollow berry
#

Trust me

rugged pike
odd dust
#

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)

rugged pike
#

this is the only window im open for w time

odd dust
#

you can come back later and check the guide instead, it explains step by step what each codeblock does

rugged pike
#

i do deploy commands

rugged pike
#

i'm having trouble understnading

#

"registering" and "calling"

hollow berry
odd dust
#

do you know js fundamentals?

rugged pike
#

alr

#

well

#

i'll have to do that

#

i fixed it

half plankBOT
#

๐Ÿ“ Pong!

Latency: 521ms
hollow berry
#

Nice

rugged pike
#

thats not what i wnated ot do

hollow berry
#

Wrong bot

rugged pike
#

but yeah js had to do a few tweaks to the code

hollow berry
#

Close enough

rugged pike
#

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!

hollow berry
#

Sure lol good luck