| @@ -9,6 +9,7 @@ In order to create a command, you have to add a CommandService to the client. | |||||
| CommandService takes a CommandServiceConfig object as its parameter. Inside CommandServiceConfig you can setup your CommandChar(s) and HelpMode. | CommandService takes a CommandServiceConfig object as its parameter. Inside CommandServiceConfig you can setup your CommandChar(s) and HelpMode. | ||||
| Example (CommandService creation) | Example (CommandService creation) | ||||
| ---------------- | |||||
| .. literalinclude:: /samples/command_service_creation.cs | .. literalinclude:: /samples/command_service_creation.cs | ||||
| :language:csharp6 | :language:csharp6 | ||||
| @@ -23,7 +24,7 @@ Example (Command creation) | |||||
| :language: csharp6 | :language: csharp6 | ||||
| :tab-width: 2 | :tab-width: 2 | ||||
| If you have, or plan to have multiple commands that could be fit in a certain "group", you should use Command Groups. Command Groups can have same prefix for a group of commands, followed by a prefix for a certain command. | |||||
| If you have, or plan to have multiple commands that could be fit in a certain "group", you should use Command Groups. Command Groups can have same prefix for a group of commands, followed by a prefix for a certain command. In the following example, we will move our 'greet' command to the group called "do", and add another command 'bye'. | |||||
| Example (CommandGroup creation) | Example (CommandGroup creation) | ||||
| ---------------- | ---------------- | ||||