Adding Categories
This page explain how to add more categories to the command handler
1
// we have `commands` object that was already initialized
2
3
// use the addCategory function
4
5
commands.addCategory("some-new-category", "Some new category");
6
7
// This function is also stackable
8
commands
9
.addCategory("some-new-category1", "Some new category 1")
10
.addCategory("some-new-category1", "Some new category 2");
Copied!
Last modified 4mo ago
Copy link