-
-
Notifications
You must be signed in to change notification settings - Fork 1
Additional Features
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.
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:
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:
All information in this wiki was written during v1.2.0
, we recommend updating to that version if you are below, or creating an issue in GitHub, updating the wiki if the current information is missing, outdated or lacking.
To get started with Nexus, we recommend reading the following in chronological:
- Installation & Preparing Nexus
- Designing Commands
- Command Interceptors
- Additional Features (Subcommand Router, Option Validation)
- Context Menus
- 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:
- Subcommand Routing
- Option Validation
- Express Way (shard management)
- Inheritance
- Feather Pagination
- Nexus.R
You can read about synchronizing commands to Discord:
For more additional performance:
Additional configurations: