Files
scripts/PowerShell/Discord-message.ps1
2023-06-03 02:03:31 +02:00

13 lines
315 B
PowerShell

$content = @"
test message
"@
$payload = [PSCustomObject]@{
content = $content
}
Invoke-WebRequest -Uri "https://discord.com/api/webhooks/762680850486657055/q9vW7p0HuZhzsZs34OWpWUkToYW4QniQgz2WLUhWYIGhJdmURg-b4EHrhbcB1cfV725y" -ContentType 'Application/Json' -Method Post -Body ($payload | ConvertTo-Json)