So I've been working on a script to handle responses from one of my google forms, and for some reason, when the form submits, it doesn't define the event.namedValues properly and my script cant see the responses and returns
"TypeError: Cannot read properties of undefined (reading 'Minecraft Username:') at handleFormSubmit(Code:16:41)".
The issue at the moment seems to be the username read from response [0]. I'll post the function below, (the part that is dysfunctional. I need to protect privacy so the rest of the code is not shown). did I miss something? It's racking my brain why responses aren't visible to my app script.