aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-02-11 16:34:06 +0000
committerGravatar Chris Lovering <[email protected]>2024-05-23 21:50:16 +0100
commit81ce2f43b56b67143d6b134cb281807ce6c6c500 (patch)
treeec8657bee207370a3a062b73b2f82e39b36aca97
parentDon't allow bots to be marked as alts (diff)
Nicely format error when editing alts where target user isn't an alt
-rw-r--r--bot/exts/moderation/alts.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/moderation/alts.py b/bot/exts/moderation/alts.py
index 64e0310fe..57d67d2d2 100644
--- a/bot/exts/moderation/alts.py
+++ b/bot/exts/moderation/alts.py
@@ -29,6 +29,7 @@ class AlternateAccounts(commands.Cog):
errors = ", ".join(
resp_json.get("non_field_errors", []) +
resp_json.get("source", []) +
+ resp_json.get("target", []) +
resp_json.get("detail", [])
)
if errors: