mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-18 00:31:00 -05:00
Log transaction failed const to console instead of nowhere
This commit is contained in:
parent
afc04047eb
commit
cd40816e8f
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user