guides:apps:discord

Discord

Send a file: https://www.autohotkey.com/boards/viewtopic.php?t=86273

Send a message:

#Requires AutoHotkey v2
webhookURL := "https://discord.com/api/webhooks/..."
http := ComObject("WinHttp.WinHttpRequest.5.1")
http.Open("POST", webhookURL)
http.SetRequestHeader("Content-Type", "application/json")
http.Send('{"content": "test"}')