mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -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:
parent
d22ea2dd11
commit
3a12a9b47f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user