Skip to content

ADD MORE BUGS #15

Description

@Ashember

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: []
      }
    })
  })
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions