mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-01-06 20:37:54 -05:00
deno fmt
This commit is contained in:
@ -221,14 +221,14 @@ export const onWorkerComplete = async (workerMessage: MessageEvent<SolvedRoll>,
|
|||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
rollRequest.modifiers.count
|
rollRequest.modifiers.count
|
||||||
? {
|
? {
|
||||||
counts: returnMsg.counts,
|
counts: returnMsg.counts,
|
||||||
details: pubEmbedDetails,
|
details: pubEmbedDetails,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
details: pubEmbedDetails,
|
details: pubEmbedDetails,
|
||||||
}
|
},
|
||||||
)
|
),
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -239,12 +239,13 @@ export const onWorkerComplete = async (workerMessage: MessageEvent<SolvedRoll>,
|
|||||||
(
|
(
|
||||||
await generateRollEmbed(
|
await generateRollEmbed(
|
||||||
rollRequest.dd.originalMessage.authorId,
|
rollRequest.dd.originalMessage.authorId,
|
||||||
<SolvedRoll>{
|
<SolvedRoll> {
|
||||||
error: true,
|
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',
|
errorCode: 'UnhandledWorkerComplete',
|
||||||
},
|
},
|
||||||
<RollModifiers>{}
|
<RollModifiers> {},
|
||||||
)
|
)
|
||||||
).embed,
|
).embed,
|
||||||
],
|
],
|
||||||
|
|||||||
@ -29,12 +29,12 @@ export const terminateWorker = async (rollWorker: Worker, rollRequest: QueuedRol
|
|||||||
(
|
(
|
||||||
await generateRollEmbed(
|
await generateRollEmbed(
|
||||||
rollRequest.dd.originalMessage.authorId,
|
rollRequest.dd.originalMessage.authorId,
|
||||||
<SolvedRoll>{
|
<SolvedRoll> {
|
||||||
error: true,
|
error: true,
|
||||||
errorCode: 'TooComplex',
|
errorCode: 'TooComplex',
|
||||||
errorMsg: 'Error: Roll took too long to process, try breaking roll down into simpler parts',
|
errorMsg: 'Error: Roll took too long to process, try breaking roll down into simpler parts',
|
||||||
},
|
},
|
||||||
<RollModifiers>{}
|
<RollModifiers> {},
|
||||||
)
|
)
|
||||||
).embed,
|
).embed,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user