diff options
| author | Maiddog <[email protected]> | 2017-09-11 12:17:05 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2017-09-11 19:17:05 +0200 |
| commit | 8e1435f29a2051f3f481131399fedf5528cb96e4 (patch) | |
| tree | 820c54aea7fd3c495eb14f094c33aacb6f24337e /src/framework/standard/command.rs | |
| parent | Add `Context::handle` (diff) | |
| download | serenity-8e1435f29a2051f3f481131399fedf5528cb96e4.tar.xz serenity-8e1435f29a2051f3f481131399fedf5528cb96e4.zip | |
Copy some methods from Command to Group (#164)
Diffstat (limited to 'src/framework/standard/command.rs')
| -rw-r--r-- | src/framework/standard/command.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index e869bf5..501798c 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -30,10 +30,17 @@ pub enum CommandType { WithCommands(Box<Help>), } -#[derive(Default)] pub struct CommandGroup { pub prefix: Option<String>, pub commands: HashMap<String, CommandOrAlias>, + /// Some fields taken from Command + pub bucket: Option<String>, + pub required_permissions: Permissions, + pub allowed_roles: Vec<String>, + pub help_available: bool, + pub dm_only: bool, + pub guild_only: bool, + pub owners_only: bool, } /// Command struct used to store commands internally. |