Use commands from src and also from custom package in node_modules (Programatically add commands?)
There's probably a better way to do this, but wrapping my head around how I want to approach it.
I'm working on a variety of smaller NPM packages that I intend to use across a bunch of different bots/projects.
One of these packages, I want to have a debug command - without having to specify what that command is/does inside of each project - I only want to specify it once at the package level, as all projects will use it the same.
For this package, it exports a class, that is instantiated immediately after the project connects to the client.
When this class is initialized, it takes in the
SapphireClient - so I assume I can do something with this from here.
|-- |-- package
|-- |-- |-- Commands
|-- | --Commands
If I have the client object - what's the best approach I should take, to be able to run commands from the package and commands from the src?