Joining and leaving VCs fires off messageCreate event
I'm working on a mod for discord.js with some quality of life changes and one of the things in it are custom event handlers, for some reason joining and leaving vcs keeps firing off the messageCreate event and not the voiceStateUpdate event and I wanted to know if it's smth wrong with my code or just it being weird
8 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!the only error given is because of it firing off the messageCreate event incorrectly
I can show the code from the events it basically just takes the discord.js events and formats them with my stuff
Probably something on your end.
What kind of messages are unexpectedly emitted? ( 🐌)
I also tried logging and it doesn't even fire off the voiceStateUpdate
just a blank message
I can check the ids rq
to see
Try getting the url from it and paste it in Discord. You can then jump to it.
join voice event I tried logging to see if it even fired and it didn't
and the message create event
I figured it out I think
idk why the voice state wasn't responding
but the message create event is getting fired off bc of dyno logging me joining
maybe
it should have all the intents
but I can check ig
just a testing bot so
I was just making sure everything worked
ye should have intents for it
and the content was blank
bc it was an embed
yea
and the reason it was crashing in the first place was bc apparently it can't fetch bots by id ig
which I fixed
it's still not firing but as long as it doesn't crash I'm fine with it for rn ig
ye maybe
also
I think I fixed the firing issue I didn't realize it but I did have different intents than the default ones I set
yeah it works now