aboutsummaryrefslogtreecommitdiff
path: root/examples/06_command_framework.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-26 10:40:20 -0800
committerAustin Hellyer <[email protected]>2016-11-26 10:40:20 -0800
commit5edb49f94ae6c26fa92cebe178c8e3ea59979ed2 (patch)
treeb06b3648b6753cd1ceccd9441dcb3c61487c08cf /examples/06_command_framework.rs
parentAdd Cache::get_guild_channel (diff)
downloadserenity-5edb49f94ae6c26fa92cebe178c8e3ea59979ed2.tar.xz
serenity-5edb49f94ae6c26fa92cebe178c8e3ea59979ed2.zip
Add no-named-argument command macro match
Diffstat (limited to 'examples/06_command_framework.rs')
-rw-r--r--examples/06_command_framework.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/06_command_framework.rs b/examples/06_command_framework.rs
index 1324a2e..af8781c 100644
--- a/examples/06_command_framework.rs
+++ b/examples/06_command_framework.rs
@@ -43,9 +43,9 @@ fn main() {
let _ = client.start();
}
-fn cat_command(context: Context, _msg: Message, _args: Vec<String>) {
+command!(cat_command(context, _msg, _arg) {
let _ = context.say(":cat:");
-}
+});
fn dog_command(context: Context, _msg: Message, _args: Vec<String>) {
let _ = context.say(":dog:");