Browse Source

Fixes, improvements

pull/14/head
Master Kwoth 9 years ago
parent
commit
236efc68b7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      docs/features/commands.rst

+ 2
- 1
docs/features/commands.rst View File

@@ -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.

Example (CommandService creation)
----------------

.. literalinclude:: /samples/command_service_creation.cs
:language:csharp6
@@ -23,7 +24,7 @@ Example (Command creation)
:language: csharp6
: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)
----------------


Loading…
Cancel
Save