diff options
| author | Mishio595 <[email protected]> | 2018-07-19 01:34:57 -0600 |
|---|---|---|
| committer | Mishio595 <[email protected]> | 2018-07-19 01:34:57 -0600 |
| commit | 20ec857660b0eb2566395ac96fe0b78fc9ee836c (patch) | |
| tree | 12e8d5673d0bec65c5bc475d734c46836757b6b6 /src/framework/standard/command.rs | |
| parent | Fix some clippy lints (diff) | |
| download | serenity-20ec857660b0eb2566395ac96fe0b78fc9ee836c.tar.xz serenity-20ec857660b0eb2566395ac96fe0b78fc9ee836c.zip | |
Add default command to CommandGroup
Diffstat (limited to 'src/framework/standard/command.rs')
| -rw-r--r-- | src/framework/standard/command.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index d15b6b2..9e867e1 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -92,6 +92,7 @@ impl<D: fmt::Display> From<D> for Error { pub struct CommandGroup { pub prefixes: Option<Vec<String>>, pub commands: HashMap<String, CommandOrAlias>, + pub default_command: Option<CommandOrAlias>, /// Some fields taken from Command pub bucket: Option<String>, pub required_permissions: Permissions, @@ -111,6 +112,7 @@ impl Default for CommandGroup { CommandGroup { prefixes: None, commands: HashMap::new(), + default_command: None, bucket: None, required_permissions: Permissions::empty(), dm_only: false, |