aboutsummaryrefslogtreecommitdiff
path: root/examples/05_command_framework/src
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-09-11 17:37:44 +0200
committerGitHub <[email protected]>2018-09-11 17:37:44 +0200
commit75f6516fceb6d8e124f91ae25a10f74f183337ad (patch)
tree2d25d78512d279cf6d8f5e4e695399be617adab6 /examples/05_command_framework/src
parentFix to build with Rust 1.25.0. (diff)
downloadserenity-75f6516fceb6d8e124f91ae25a10f74f183337ad.tar.xz
serenity-75f6516fceb6d8e124f91ae25a10f74f183337ad.zip
Add single group help (#385)
Diffstat (limited to 'examples/05_command_framework/src')
-rw-r--r--examples/05_command_framework/src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs
index 647ea56..1f442c3 100644
--- a/examples/05_command_framework/src/main.rs
+++ b/examples/05_command_framework/src/main.rs
@@ -177,6 +177,9 @@ fn main() {
// This requires us to call commands in this group
// via `~emoji` (or `~e`) instead of just `~`.
.prefixes(vec!["emoji", "em"])
+ // Set a description to appear if a user wants to display a single group
+ // e.g. via help using the group-name or one of its prefixes.
+ .desc("A group with commands providing an emoji as response.")
// Sets a command that will be executed if only a group-prefix was passed.
.default_cmd(bird)
.command("cat", |c| c