diff options
Diffstat (limited to 'examples/05_command_framework/src')
| -rw-r--r-- | examples/05_command_framework/src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs index 1f442c3..e69934c 100644 --- a/examples/05_command_framework/src/main.rs +++ b/examples/05_command_framework/src/main.rs @@ -81,6 +81,9 @@ fn main() { .allow_whitespace(true) .on_mention(true) .prefix("~") + // A command that will be executed + // if nothing but a prefix is passed. + .prefix_only_cmd(about) // You can set multiple delimiters via delimiters() // or just one via delimiter(",") // If you set multiple delimiters, the order you list them |