From f7f8acfcf5ca3b871593352eda3caa8113bbf1cb Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Wed, 12 Jun 2024 16:21:01 -0400 Subject: [PATCH 1/2] Improve error message --- techsupport_bot/commands/modmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index da758c818..0215506cb 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -588,7 +588,7 @@ async def reply_to_thread( if not target_member: await auxiliary.send_deny_embed( - message="Couldn't fetch the user! Are they in the guild?", channel=thread + message="This user isn't in the guild, so the message cannot be sent", channel=thread ) return From 3b2c400ab6faac052ea430bc0c1ea1ea03f21ac8 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:31:16 -0400 Subject: [PATCH 2/2] Run black --- techsupport_bot/commands/modmail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index 21683601d..4e5607281 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -588,7 +588,8 @@ async def reply_to_thread( if not target_member: await auxiliary.send_deny_embed( - message="This user isn't in the guild, so the message cannot be sent", channel=thread + message="This user isn't in the guild, so the message cannot be sent", + channel=thread, ) return