diff options
| author | Nadir Chowdhury <[email protected]> | 2021-02-25 02:26:51 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-24 21:26:51 -0500 |
| commit | 63ec23bac24ab62633bdb8fd19b93ecd3fddba7c (patch) | |
| tree | 14ad9433dddf4c056c292a07e2c0e74b79942cdd /discord/ext/commands/context.py | |
| parent | Fix NameError with invoked_parents (diff) | |
| download | discord.py-63ec23bac24ab62633bdb8fd19b93ecd3fddba7c.tar.xz discord.py-63ec23bac24ab62633bdb8fd19b93ecd3fddba7c.zip | |
Code optimisations and refactoring via Sourcery
Diffstat (limited to 'discord/ext/commands/context.py')
| -rw-r--r-- | discord/ext/commands/context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 8af9c5e8..09449921 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -313,7 +313,7 @@ class Context(discord.abc.Messageable): entity = bot.get_cog(entity) or bot.get_command(entity) try: - qualified_name = entity.qualified_name + entity.qualified_name except AttributeError: # if we're here then it's not a cog, group, or command. return None |