mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Remove the docstring remains of regex in [p]cleanup self (#3871)
This commit is contained in:
parent
e0d8942741
commit
4a97020b78
@ -465,12 +465,7 @@ class Cleanup(commands.Cog):
|
|||||||
"""Clean up messages owned by the bot.
|
"""Clean up messages owned by the bot.
|
||||||
|
|
||||||
By default, all messages are cleaned. If a third argument is specified,
|
By default, all messages are cleaned. If a third argument is specified,
|
||||||
it is used for pattern matching: If it begins with r( and ends with ),
|
it is used for pattern matching - only messages containing the given text will be deleted.
|
||||||
then it is interpreted as a regex, and messages that match it are
|
|
||||||
deleted. Otherwise, it is used in a simple substring test.
|
|
||||||
|
|
||||||
Some helpful regex flags to include in your pattern:
|
|
||||||
Dots match newlines: (?s); Ignore case: (?i); Both: (?si)
|
|
||||||
"""
|
"""
|
||||||
channel = ctx.channel
|
channel = ctx.channel
|
||||||
author = ctx.message.author
|
author = ctx.message.author
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user