Skip to content

Commit

Permalink
[Birthday] FIx handling for more than 25 upcoming birthdays
Browse files Browse the repository at this point in the history
Closes #129
  • Loading branch information
Vexed01 committed Mar 16, 2024
1 parent b5d9f7b commit a841ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion birthday/commands.py
Expand Up @@ -196,8 +196,9 @@ async def upcoming(self, ctx: commands.Context, days: int = 7):

embed = discord.Embed(title="Upcoming Birthdays", colour=await ctx.embed_colour())

if len(parsed_bdays) > 25:
if len(sorted_parsed_bdays) > 25:
embed.description = "Too many days to display. I've had to stop at 25."
sorted_parsed_bdays = sorted_parsed_bdays[:25]

for day, members in sorted_parsed_bdays:
embed.add_field(name=number_day_mapping.get(day), value="\n".join(members))
Expand Down

0 comments on commit a841ebc

Please sign in to comment.