From 1a9b0d2e764a85e780eb204229e9a2c804f43cfa Mon Sep 17 00:00:00 2001 From: Andrei Date: Sat, 18 Mar 2017 16:16:15 -0700 Subject: [PATCH] Store raw argument string on the Command object --- disco/bot/command.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/disco/bot/command.py b/disco/bot/command.py index 80f6929..3d0398a 100644 --- a/disco/bot/command.py +++ b/disco/bot/command.py @@ -129,6 +129,7 @@ class Command(object): self.triggers = [trigger] self.dispatch_func = None + self.raw_args = None self.args = None self.level = None self.group = None @@ -169,6 +170,7 @@ class Command(object): def resolve_guild(ctx, gid): return ctx.msg.client.state.guilds.get(gid) + self.raw_args = args self.args = ArgumentSet.from_string(args or '', { 'user': self.mention_type([resolve_user], USER_MENTION_RE, user=True), 'role': self.mention_type([resolve_role], ROLE_MENTION_RE),