How to register commands without loadMessageCommandListeners=true?

I'm currently trying to split my bot into modules to keep the codebase cleaner and easier to maintain, but I'm having trouble figuring out how to register commands without loadMessageCommandListeners=true. I am willing to sacrifice auto-loading of commands, I just need to be able to load them from each of my code's "modules"
4 Replies
Favna
Favna2y ago
Sapphire Framework
Implementing a discord.py like Cog system | Sapphire
Developer who come from the Python ecosystem may be familiar with the "[Cog]" system that discord.py has implemented.
Favna
Favna2y ago
That's for the modules part anyway You're also going to have to implement all of the message listener events yourself Obviously without a listener for messages, you're not processing messages
Favna
Favna2y ago
GitHub
framework/src/optional-listeners/message-command-listeners at main ...
Discord bot framework built on top of discord.js for advanced and amazing bots. - framework/src/optional-listeners/message-command-listeners at main · sapphiredev/framework
Favna
Favna2y ago
The only reason you should keep that option false is if you only use application commands. If you use any message commands, you should enable the option. I see no reason why you shouldn't. Modularizing the code has nothing to do with enabling the option or not
Want results from more Discord servers?
Add your server