Don't ping owners on rank-only standings changes in Discord #130
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "claude/no-ping-rank-only-standings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The first score of a season displaces every other team's rank (everyone becomes
T2), which fired a mass@-ping of the whole league — even though only one owner actually scored. The Standings Changes section pinged the Discord user of every team whose rank or points changed.Fix
The Standings Changes section now pings an owner only when that team's points genuinely changed this event. Rank-only shufflers are still displayed (with their
↑/↓rank delta) but by name, without an@-mention.This mirrors the existing "display but don't ping" behaviour in the Scored Matches section, and preserves pings for pure season-standings sports (F1, IndyCar) — where the Standings Changes section is the only ping source and a real scorer's points always change.
Scoped to the main standings path only; the QP path lists just this-event participants, so it never produced the shuffle ping.
Tests
Added
pings scorers but not rank-only shufflerstodiscord.test.ts, asserting a displaced-only team is displayed with its delta but excluded fromcontent/allowed_mentions, while the scorer keeps its mention.npm run test:run(62 passing) andnpm run typecheckboth green.🤖 Generated with Claude Code