diff options
| author | 2021-04-30 12:14:00 +0300 | |
|---|---|---|
| committer | 2021-04-30 12:14:00 +0300 | |
| commit | 109692e5b0efb181152ce5743d11fbea64171c9c (patch) | |
| tree | b20a8cc425d98d2f4b2ffc11ac1fe665b62b8192 /bot/exts/evergreen/timed.py | |
| parent | Add non-underscore aliases for lazy people like me :) (diff) | |
| parent | Merge pull request #709 from chincholikarsalil/fix-grammatical-error (diff) | |
Merge branch 'main' into Enforce-image-processing-concurrency
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/timed.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/evergreen/timed.py b/bot/exts/evergreen/timed.py index 635ccb32..5f177fd6 100644 --- a/bot/exts/evergreen/timed.py +++ b/bot/exts/evergreen/timed.py @@ -21,7 +21,9 @@ class TimedCommands(commands.Cog): """Time the command execution of a command.""" new_ctx = await self.create_execution_context(ctx, command) - if not new_ctx.command: + ctx.subcontext = new_ctx + + if not ctx.subcontext.command: help_command = f"{ctx.prefix}help" error = f"The command you are trying to time doesn't exist. Use `{help_command}` for a list of commands." |