Créer
⚙️ du salon › Intégrations › Webhooks › Nouveau webhook. Nom, avatar, salon cible, puis Copier l'URL du webhook.
Envoyer un message
$u = "https://discord.com/api/webhooks/ID/JETON"
Invoke-RestMethod $u -Method Post -ContentType 'application/json' -Body '{"content":"Sauvegarde terminée ✅"}'Sous Linux : curl -H "Content-Type: application/json" -d '{"content":"Bonjour"}' "$URL". Beaucoup de services (GitHub, NAS, Home Assistant, Uptime Kuma) acceptent directement une URL de webhook Discord.
Sécurité
L'URL contient un jeton : ne la publiez jamais (dépôt Git, capture d'écran). En cas de fuite, supprimez le webhook et recréez-en un.