From 597ad57356de88900fa6730f256aa53f3aa41ce5 Mon Sep 17 00:00:00 2001 From: Autonymic <75275746+Autonymic@users.noreply.github.com> Date: Sun, 29 May 2022 20:09:03 +0200 Subject: Update clean regex description with cleaner examples --- bot/exts/moderation/clean.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bot/exts/moderation/clean.py b/bot/exts/moderation/clean.py index 5b01494ed..39eff9757 100644 --- a/bot/exts/moderation/clean.py +++ b/bot/exts/moderation/clean.py @@ -543,15 +543,13 @@ class Clean(Cog): If a timedelta or an ISO datetime is specified, `channels` can be specified to clean across multiple channels. An asterisk can also be used to designate cleanup across all channels. - The `regex` pattern must be provided enclosed in backticks, that will make it appear as a code section. + The `regex` pattern must be provided enclosed in backticks. - For example: \u02CB[0-9]\u02CB, which should appear as `[0-9]`. + For example: \\`[0-9]\\`. If the `regex` pattern contains spaces, it still needs to be enclosed in double quotes on top of that. - For example: "\u02CB[0-9]\u02CB", which should appear as "`[0-9]`". - - Do not copy and paste the backticks from the examples, they are special unicode characters that will not work. + For example: "\\`[0-9]\\`". """ await self._clean_messages(ctx, regex=regex, channels=channels, first_limit=message_or_time) -- cgit v1.2.3