1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 04:40:59 -05:00

Log transaction failed const to console instead of nowhere

This commit is contained in:
toast-ts 2024-02-25 20:19:27 +11:00
parent afc04047eb
commit cd40816e8f

View File

@ -213,7 +213,8 @@ export class PunishmentsSvc {
}); });
} catch (err) { } catch (err) {
Logger.console('error', 'Punishment', err); Logger.console('error', 'Punishment', err);
return TRANSACTION_FAILED; Logger.console('log', 'Punishment:Transaction', TRANSACTION_FAILED);
return;
} }
if (interaction) return interaction.editReply({embeds: [embed]}); if (interaction) return interaction.editReply({embeds: [embed]});
@ -272,7 +273,8 @@ export class PunishmentsSvc {
}); });
} catch (err) { } catch (err) {
Logger.console('error', 'Punishment', err); Logger.console('error', 'Punishment', err);
return TRANSACTION_FAILED; Logger.console('log', 'Punishment:Transaction', TRANSACTION_FAILED);
return;
} }
if (interaction) return interaction.reply({embeds: [new this.client.embed() if (interaction) return interaction.reply({embeds: [new this.client.embed()