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