Sonar Fix

This commit is contained in:
Ean Milligan (Bastion) 2022-05-28 03:49:24 -04:00
parent 6e5c525839
commit db1e55b415
1 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,6 @@ import {
// Discordeno deps
sendDirectMessage,
} from '../../deps.ts';
import solver from '../solver/_index.ts';
import { SolvedRoll } from '../solver/solver.d.ts';
import { RollModifiers } from '../mod.d.ts';
import { generateCountDetailsEmbed, generateDMFailed, generateRollEmbed, infoColor1, warnColor } from '../commandUtils.ts';
@ -86,10 +85,10 @@ export const roll = async (message: DiscordenoMessage, args: string[], command:
modifiers,
});
rollWorker.addEventListener('message', async (e) => {
rollWorker.addEventListener('message', async (workerMessage) => {
try {
clearTimeout(workerTimeout);
const returnmsg = e.data;
const returnmsg = workerMessage.data;
const pubEmbedDetails = await generateRollEmbed(message.authorId, returnmsg, modifiers);
const gmEmbedDetails = await generateRollEmbed(message.authorId, returnmsg, gmModifiers);
const countEmbed = generateCountDetailsEmbed(returnmsg.counts);