Custom console commands not showing up?

I’m trying to add a custom console command through the GameMode, but it’s not showing up when I open the console (~) in game.

It’s declared in the GameMode header as

UFUNCTION(Exec, Category = ExecFunctions)
void RenderDemoFrames(const FString& demoName, const FString& folder, int fps);

Another custom console command that does not have arguments, however, does show up in the console.

I tried the solution here, replacing the arguments with a single TArray

UFUNCTION(Exec, Category = ExecFunctions)
void RenderDemoFrames(const TArray<FString>& args);

Which did not help. What should I be doing that I’m not doing?