Skip to content

Commit

Permalink
Merge pull request #30 from N3aar/fix/month-without-bds
Browse files Browse the repository at this point in the history
fix: month without birthdays
  • Loading branch information
Psykka authored Jun 13, 2024
2 parents 9ba0f83 + 8ff7fa2 commit 86b1009
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/commands/guild/birthdays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ export class BirthdayCommand extends Command {
},
});

if (!birthdays || birthdays.length <= 0) {
await interaction.reply({
content: "Não há aniversários neste mês!",
ephemeral: false,
fetchReply: false,
});
return;
}

const monthStatus = month ? `Mês ${pad(month)}` : "";
const birthdayList = birthdays.map(
(event) =>
Expand Down

1 comment on commit 86b1009

@TamyDB
Copy link

@TamyDB TamyDB commented on 86b1009 Jun 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caralho isso é mt util

Please sign in to comment.