Modules

Custom user-generated commands are not able to be created at the moment.

We're working on it!

NeXos Stacks have been replaced by initiators.

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. \/

module.exports = {
	name: 'title',
	description: 'more about this in the next section',
	execute(message, args) {
		// your code here - this is called the executor 
	},
};

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.

init run uni

Last updated