help needed regarding prefix handler
hey i have (tried) to make a prefix command handler for my bot, down is my code for it, the bot boots up normally but idk why it doesn't react to the commands
messageCreate.js
handlePrefixes.js
pingPrefix.js
3 Replies
(I know this is #discordjs-support but have you considered using Sapphire framework, considering you're in the Sapphire server after all)
well no, the d.js server staff was not responding so i thought of coming here
never used sapphire tho
So at first glance it looks to me like you are mixing
messageCreate
and interactionCreate
. Buttons, modals, and Application commands (slash/context) create interactions. Message commands do not. That event gets a Message<boolean>
not an interaction.
Looking at your handler all of your functionality comes out of the box in Sapphire. I'd highly recommend looking into it.