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:
@ -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('')}`;
|
||||
|
||||
Reference in New Issue
Block a user