diff options
| author | 2020-05-20 09:18:04 +0300 | |
|---|---|---|
| committer | 2020-05-20 09:18:04 +0300 | |
| commit | 1bb52f815e93c2e3d3fa565c150bbc5effff94f2 (patch) | |
| tree | 8db1d3db64ca9c1853abcddf97b77092d76b8354 | |
| parent | Source: Make `source` command to `command` instead `group` (diff) | |
Source: Remove `command` shadowing on converter
| -rw-r--r-- | bot/cogs/source.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/source.py b/bot/cogs/source.py index 1774d0085..c628c6b29 100644 --- a/bot/cogs/source.py +++ b/bot/cogs/source.py @@ -31,9 +31,9 @@ class SourceConverter(Converter): if argument.lower() == "help": return ctx.bot.help_command - command = ctx.bot.get_command(argument) - if command: - return command + cmd = ctx.bot.get_command(argument) + if cmd: + return cmd cog = ctx.bot.get_cog(argument) if cog: |