Compare commits

...

1 commit
v0.8.4 ... main

Author SHA1 Message Date
1796f2519e Add error handler to series view command
All checks were successful
Deploy To Production / build (push) Successful in 28s
Deploy To Production / deploy (push) Successful in 16s
2025-04-22 16:12:04 +01:00

View file

@ -60,13 +60,18 @@ export default class Series extends Command {
return;
}
const embed = await SeriesHelper.GenerateSeriesViewPage(series.id, 0, interaction.user.id);
try {
const embed = await SeriesHelper.GenerateSeriesViewPage(series.id, 0, interaction.user.id);
await interaction.followUp({
embeds: [ embed!.embed ],
components: [ embed!.row ],
files: [ embed!.image ],
});
await interaction.followUp({
embeds: [ embed!.embed ],
components: [ embed!.row ],
files: [ embed!.image ],
});
} catch (e) {
await interaction.followUp("An error has occured generating the series grid.");
AppLogger.CatchError("Series", e);
}
}
private async ListSeries(interaction: CommandInteraction) {