From 37c948a7f7eb617e4531cc3430d5c88487c86565 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Fri, 15 May 2026 02:41:32 -0700 Subject: [PATCH 1/2] Fixes mark thread when OP has left server --- techsupport_bot/commands/forum.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/techsupport_bot/commands/forum.py b/techsupport_bot/commands/forum.py index 1f8f3338..abd3cbe5 100644 --- a/techsupport_bot/commands/forum.py +++ b/techsupport_bot/commands/forum.py @@ -518,7 +518,10 @@ async def mark_thread( else: embed.set_footer(text="Changed automatically") - await thread.send(content=thread.owner.mention, embed=embed) + if thread.owner: + ping = thread.owner.mention + + await thread.send(content=ping, embed=embed) await thread.edit( name=f"{data['prefix']} {thread.name}"[:100], From febf1a0c56531c27808070f3ebd4bd5eac085dd9 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Fri, 15 May 2026 02:42:32 -0700 Subject: [PATCH 2/2] Add else --- techsupport_bot/commands/forum.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/techsupport_bot/commands/forum.py b/techsupport_bot/commands/forum.py index abd3cbe5..a38ced8f 100644 --- a/techsupport_bot/commands/forum.py +++ b/techsupport_bot/commands/forum.py @@ -520,6 +520,8 @@ async def mark_thread( if thread.owner: ping = thread.owner.mention + else: + ping = "" await thread.send(content=ping, embed=embed)