From 5edb49f94ae6c26fa92cebe178c8e3ea59979ed2 Mon Sep 17 00:00:00 2001 From: Austin Hellyer Date: Sat, 26 Nov 2016 10:40:20 -0800 Subject: Add no-named-argument command macro match --- examples/06_command_framework.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/06_command_framework.rs') 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) { +command!(cat_command(context, _msg, _arg) { let _ = context.say(":cat:"); -} +}); fn dog_command(context: Context, _msg: Message, _args: Vec) { let _ = context.say(":dog:"); -- cgit v1.2.3