title: playerdb.co API not returning anything, no errors, just leaves variable empty
body: <p>I've been trying to access an API for my discord bot to convert the input from an argument in the discord command to a username.</p>
  <p>For example, if I were to input the discord command <code>?bw Tiim</code> into discord, it would return an embed with my bedwars stats, and my username would display on there too.</p>
  <p>Bot response to command currently:</p>
  <p><img src="https://i.gyazo.com/32baef8edee496655d35707218fce0a4.png" alt="Bot response to command currently" /></p>
  <p>Bot response to command with variables:</p>
  <p><img src="https://i.gyazo.com/0b65fc5b76b2c286b80459ccffd3d69f.png" alt="Bot response to command with variables" /></p>
  <p>The issue is I need to find the correct capitalization for the username, so let's say I run the command <code>?bw tiim</code> instead, where the &quot;t&quot; is lowercase, the bot would still need to check for my name so I'm trying to grab data from <code>https://playerdb.co/api/player/minecraft/&lt;username&gt;</code>, which displays player UUID, username with correct capitalization, and etc but when I try to call it with the following code it returns nothing, no errors at all. I'm relatively new to coding in C# so I spent around a day trying to figure out what was going on but I haven't even gotten an idea of what may be wrong.</p>
  <p><strong>Code for Part of Command Calling API</strong></p>
  <pre><code> //bw stats command
          [Command(&quot;bw&quot;)]
          [Aliases(&quot;bedwars&quot;)]
          [Description(&quot;Basic Bedwars Stats&quot;)]
          public async Task bedwarsStats(CommandContext ctx, string userIdInput)
          
  
          {
  
              ApiHelper.InitializeClient();
              var hypixel = new HypixelApi(BotConfig.apikey, 300);
              var playerNameGrabberAsync = await NameProcessor.getUserInfo(userIdInput).ConfigureAwait(false);
              
              {
  
                  var playerUserName = playerNameGrabberAsync.username;
                  var playerAvatar = playerNameGrabberAsync.avatar;
                  var playerNameRequestASYNC = await hypixel.GetUserByPlayerNameAsync(userIdInput/*This would preferably be the playerUserName Variable but to make it work for now I'm using the input*/).ConfigureAwait(false);
  
  
  // Stats Fetcher Cut Because Unnecessary right now, would normally fetch data using Hypixel.NET wrapper
  
                  var bwstats = new DiscordEmbedBuilder
                  {
                      Title = &quot;`playerUserName`'s &quot; + &quot;Bedwars Stats&quot;,
                      Description = &quot;Overall&quot;,
                      Thumbnail = new DiscordEmbedBuilder.EmbedThumbnail { Url = playerAvatar },
                      Color = DiscordColor.Purple,
                  };
                  bwstats.AddField(&quot;Level&quot;, &quot;`&quot; + Convert.ToString(bedwarsLevel) + &quot;✫`&quot;, true);
                  bwstats.AddField(&quot;Kills&quot;, &quot;`&quot; + Convert.ToString(bedwarsKills) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;KDR&quot;, &quot;`&quot; + Convert.ToString(bedwarsKDR) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;FKDR&quot;, &quot;`&quot; + Convert.ToString(fkdrOVERALL) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;Final Kills&quot;, &quot;`&quot; + Convert.ToString(finalKillsBedwarsOverall) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;Final Deaths&quot;, &quot;`&quot; + Convert.ToString(finalDeathsBedwarsOverall) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;WLR&quot;, &quot;`&quot; + Convert.ToString(wlrOVERALL) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;Wins&quot;, &quot;`&quot; + Convert.ToString(winsOverallBedwars) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;Losses&quot;, &quot;`&quot; + Convert.ToString(lossesOverallBedwars) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;BBLR&quot;, &quot;`&quot; + Convert.ToString(bblrOVERALL) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;Beds Broken&quot;, &quot;`&quot; + Convert.ToString(bedsBrokenBedwars) + &quot;`&quot;, true);
                  bwstats.AddField(&quot;Beds Lost&quot;, &quot;`&quot; + Convert.ToString(bedsLostBedwars) + &quot;`&quot;, true);
  </code></pre>
  <p><strong>ApiHelper.cs</strong></p>
  <pre><code>
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Net.Http;
  using System.Net.Http.Headers;
  using System.Text;
  using System.Threading.Tasks;
  using Newtonsoft.Json;
  
  namespace EQNX_Stats_Test
  {
      public static class ApiHelper
      {
          public static HttpClient ApiClient { get; set; }
          public static void InitializeClient()
          {
              ApiClient = new HttpClient();
              ApiClient.DefaultRequestHeaders.Accept.Clear();
              ApiClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(&quot;application/json&quot;));
          }
      }
  }
  </code></pre>
  <p><strong>NameProcessor.cs</strong></p>
  <pre><code>using System.Collections.Generic;
  using System.Linq;
  using System.Net.Http;
  using System.Text;
  using System.Threading.Tasks;
  using Newtonsoft.Json;
  
  namespace EQNX_Stats_Test
  {
      public class NameProcessor
      {
          public static async Task&lt;userInfoGrabber&gt; getUserInfo(string userIdInput)
          {
                  string apiurl = &quot;https://playerdb.co/api/player/minecraft/&quot; + userIdInput;
  
           
                  using (HttpResponseMessage response = await ApiHelper.ApiClient.GetAsync(apiurl))
                  {
                      if (response.IsSuccessStatusCode)
                      {
                      userInfoGrabber user = await response.Content.ReadAsAsync&lt;userInfoGrabber&gt;();
                    
                      Console.WriteLine($&quot;API Status: {response.StatusCode}&quot;);
                      return user;
                      }
                      else
                  {
                      throw new Exception(response.ReasonPhrase);
                  }
  
                  }    
              }
          }
      }
  </code></pre>
  <p><strong>userInfoGrabber.cs</strong></p>
  <pre><code>using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using Newtonsoft.Json;
  namespace EQNX_Stats_Test
  {
      public class userInfoGrabber
      {
          public string username { get; set; }
  
          public string avatar { get; set; }
  
          public string id { get; set; }
      }
  }
  </code></pre>