|
@ -67,6 +67,9 @@ class Context(discord.abc.Messageable): |
|
|
to point to a valid registered subcommand and could just point to a |
|
|
to point to a valid registered subcommand and could just point to a |
|
|
nonsense string. If nothing was passed to attempt a call to a |
|
|
nonsense string. If nothing was passed to attempt a call to a |
|
|
subcommand then this is set to `None`. |
|
|
subcommand then this is set to `None`. |
|
|
|
|
|
command_failed: bool |
|
|
|
|
|
A boolean that indicates if the command failed to be parsed, checked, |
|
|
|
|
|
or invoked. |
|
|
""" |
|
|
""" |
|
|
|
|
|
|
|
|
def __init__(self, **attrs): |
|
|
def __init__(self, **attrs): |
|
@ -80,6 +83,7 @@ class Context(discord.abc.Messageable): |
|
|
self.invoked_with = attrs.pop('invoked_with', None) |
|
|
self.invoked_with = attrs.pop('invoked_with', None) |
|
|
self.invoked_subcommand = attrs.pop('invoked_subcommand', None) |
|
|
self.invoked_subcommand = attrs.pop('invoked_subcommand', None) |
|
|
self.subcommand_passed = attrs.pop('subcommand_passed', None) |
|
|
self.subcommand_passed = attrs.pop('subcommand_passed', None) |
|
|
|
|
|
self.command_failed = attrs.pop('command_failed', True) |
|
|
self._state = self.message._state |
|
|
self._state = self.message._state |
|
|
|
|
|
|
|
|
@asyncio.coroutine |
|
|
@asyncio.coroutine |
|
|