Browse Source

Store raw argument string on the Command object

pull/21/head
Andrei 8 years ago
parent
commit
1a9b0d2e76
  1. 2
      disco/bot/command.py

2
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),

Loading…
Cancel
Save