aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/context.py
diff options
context:
space:
mode:
authorNadir Chowdhury <[email protected]>2021-02-25 02:26:51 +0000
committerGitHub <[email protected]>2021-02-24 21:26:51 -0500
commit63ec23bac24ab62633bdb8fd19b93ecd3fddba7c (patch)
tree14ad9433dddf4c056c292a07e2c0e74b79942cdd /discord/ext/commands/context.py
parentFix NameError with invoked_parents (diff)
downloaddiscord.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.py2
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