1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-05 03:57:53 -05:00

fix getModifiers errors being ignored

This commit is contained in:
Ean Milligan
2025-08-05 16:51:59 -04:00
parent f989be56db
commit de02ebcc09

View File

@ -61,6 +61,7 @@ export const roll = async (
// Return early if the modifiers were invalid
if (!modifiers.valid) {
m.edit(generateRollError('Modifiers invalid:', modifiers.error.name, modifiers.error.message)).catch((e) => utils.commonLoggers.messageEditError('roll.ts:50', m, e));
return;
}
let rollCmd = (hasOwnProperty(msgOrInt, 'token') ? args.join('') : msgOrInt.content).startsWith(`${config.prefix}r`) ? remainingArgs.join('') : `${command}${remainingArgs.join('')}`;