Simple question, how can I check if an incoming message is *specifically* a slash command?

How can I check to see if an incoming message (messageCreate) is a slash command? Sometimes a typo can happen and a slash ('/') may be at the beginning of a string and I don't want that to be considered a slash command, I just want to check if the message is an actual slash command.
3 Replies
d.js toolkit
d.js toolkit8mo 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! - Marked as resolved by OP
Svitkona
Svitkona8mo ago
slash commands won't trigger messageCreate events
Swyftey
SwyfteyOP8mo ago
oh. Good to know lmao thanks
Want results from more Discord servers?
Add your server