aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Senjan21 <[email protected]>2020-11-22 12:32:08 +0100
committerGravatar Senjan21 <[email protected]>2020-11-22 12:32:08 +0100
commit7bcc74fb600c8e64fa136d8273fea6fbb3834339 (patch)
treef1fdb449aad87f1b3239f9a16e9e12bdf6e238d3
parentrework clean to fully use `delete_messages` instead of `purge` (diff)
rename command `messages` to `until`
new name should be more selfexplanatory
-rw-r--r--bot/exts/utils/clean.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/utils/clean.py b/bot/exts/utils/clean.py
index d6dd2401f..7ee0287fd 100644
--- a/bot/exts/utils/clean.py
+++ b/bot/exts/utils/clean.py
@@ -277,9 +277,9 @@ class Clean(Cog):
"""Delete all messages that match a certain regex, stop cleaning after traversing `amount` messages."""
await self._clean_messages(amount, ctx, regex=regex, channels=channels)
- @clean_group.command(name="message", aliases=["messages"])
+ @clean_group.command(name="until")
@has_any_role(*MODERATION_ROLES)
- async def clean_message(self, ctx: Context, message: Message) -> None:
+ async def clean_until(self, ctx: Context, message: Message) -> None:
"""Delete all messages until certain message, stop cleaning after hitting the `message`."""
await self._clean_messages(
CleanMessages.message_limit,