When adding this to the Script window and attempting to save this error keeps coming up
"Syntax error: Missing: after property ID. line: 7 file: Unnamed"
Code starting at line 7:
function handleSubmit ({ response }) {
const content = response.getResponseForItem(message).getResponse()
UrlFetchApp.fetch(WEBHOOK_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
payload: JSON.stringify({
content: '',
embeds: [
{
// author: {
// name: 'Anonymous',
// url: 'https://docs.google.com/forms/d/e/.../viewform'
// },
description: content,
color: COLOUR
}
],
allowed_mentions: {
parse: []
}
})
})
}
When adding this to the Script window and attempting to save this error keeps coming up
"Syntax error: Missing: after property ID. line: 7 file: Unnamed"
Code starting at line 7: