diff options
| author | Lakelezz <[email protected]> | 2018-09-11 17:37:44 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-11 17:37:44 +0200 |
| commit | 75f6516fceb6d8e124f91ae25a10f74f183337ad (patch) | |
| tree | 2d25d78512d279cf6d8f5e4e695399be617adab6 /src/framework/standard/create_group.rs | |
| parent | Fix to build with Rust 1.25.0. (diff) | |
| download | serenity-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.rs | 8 |
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 + } } |