feat(arabot): create custom error for catch

This commit is contained in:
smyalygames 2023-02-19 16:34:43 +00:00
parent 6979a0e79c
commit c4075fe9f9

View File

@ -77,6 +77,7 @@ export class NonVeganAccessButtonHandler extends InteractionHandler {
ephemeral: true,
});
} catch (error) {
this.container.logger.error(`Non Vegan Access Interaction: ${error}`);
await interaction.reply({
content: errorMessage,
ephemeral: true,