mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Cleanup] Fix cleanup after
Resolves #2343. Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
parent
811634a2b0
commit
3a8da1f82b
@ -230,7 +230,6 @@ class Cleanup(commands.Cog):
|
||||
to_delete = await self.get_messages_for_deletion(
|
||||
channel=channel, number=None, after=after, delete_pinned=delete_pinned
|
||||
)
|
||||
to_delete.append(ctx.message)
|
||||
|
||||
reason = "{}({}) deleted {} messages in channel {}.".format(
|
||||
author.name, author.id, len(to_delete), channel.name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user