diff options
| author | 2020-03-28 19:45:51 +0200 | |
|---|---|---|
| committer | 2020-03-28 19:45:51 +0200 | |
| commit | 2532c55239a1563b34ed475bffa330e1670de6e0 (patch) | |
| tree | 23a9ea34e9c2193fa0e6e230d7f2cef8addc8506 | |
| parent | (Webhook Detection): Removed unnecessary URL hiding in `delete_and_respond`. (diff) | |
(Webhook Detection): Fixed docstrings.
| -rw-r--r-- | bot/cogs/webhook_remover.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/webhook_remover.py b/bot/cogs/webhook_remover.py index 9f6243b3c..cbece321d 100644 --- a/bot/cogs/webhook_remover.py +++ b/bot/cogs/webhook_remover.py @@ -56,14 +56,14 @@ class WebhookRemover(Cog): @Cog.listener() async def on_message(self, msg: Message) -> None: - """Check is Discord Webhook URL in sent message.""" + """Check if a Discord webhook URL is in `message`.""" matches = WEBHOOK_URL_RE.search(msg.content) if matches: await self.delete_and_respond(msg, "".join(matches.groups()[:-1]) + "xxx") @Cog.listener() async def on_message_edit(self, before: Message, after: Message) -> None: - """Check is Discord Webhook URL in new message content when message changed.""" + """Check if a Discord webhook URL is in the edited message `after`.""" await self.on_message(after) |