I am trying to get the user group of the current (logged in) user.
Previously I used require_once dirname(__DIR__) . '/forum/api.php'; to get the cookie data with $_COOKIE['flarum_remember']); and get user group from the database.
Now I can no longer require any Flarum files to complete the same task.
Is there an API equivalent? Any suggestions?