Skip to content

Commit

Permalink
add json header and required field
Browse files Browse the repository at this point in the history
  • Loading branch information
Lautenschlager-id authored Jan 12, 2020
1 parent 76e1dc4 commit 4662d78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion google script.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ function onSubmit(e) {
"Content-Type": "application/json",
},
"payload": JSON.stringify({
"content": "‌",
"embeds": [{
"title": "TOP TEXT CHANGE THIS IN SCRIPT",
"fields": items,
"footer": {
"text": "BOTTOM TEXT CHANGE THIS IN SCRIPT"
}
}]
}],
"headers": {
"content-type": "application/json"
}
})
};

Expand Down

0 comments on commit 4662d78

Please sign in to comment.