External Module Commands "success" but no execution [Startup.core]
TheKingEagle opened this issue · 1 comments
TheKingEagle commented
Summary
Any module command loaded from modules
folder will fail to execute in startup.core
To Reproduce
- Ensure TestModule is in modules folder
- Open
startup.core
- insert a command from module that also has a service dependency (
CMD polljoin <your guildID> <your channel id>
) - save then restart bot.
- Notice a success message in console but no actual command is performed.
Expected behavior
Command debug messages and actions are executed as requested.
Resolution
After adding a FirstChanceException handler, it was noted that the requested dependency was not found, and the module could not be loaded. This was caused by calling module loader after CustomCommandManager (thus including CoreScript) was already fed with a previously built service provider.
TheKingEagle commented