diff options
| author | 2021-08-27 17:52:13 +0300 | |
|---|---|---|
| committer | 2021-08-27 17:52:13 +0300 | |
| commit | f9d2e6919ab746b046c510daab2133e4b53bda6d (patch) | |
| tree | 1b494c298b7a47b42ef8d4c1fa157700e3324e9a | |
| parent | Change `from-to` primary name to `between` (diff) | |
Don't delete clean cancel embed in mod channel
| -rw-r--r-- | bot/exts/moderation/clean.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/moderation/clean.py b/bot/exts/moderation/clean.py index 007aba317..504ecccd1 100644 --- a/bot/exts/moderation/clean.py +++ b/bot/exts/moderation/clean.py @@ -379,7 +379,10 @@ class Clean(Cog): color=Colour.blurple(), description="Clean interrupted." ) - await ctx.send(embed=embed, delete_after=10) + delete_after = 10 + if is_mod_channel(ctx.channel): + delete_after = None + await ctx.send(embed=embed, delete_after=delete_after) def setup(bot: Bot) -> None: |