diff options
author | 2023-04-10 04:01:42 +0300 | |
---|---|---|
committer | 2023-04-10 04:01:42 +0300 | |
commit | ce53437b1bcb7164693bf8b4a559dd41a0310bde (patch) | |
tree | f27424531087fd1fe0b755473ab91b4259a2098c | |
parent | Merge pull request #2512 from python-discord/vivek/mod-edit-log-embed-jump-url (diff) |
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 1002548a5..bde66222e 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) |