Repository navigation
feat(bot): /birthday list — next 5 upcoming birthdays - #742
Conversation
Adds a read-only subcommand to the existing /birthday command:
- /birthday list — queries MemberBirthday for the guild, ranks by
daysUntilBirthday(now, month, day), shows top 5 with relative label
("today", "tomorrow", "in N days")
- Embed includes "Showing X of N" footer so large guilds know there's more
- allowedMentions: { parse: [] } — never pings users when listing
New helper: daysUntilBirthday(from, month, day)
- Handles year rollover (past dates in this calendar year → next year)
- Pure function, exported for direct testing
Tests: 7 new cases (3 for daysUntilBirthday + 4 for the list subcommand)
pushing the file to 15 passing total.
Plays cleanly atop #740 (the scheduler + /birthday channel PR) since the
only shared surface is the SlashCommandBuilder subcommand list — merges
additively.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 17 minutes and 54 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Adds a read-only subcommand to the existing /birthday command:
- /birthday list — queries MemberBirthday for the guild, ranks by
daysUntilBirthday(now, month, day), shows top 5 with relative label
("today", "tomorrow", "in N days")
- Embed includes "Showing X of N" footer so large guilds know there's more
- allowedMentions: { parse: [] } — never pings users when listing
New helper: daysUntilBirthday(from, month, day)
- Handles year rollover (past dates in this calendar year → next year)
- Pure function, exported for direct testing
Tests: 7 new cases (3 for daysUntilBirthday + 4 for the list subcommand)
pushing the file to 15 passing total.
Plays cleanly atop #740 (the scheduler + /birthday channel PR) since the
only shared surface is the SlashCommandBuilder subcommand list — merges
additively.



Summary
Adds a read-only `/birthday list` subcommand to the existing `/birthday` command. Completes the user-facing surface (set / clear / channel / list).
Test plan
Stacking
Branches off main (#738 state). `/birthday channel` from #740 is additive on the SlashCommandBuilder; GitHub will auto-merge the two subcommand lists cleanly.