aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/clean.py20
1 files changed, 7 insertions, 13 deletions
diff --git a/bot/cogs/clean.py b/bot/cogs/clean.py
index 7b2b83a02..aee7fa055 100644
--- a/bot/cogs/clean.py
+++ b/bot/cogs/clean.py
@@ -132,20 +132,14 @@ class Clean(Cog):
# If we are looking for specific message.
if until_message:
- # Since we will be using `delete_messages` method
- # of a TextChannel
- # and we need message objects to use it
- # as well as to send logs
- # we will start appending messages here
- # instead adding them from purge.
+ # Since we will be using `delete_messages` method of a TextChannel and we need message objects to
+ # use it as well as to send logs we will start appending messages here instead adding them from
+ # purge.
messages.append(message)
- # we could use ID's here however
- # in case if the message we are looking for
- # gets deleted, we won't have a way to figure that out
- # thus checking for datetime should be more reliable
+ # we could use ID's here however in case if the message we are looking for gets deleted,
+ # we won't have a way to figure that out thus checking for datetime should be more reliable
if message.created_at <= until_message.created_at:
- # means we have found the message until which
- # we were supposed to be deleting.
+ # means we have found the message until which we were supposed to be deleting.
message_ids.append(message.id)
break
@@ -251,7 +245,7 @@ class Clean(Cog):
@clean_group.command(name="message", aliases=["messages"])
@with_role(*MODERATION_ROLES)
async def clean_message(self, ctx: Context, message: Message) -> None:
- """Delete all messages until certain message, stop cleaning after hitting the `message`"""
+ """Delete all messages until certain message, stop cleaning after hitting the `message`."""
await self._clean_messages(
CleanMessages.message_limit,
ctx,