title: how to fix bot from not connecting to my discord server
body: <p>so recently i have started coding my own bot for my teams discord server and its not connecting i followed a couple of tutorials and they didn't help me at all so here's my code.
  IF anyone can help it will be greatly appreciated and thank you so much!!</p>
  
  <pre><code>using Discord;
  using Discord.Commands;
  
  
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace Dlzbot
  {
  class MyBot
  {
      DiscordClient discord;
  
      public MyBot()
      {
          discord = new DiscordClient(x =&gt;
          {
              x.LogLevel = LogSeverity.Info;
              x.LogHandler = Log;
          });
  
          discord.ExecuteAndWait(async () =&gt;
          {
              await    discord.Connect("My Bot Token");
          });
      }
  
      private void Log(object sender, LogMessageEventArgs e)
      {
          Console.WriteLine(e.Message);
      }
    }
  }
  </code></pre>
  
  <p>Look at the Error!
  hope this screenshot of the errors help! thanks guys
  <a href="https://i.stack.imgur.com/1zwW2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1zwW2.png" alt="ERROS HOPE THIS HELPS"></a></p>