diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py index 9b4dbf9a6..4dd1e745e 100644 --- a/discord/ext/commands/help.py +++ b/discord/ext/commands/help.py @@ -216,8 +216,8 @@ class _HelpCommandImpl(Command): def clean_params(self): result = self.params.copy() try: - result.popitem(last=False) - except Exception: + del result[next(iter(result))] + except StopIteration: raise ValueError('Missing context parameter') from None else: return result