aboutsummaryrefslogtreecommitdiff
path: root/examples/05_command_framework/src
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-10-15 20:48:49 +0200
committerGitHub <[email protected]>2018-10-15 20:48:49 +0200
commit6a68f68e6cb95af38666a4f5d9a6ad4b39fa88c6 (patch)
treec21576ee8bf06c0e2f208a499a6aa900907e186f /examples/05_command_framework/src
parentAdd Option to disable bypassing Checks for Owners (#419) (diff)
downloadserenity-6a68f68e6cb95af38666a4f5d9a6ad4b39fa88c6.tar.xz
serenity-6a68f68e6cb95af38666a4f5d9a6ad4b39fa88c6.zip
Prefix only Command (#416)
Diffstat (limited to 'examples/05_command_framework/src')
-rw-r--r--examples/05_command_framework/src/main.rs3
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