new paying member discord webhook

This commit is contained in:
LBlend committed 2021-04-13 16:45:59 +02:00
1 parent 8278132f1b
commit 511ed2912b
1 file changed
+16
@@ -0,0 +1,16 @@
/*
Sends a message to discord whenever a form is submitted.
*/
var webhookUrl = 'yeet'; // Insert your webhook url here
function onSubmit(e) {
var discordPayload = {
content: 'Nytt betalende medlem! <@267415183931080715> <@280753175340908546> <@170506717140877312>'
}
UrlFetchApp.fetch(webhookUrl, {
method: 'post',
payload: JSON.stringify(discordPayload),
contentType: 'application/json'
})
}