Leveling system not working

So the issue is that when trying to make aleveling system and send the data tyo mongoDB it seems to not even be calling in the message interaction, but an even weirder part is that when I make it a slash command it does seem to call, however it immediatly halts with the if statement at the beginning? All I really want to do is make a simple leveling system that gets sent to mongoDB when A user sends a message in the guild.
4 Replies
d.js toolkit
d.js toolkit17mo ago
- 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!
Humoroussix2799
Humoroussix2799OP17mo ago
IGNORE PREVIOUS, I got it to work, sort of, It was what I needed to create a seperate client.on with a messageCreatre call althoug it does seem to create two models in my discordJS
Humoroussix2799
Humoroussix2799OP17mo ago
*mongoDB and says the level up message three times?
d.js docs
d.js docs17mo ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
Want results from more Discord servers?
Add your server