Skip to content

Commit

Permalink
fix aoc command (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramPhoenix authored Dec 1, 2023
1 parent 21c7c22 commit 402bb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/aoc/aocCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
handler: async function(interaction: CommandInteraction) {
const options = interaction.options as CommandInteractionOptionResolver;
const requestedYear = options.getInteger("year", false);
const year = (requestedYear === undefined)? DateTime.now().setZone("Europe/Berlin").year : requestedYear;
const year = (requestedYear === null)? DateTime.now().setZone("Europe/Berlin").year : requestedYear;
const embed = await embedLeaderboard(get("id", "aoc") as number, year);
await interaction.reply({ embeds: [embed] });
}
Expand Down

0 comments on commit 402bb69

Please sign in to comment.