aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/command.rs
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-07-21 01:48:12 +0200
committerGitHub <[email protected]>2018-07-21 01:48:12 +0200
commit40c8248d107b3c6cad785502e6d619669aba6431 (patch)
treec8553c60b7e9b1367c4d6d51fcbc4e00143cd979 /src/framework/standard/command.rs
parentDo not suggest command if no command is actually related to input. (#350) (diff)
downloadserenity-40c8248d107b3c6cad785502e6d619669aba6431.tar.xz
serenity-40c8248d107b3c6cad785502e6d619669aba6431.zip
Add default-commands for command-groups (#351)
Diffstat (limited to 'src/framework/standard/command.rs')
-rw-r--r--src/framework/standard/command.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs
index d15b6b2..a6a6074 100644
--- a/src/framework/standard/command.rs
+++ b/src/framework/standard/command.rs
@@ -104,6 +104,7 @@ pub struct CommandGroup {
/// A set of checks to be called prior to executing the command-group. The checks
/// will short-circuit on the first check that returns `false`.
pub checks: Vec<Check>,
+ pub default_command: Option<CommandOrAlias>,
}
impl Default for CommandGroup {
@@ -120,6 +121,7 @@ impl Default for CommandGroup {
allowed_roles: Vec::new(),
help: None,
checks: Vec::new(),
+ default_command: None,
}
}
}