MCPcopy Create free account
hub / github.com/TraderOracle/ATAS / SendWebhook

Method SendWebhook

ATASVolImb.cs:553–561  ·  view source on GitHub ↗
(string message)

Source from the content-addressed store, hash-verified

551 #region DISCORD INTEGRATION
552
553 private async Task SendWebhook(string message)
554 {
555 String whurl = "https://discord.com/api/webhooks/1363535853695271022/GhWnTvrfkRHsC0BRcuOsiRZdq1ED_JfNO0eWT7rxwNsvnCiDqg1ypwa56vULTveVQ12L";
556 Uri uri = new Uri(whurl);
557 client1.Headers.Add("Content-Type", "application/json");
558
559 client1.UploadData(whurl, Encoding.UTF8.GetBytes("{ \"content\": \"" + message + "\" }"));
560 // client1.UploadFileAsync(uri, sFil);
561 }
562 private SemaphoreSlim semaphore = new SemaphoreSlim(1, 1);
563
564 private async Task Hooks(string message, string wav)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected