mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
[Cleanup] Delete command message when using [p]cleanup self (#4640)
* delete command message * only delete command if can_mass_purge
This commit is contained in:
@@ -579,6 +579,8 @@ class Cleanup(commands.Cog):
|
||||
before=ctx.message,
|
||||
delete_pinned=delete_pinned,
|
||||
)
|
||||
if can_mass_purge:
|
||||
to_delete.append(ctx.message)
|
||||
|
||||
if ctx.guild:
|
||||
channel_name = "channel " + channel.name
|
||||
|
||||
Reference in New Issue
Block a user