Log all events into server channel
Hey! I'm trying to write a simple script that will log events into a server channel. Seems simple...but it's just not working for me. Anyone do something like this?
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!
- ✅
Marked as resolved by OPthere's no eventNames property in interaction, not sure where you got that from
you could just pass the event name as a parameter in your logger to simplify things
Thanks! I’ll change that when I’m back at my pc later.
Follow up: will this potentially create an infinite loop where an event trigger this to post in a channel which itself triggers an event?
yes, follow what Qjuh said
Ah, I hadn't read his message yet. Thank you both.