Modules
discord.js has multiple ways you can add more commands. NeXos uses an advanced command handler, or what we call NeXos's Command Dependency Manager. You are required to use this format for your command to work with NeXos.
Modules should look like this. \/
Modules should be named as (user)-commandname.js. You can't use the same name in more then 1 module.
Along with a module, you'll also need to provide a proper initiator.
Diagram
Modules
POST
uniconnect - modules - v2
Modules are what initiate the code and result in a action.
Headers
Name
Type
Description
initiator
object
tells the dependency manager what the module is about, and refers to the executor.
Request Body
Name
Type
Description
executor
object
executes the code inside of the curly brackets.
Last updated