You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.
When using registerCommandsIn() to register commands while using "type": "module" in package.json and coding commands as ES6 modules, Commando will not be able to register the commands. This is probably because it uses require-all which doesn't work with ES6 modules. I wrote a custom command loader to get around this, but it's not robust at all and probably isn't fit for a PR.
I'm not sure whether ESM support is in scope for Commando, but seeing as discord.js supports ESM I'm considering this issue as a bug. Feel free to correct me otherwise.
The text was updated successfully, but these errors were encountered:
When using
registerCommandsIn()
to register commands while using"type": "module"
in package.json and coding commands as ES6 modules, Commando will not be able to register the commands. This is probably because it uses require-all which doesn't work with ES6 modules. I wrote a custom command loader to get around this, but it's not robust at all and probably isn't fit for a PR.I'm not sure whether ESM support is in scope for Commando, but seeing as discord.js supports ESM I'm considering this issue as a bug. Feel free to correct me otherwise.
The text was updated successfully, but these errors were encountered: