-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
29 lines (25 loc) · 886 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Discord Webhooks</title>
</head>
<body>
<button onclick="sendMessage()">Send</button>
</body>
<script>
function sendMessage() {
var request = new XMLHttpRequest();
request.open("POST", "https://discordapp.com/api/webhooks/687415614838669535/xJioMtCeC2BVBOgx9cvv3QZGkIHp8H72Hq_qDnuomuTX5ysDQoQURM6_DluWUF5hifWn");
request.setRequestHeader('Content-type', 'application/json');
var params = {
username: "Webhook",
avatar_url: "",
content: "Discord message"
// Username and content are required to be set, avatar_url isn't. Insert a direct link to an image to use the avatar_url.
}
request.send(JSON.stringify(params));
}
</script>
</html>