feat/participant-divider-roles #10

Merged
renkar merged 3 commits from feat/participant-divider-roles into master 2026-09-03 21:57:07 +00:00
Showing only changes of commit fb08bc56d7 - Show all commits

View File

@@ -480,6 +480,16 @@ async def apply_team_role_positions(
return 0, errors
except discord.HTTPException as e:
errors.append(f"Tiimirollide järjestamine ebaõnnestus: {e}")
# 50013 here despite Manage Roles usually means a role in the batch sits
# at/above the bot's top role. Log the batch vs bot_top to pinpoint it.
log.warning(
"edit_role_positions failed (%s); bot_top=%d; batch=%s",
e, bot_top,
sorted(
((r.name, r.position, target) for r, target in positions.items()),
key=lambda x: -x[1],
),
)
return 0, errors
log.info("Positioned %d team role(s) under their dividers", len(positions))
return len(positions), errors