aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2021-08-28 23:22:28 +0300
committerGravatar mbaruh <[email protected]>2021-08-28 23:22:28 +0300
commit675630a620afe9dee4772bc659a16289be9665d7 (patch)
tree3d1fd54ad3b2aad503b8240108b6289867e53369
parentRefactor code, correct logging (diff)
Add checkmark after command completes in mod channels
-rw-r--r--bot/exts/moderation/clean.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/moderation/clean.py b/bot/exts/moderation/clean.py
index 455d28faa..f8526b1b9 100644
--- a/bot/exts/moderation/clean.py
+++ b/bot/exts/moderation/clean.py
@@ -11,7 +11,7 @@ from discord.ext.commands.errors import BadArgument, MaxConcurrencyReached, Miss
from bot.bot import Bot
from bot.constants import (
- Channels, CleanMessages, Colours, Event, Icons, MODERATION_ROLES
+ Channels, CleanMessages, Colours, Emojis, Event, Icons, MODERATION_ROLES
)
from bot.exts.moderation.modlog import ModLog
from bot.utils.channel import is_mod_channel
@@ -347,6 +347,9 @@ class Clean(Cog):
await self._log_clean(deleted_messages, channels, ctx.author)
+ if is_mod_channel(ctx.channel):
+ await ctx.message.add_reaction(Emojis.check_mark)
+
# region: Commands
@group(invoke_without_command=True, name="clean", aliases=["clear", "purge"])