add extra newline between raw and results

This commit is contained in:
Ean Milligan 2025-06-26 03:31:46 -04:00
parent 4516f17949
commit ac63642d3a
1 changed files with 5 additions and 7 deletions

View File

@ -171,7 +171,7 @@ export const generateRollDistsEmbed = (rollDists: RollDistributionMap): ArtigenE
export const generateRollEmbed = ( export const generateRollEmbed = (
authorId: bigint, authorId: bigint,
returnDetails: SolvedRoll, returnDetails: SolvedRoll,
modifiers: RollModifiers, modifiers: RollModifiers
): ArtigenEmbedNoAttachment | ArtigenEmbedWithAttachment => { ): ArtigenEmbedNoAttachment | ArtigenEmbedWithAttachment => {
if (returnDetails.error) { if (returnDetails.error) {
// Roll had an error, send error embed // Roll had an error, send error embed
@ -193,14 +193,12 @@ export const generateRollEmbed = (
}; };
} }
const line1Details = modifiers.hideRaw ? '' : `<@${authorId}>${returnDetails.line1}\n`; const line1Details = modifiers.hideRaw ? '' : `<@${authorId}>${returnDetails.line1}\n\n`;
if (modifiers.gmRoll) { if (modifiers.gmRoll) {
// Roll is a GM Roll, send this in the pub channel (this funciton will be ran again to get details for the GMs) // Roll is a GM Roll, send this in the pub channel (this funciton will be ran again to get details for the GMs)
const desc = `${line1Details}${line1Details ? '\n' : ''}Results have been messaged to the following GMs: ${ const desc = `${line1Details}${line1Details ? '\n' : ''}Results have been messaged to the following GMs: ${modifiers.gms
modifiers.gms .map((gm) => (gm.startsWith('<') ? gm : `<@${gm}>`))
.map((gm) => (gm.startsWith('<') ? gm : `<@${gm}>`)) .join(' ')}`;
.join(' ')
}`;
return { return {
charCount: desc.length, charCount: desc.length,