手順1:Using directives and shared codeに下記の2行を追加
using System.Net.Http; using System.Runtime.CompilerServices;
手順2:GAC referencesに「System.Net.Http」を追加
手順3:C#キューブに下記のソース
string WebHookUrl = "webhookURL"; System.Net.Http.HttpClient httpClient = new System.Net.Http.HttpClient(); Dictionary<string, string=""> strs = new Dictionary<string, string="">() {{ "content", project.Variables["変数名"].Value },{ "username", "bot" }}; System.Runtime.CompilerServices.TaskAwaiter awaiter = httpClient.PostAsync(WebHookUrl, new System.Net.Http.FormUrlEncodedContent(strs)).GetAwaiter();</string,></string,>
※うまく動かない人は string を入れて下さい。下記画像参照。