#Logs

23 messages · Page 1 of 1 (latest)

uneven jay
#

Does anyone have an idea why the ban remove will log but none of the other guild events will?

agile charmBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
uneven jay
sharp saddle
#

Probably because you have GuildModeration intent but not GuildMembers intent

#

Wait, are all these in the same file?

#

You overwrite module.exports each time. So only the last definition of it is actually exported

uneven jay
sharp saddle
#

Make one file for each event

uneven jay
#

Sigh okay

#

Ty

uneven jay
sharp saddle
#

Why would you want to?

#

It depends on how your event handler works

uneven jay
#

Just less clutter tbh

#

That's my handler which handles both commands and events

sharp saddle
#

Your handler registers one event listener per file. So it assumes you have one file per event

#

And less clutter means less clutter in a single file, which separating them would give you.

#

Putting all your code in a single file is more clutter

uneven jay
#

I'll seperate into seperate files then

#

Sweeeet

#

Ty qjuh!