diff --git a/src/artigen/managers/handler/workerComplete.ts b/src/artigen/managers/handler/workerComplete.ts index 1e5db09..61ba329 100644 --- a/src/artigen/managers/handler/workerComplete.ts +++ b/src/artigen/managers/handler/workerComplete.ts @@ -254,14 +254,14 @@ Please click on "<@${botId}> *Click to see attachment*" above this message to se JSON.stringify( rollRequest.modifiers.count ? { - counts: returnMsg.counts, - details: pubEmbedDetails, - } + counts: returnMsg.counts, + details: pubEmbedDetails, + } : { - details: pubEmbedDetails, - } - ) - ) + details: pubEmbedDetails, + }, + ), + ), ); } } catch (e) { @@ -272,12 +272,13 @@ Please click on "<@${botId}> *Click to see attachment*" above this message to se ( await generateRollEmbed( rollRequest.dd.originalMessage.authorId, - { + { error: true, - errorMsg: `Something weird went wrong, likely the requested roll is too complex and caused the response to be too large for Discord. Try breaking the request down into smaller messages and try again.\n\nIf this error continues to come up, please \`${config.prefix}report\` this to my developer.`, + errorMsg: + `Something weird went wrong, likely the requested roll is too complex and caused the response to be too large for Discord. Try breaking the request down into smaller messages and try again.\n\nIf this error continues to come up, please \`${config.prefix}report\` this to my developer.`, errorCode: 'UnhandledWorkerComplete', }, - {} + {}, ) ).embed, ],