aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/create_group.rs
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 /src/framework/standard/create_group.rs
parentFix to build with Rust 1.25.0. (diff)
downloadserenity-75f6516fceb6d8e124f91ae25a10f74f183337ad.tar.xz
serenity-75f6516fceb6d8e124f91ae25a10f74f183337ad.zip
Add single group help (#385)
Diffstat (limited to 'src/framework/standard/create_group.rs')
-rw-r--r--src/framework/standard/create_group.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/framework/standard/create_group.rs b/src/framework/standard/create_group.rs
index 0439f63..3cd4047 100644
--- a/src/framework/standard/create_group.rs
+++ b/src/framework/standard/create_group.rs
@@ -206,4 +206,12 @@ impl CreateGroup {
self
}
+
+ /// Sets a description for the group that will be displayed if only
+ /// one specific group is requested via help.
+ pub fn desc(mut self, text: &str) -> Self {
+ self.0.description = Some(text.to_string());
+
+ self
+ }
}