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
SourceBin
part of interactionCreate.js
Instantly share your code with the world.
SourceBin
handlePrefixes.js
Instantly share your code with the world.
SourceBin
pingPrefix.js
Instantly share your code with the world.
3 Replies
Favna
Favna13mo ago
(I know this is #discordjs-support but have you considered using Sapphire framework, considering you're in the Sapphire server after all)
Resident Of Prey
Resident Of Prey13mo ago
well no, the d.js server staff was not responding so i thought of coming here never used sapphire tho
WhacK
WhacK13mo ago
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.
Want results from more Discord servers?
Add your server