diff options
author | 2022-05-29 20:09:03 +0200 | |
---|---|---|
committer | 2022-05-29 20:09:03 +0200 | |
commit | 597ad57356de88900fa6730f256aa53f3aa41ce5 (patch) | |
tree | c46037b88e9d4b50114f3ce2b6aba0f0df700030 | |
parent | Merge branch 'python-discord:main' into docs/clean-help (diff) |
Update clean regex description with cleaner examples
-rw-r--r-- | bot/exts/moderation/clean.py | 8 |
1 files 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) |