Slash and message commands.

Can I make a slash command and a message command in the same archive?
9 Replies
Favna
Favna2y ago
yes
Eduardo
EduardoOP2y ago
how it works? @Favna
Favna
Favna2y ago
By having both a messageRun and chatInputRun method in the same file
Eduardo
EduardoOP2y ago
ok I have this, but it doesn't work
Eduardo
EduardoOP2y ago
Eduardo
EduardoOP2y ago
the bot emits the MessageCreate event
Spinel
Spinel2y ago
- Which version of @sapphire/framework are you using? - What's your file/folder structure? - Did you use the CLI to generate your bot? - What's your "main" property in package.json - Are you using TypeScript? And if so, how are you compiling and running your code? That is to say, what are your build and startup scripts? - In case you are using version 3.0.0 or higher of @sapphire/framework, and your problem related to message commands, did you add loadMessageCommandListeners to your SapphireClient options Remember that if you are new to @sapphire/framework it is important that you read the user guide.
Favna
Favna2y ago
last point ThisPoint do you the correct intents Guilds, GuildMessages and MessageContent I said last point
Eduardo
EduardoOP2y ago
Oh, I didn't see I'm sorry now it works, thank you so much
Want results from more Discord servers?
Add your server