title: c# send discord webhook
body: <p>Does anyone know how i would send all the data from the user to a discord webhook message?</p>
  
  <p>So my code is like so:</p>
  
  <pre><code>        private void materialSingleLineTextField1_KeyDown(object sender, KeyEventArgs e)
      {
          if (e.KeyCode == Keys.Enter)
          {
              userName = materialSingleLineTextField1.Text;
              rapcount(userName);
              materialLabel2.Text = "Username: " + materialSingleLineTextField1.Text;
  
              var client = new WebClient();
  
              var text = client.DownloadString("https://api.roblox.com/users/get-by-username?username=" + materialSingleLineTextField1.Text);
  
              Post post = JsonConvert.DeserializeObject&lt;Post&gt;(text);
  
              Id = post.Id;
  
              materialLabel3.Text = "ID: " + post.Id;
              materialLabel4.Text = "Online: " + post.IsOnline;
  
              var request = WebRequest.Create("https://www.roblox.com/headshot-thumbnail/image?userId=" + Id + "&amp;width=420&amp;height=420&amp;format=png");
  
              using (var response = request.GetResponse())
              using (var stream = response.GetResponseStream())
              {
                  pictureBox1.Image = Bitmap.FromStream(stream);
              }
  
              //https://discordapp.com/api/webhooks/450790622446485525/HW8nYfZ39J0VPKDcxEuLoYpwVbBt8qxF4uM1SMJGp8WXIlZ33jlqzSvMThM7rSoxJUJU
  
              materialSingleLineTextField1.Text = "";
          }
      }
  </code></pre>
  
  <p>and I want the username and ID sent as a message. Please help &lt;3</p>