Skip to content

Commit

Permalink
Fixes the embed: 0 error
Browse files Browse the repository at this point in the history
The request need this header in order to work
  • Loading branch information
AXVin authored Nov 10, 2019
1 parent 94410ee commit e57cf6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google script.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ function onSubmit(e) {

var options = {
"method": "post",
"headers": {
"Content-Type": "application/json",
}
"payload": JSON.stringify({
"embeds": [{
"title": "TOP TEXT CHANGE THIS IN SCRIPT",
Expand Down

0 comments on commit e57cf6c

Please sign in to comment.