Slash and message commands.
Can I make a slash command and a message command in the same archive?
9 Replies
yes
how it works?
@Favna
By having both a messageRun and chatInputRun method in the same file
ok
I have this, but it doesn't work

the bot emits the MessageCreate event
- 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.last point
do you the correct intents

Guilds
, GuildMessages
and MessageContent
I said last pointOh, I didn't see
I'm sorry
now it works, thank you so much