Timer::callAfterDelay inaccessible in AnimatedAppComponent

Hi I’m trying to create a simple puzzle game using a GUI that is an AnimatedAppComponent.

For that I need a delay based, recursive function to countdown the score of a round. But somehow the following code errors out at compile time, giving me a “not accessible because uses private to inherit juce::Timer” error:

void MainComponent::scoreCountdown(int id)
    if (id == game_round) {
        Component::SafePointer<AnimatedAppComponent> editor(this);

        std::function<void()> func = [&]() {
            if (id != game_round || solved) return;
            if (word_score == 0) {

        Timer::callAfterDelay(1000, func);

How would one fix this in a AnimatedAppComponent situation?