diff options
Diffstat (limited to 'examples/05_command_framework/src')
| -rw-r--r-- | examples/05_command_framework/src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs index ca766db..be8ff41 100644 --- a/examples/05_command_framework/src/main.rs +++ b/examples/05_command_framework/src/main.rs @@ -170,6 +170,8 @@ fn main() { .group("Emoji", |g| g // Sets a single prefix for a group: .prefix("emoji") + // Sets a command that will be executed if only a group-prefix was passed. + .default_cmd(dog) .command("cat", |c| c .desc("Sends an emoji with a cat.") .batch_known_as(vec!["kitty", "neko"]) // Adds multiple aliases |