diff options
Diffstat (limited to 'discord/ext/commands/context.py')
| -rw-r--r-- | discord/ext/commands/context.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index ea193696..bef94f04 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -118,8 +118,8 @@ class Context(discord.abc.Messageable): raise TypeError('Missing command to invoke.') from None arguments = [] - if command.instance is not None: - arguments.append(command.instance) + if command.cog is not None: + arguments.append(command.cog) arguments.append(self) arguments.extend(args[1:]) @@ -195,7 +195,7 @@ class Context(discord.abc.Messageable): if self.command is None: return None - return self.command.instance + return self.command.cog @discord.utils.cached_property def guild(self): |