added default case to memberCommandHandler to throw error if command is not recognized

This commit is contained in:
Aster Fialla
2026-02-24 20:19:43 -05:00
parent b02937a660
commit 545136bec7

View File

@@ -186,6 +186,8 @@ mh.memberCommandHandler = async function(authorId, command, memberName, values,
return await mh.updateProxy(authorId, memberName, values[0]);
case 'propic':
return await mh.updatePropic(authorId, memberName, values[0], attachmentUrl, attachmentExpiration);
default:
throw new Error(enums.err.COMMAND_NOT_RECOGNIZED);
}
}