diff options
| author | 2023-04-12 15:24:30 +0100 | |
|---|---|---|
| committer | 2023-04-12 15:24:30 +0100 | |
| commit | ae56736fd5f92cb9779192130365aeff6b88b1ae (patch) | |
| tree | db171434ffe1e3872e3f6a83c56f9ea6a8ac8806 | |
| parent | Merge pull request #2523 from python-discord/flake8-to-ruff (diff) | |
| parent | Merge branch 'main' into fix_alert_message_logging (diff) | |
Merge pull request #2524 from python-discord/fix_alert_message_logging
Fix deleted message logging in mod alert
| -rw-r--r-- | bot/exts/filtering/_ui/ui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/filtering/_ui/ui.py b/bot/exts/filtering/_ui/ui.py index 4e1e61148..7026c7d05 100644 --- a/bot/exts/filtering/_ui/ui.py +++ b/bot/exts/filtering/_ui/ui.py @@ -64,7 +64,8 @@ async def _build_alert_message_content(ctx: FilterContext, current_message_lengt len(ctx.uploaded_attachments) > 0, ctx.content.count("\n") > 15 )): - url = await upload_log(ctx.related_messages, bot.instance.user.id, ctx.uploaded_attachments) + to_upload = {ctx.message} | ctx.related_messages if ctx.message else ctx.related_messages + url = await upload_log(to_upload, bot.instance.user.id, ctx.uploaded_attachments) return f"A complete log of the offending messages can be found [here]({url})" alert_content = escape_markdown(ctx.content) |