
details parameter can be undefined, we should check if it has a value before logging it.
https://github.com/EddieJaoudeCommunity/EddieBot/blob/f82d0dee089d08b272cc27ecfcbb8dee1abbb544/src/logger.ts#L22
For example:
if (details) {
await channel.send(`${type.toUpperCase()}: ${message} - ${details}`);
} else {
await channel.send(`${type.toUpperCase()}: ${message}`);
}
@alrifay thank you so much for raising this issue! Indeed we should make your suggestion... or you can do it and get green squares for contributing 馃榿 馃煩
Most helpful comment
@alrifay thank you so much for raising this issue! Indeed we should make your suggestion... or you can do it and get green squares for contributing 馃榿 馃煩