Skip to content

Additional Features

Miu edited this page Sep 28, 2023 · 3 revisions

In addition to many other features, Nexus offers some tools that can be used for your Discord bot. You can choose to use these additional features, or opt to create your own design, whichever suits your application the most.

Basic Subcommand Routing

Nexus provides a basic subcommand router that's designed to be straightforward, minimal, and devoid of unnecessary complexity. This router is ideal for basic requirements and can be extended to suit your preferences. It serves as a foundational example for constructing subcommand routers in Nexus.

For detailed usage instructions, you can refer to our examples:

To gain insights into how the subcommand router is constructed, you can explore the source code at:

Option Validation

Nexus offers a simplified approach to option validation, minimizing code duplication. While not the most flexible method, it satisfies the needs of most developers and prevents excessive code repetition.

To learn more about utilizing option validation, you can review our example:

You can also read the original discussion about this:

To get started with Nexus, we recommend reading the following in chronological:

  1. Installation & Preparing Nexus
  2. Designing Commands
  3. Command Interceptors
  4. Additional Features (Subcommand Router, Option Validation)
  5. Context Menus
  6. Command Synchronization

You may want to read a specific part of handling command and middleware responses:

You can also read about additional features of Nexus:

You can read about synchronizing commands to Discord:

For more additional performance:

Additional configurations:

Clone this wiki locally