diff options
| -rw-r--r-- | bot/cogs/clean.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/clean.py b/bot/cogs/clean.py index e7b6bac85..1f3e1caa9 100644 --- a/bot/cogs/clean.py +++ b/bot/cogs/clean.py @@ -133,7 +133,8 @@ class Clean: self.cleaning = True invocation_deleted = False - async for message in ctx.channel.history(limit=amount): + # To account for the invocation message, we index `amount + 1` messages. + async for message in ctx.channel.history(limit=amount + 1): # If at any point the cancel command is invoked, we should stop. if not self.cleaning: |