From 96cffd9c4ce9afd00095b47fa40762e874078d04 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Thu, 17 Jul 2025 03:01:28 -0400 Subject: [PATCH] deno fmt --- .../managers/handler/workerComplete.ts | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/artigen/managers/handler/workerComplete.ts b/src/artigen/managers/handler/workerComplete.ts index 28611cf..a9d4184 100644 --- a/src/artigen/managers/handler/workerComplete.ts +++ b/src/artigen/managers/handler/workerComplete.ts @@ -236,14 +236,14 @@ As anyone with the Web View link can view the roll, Web View is disabled by defa JSON.stringify( rollRequest.modifiers.count ? { - counts: returnMsg.counts, - details: pubEmbedDetails, - } + counts: returnMsg.counts, + details: pubEmbedDetails, + } : { - details: pubEmbedDetails, - } - ) - ) + details: pubEmbedDetails, + }, + ), + ), ); } } catch (e) { @@ -254,12 +254,13 @@ As anyone with the Web View link can view the roll, Web View is disabled by defa ( 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, ],