deno fmt
This commit is contained in:
parent
f4fcb097c3
commit
fcae60cb69
|
@ -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
|
||||||
|
@ -196,9 +196,11 @@ export const generateRollEmbed = (
|
||||||
const line1Details = modifiers.hideRaw ? '' : `<@${authorId}>${returnDetails.line1}\n\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: ${modifiers.gms
|
const desc = `${line1Details}${line1Details ? '\n' : ''}Results have been messaged to the following GMs: ${
|
||||||
.map((gm) => (gm.startsWith('<') ? gm : `<@${gm}>`))
|
modifiers.gms
|
||||||
.join(' ')}`;
|
.map((gm) => (gm.startsWith('<') ? gm : `<@${gm}>`))
|
||||||
|
.join(' ')
|
||||||
|
}`;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
charCount: desc.length,
|
charCount: desc.length,
|
||||||
|
|
Loading…
Reference in New Issue