From 428cbb94de239e87d3258891591e1464cb9d2e06 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Fri, 18 Aug 2017 00:56:29 +0200 Subject: [PATCH] Add a case for `context, message, args, full_message` --- src/framework/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/framework/mod.rs b/src/framework/mod.rs index 03ee742f4e9..5c676ec8f8e 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -152,6 +152,14 @@ macro_rules! command { Ok(()) } }; + ($fname:ident($c:ident, $m:ident, $a:ident, @$f:ident) $b:block) => { + #[allow(unreachable_code, unused_mut)] + pub fn $fname(mut $c: &mut $crate::client::Context, $m: &$crate::model::Message, $a: Vec, $f: String) -> ::std::result::Result<(), String> { + $b + + Ok(()) + } + }; ($fname:ident($c:ident, $m:ident, $a:ident, $($name:ident: $t:ty),*) $b:block) => { #[allow(unreachable_code, unreachable_patterns, unused_mut)] pub fn $fname(mut $c: &mut $crate::client::Context, $m: &$crate::model::Message, $a: Vec, _: String) -> ::std::result::Result<(), String> {