Skip to content

Commit

Permalink
fix: month without birthdays
Browse files Browse the repository at this point in the history
  • Loading branch information
N3aar committed Jun 13, 2024
1 parent 9ba0f83 commit 8ff7fa2
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

0 comments on commit 8ff7fa2

Please sign in to comment.