text command triggered by mentioning bot (no command name)

I want to trigger a text command when the user mentions the bot, but with no command name. what is the best way to implement this?
Solution:
Add a listener called mentionPrefixOnly
Jump to solution
3 Replies
Kevin
KevinOP3w ago
this is only for prefixing the command name though, right? how do I make a command that has no name and triggers just by mentioning the bot?
Solution
Favna
Favna3w ago
Add a listener called mentionPrefixOnly
Want results from more Discord servers?
Add your server