#Hello, i have problem. My event (guildBanAdd) is not working idk what happened. Yes, i have GUILD_BA

1 messages · Page 1 of 1 (latest)

red crater
#

Is the event triggered at all?

dense otter
#

what?

#

i don't understand

#

sorry

red crater
#

So when the event happens, it runs a function, that you already typed

#

Is that function running at least?

dense otter
#

version of discord.js?

red crater
#

You can check it with a debugger, or a console.log

red crater
dense otter
#

event don't works

#

yes

#

i check this

#

that u mean?

red crater
#

Well, if the first line is console.log, and you get nothing, then indeed the event is not triggered

dense otter
#

yes

red crater
#

Can you post the code of client.on?

dense otter
#

i have event handler

red crater
#

And the code where you use this module?

#

I wanna see how you inject this event handler

dense otter
#

bro

#

handler works

#

other events works

#

soo

red crater
#

Then it should run.. Maybe try to force the guild in the cache?

#

client.guilds.fetch()

dense otter
#

fixed

#

i changed sequence of intent

#

but ty for help

red crater
#

Can you please show me what changes you made?