title: CS1503 C# Argument 1 : cannot convert from 'System.Reflection.Assembly' to 'System.Type'
body: <p>I try to make a discord bot but i get this error: </p>
  
  <blockquote>
    <p>CS1503 C# Argument 1 : cannot convert from 'System.Reflection.Assembly' to 'System.Type'. </p>
  </blockquote>
  
  <p>I want to create a discord bot but because of this error I can't run it.</p>
  
  <p><img src="https://i.stack.imgur.com/rgf1U.png" alt="Here is photo of my visual studio"></p>
  
  <p>My Code : </p>
  
  <pre><code>using System;
  using System.IO;
  using System.Reflection;
  using System.Threading.Tasks;
  
  using Discord;
  using Discord.Commands;
  using Discord.WebSocket;
  
  namespace Risk
  {
      class Program
      {
          private DiscordSocketClient Client;
          private CommandService Commands;
  
          static void Main(string[] args)
              =&gt; new Program().MainAsync().GetAwaiter().GetResult();
  
          private async Task MainAsync()
          {
              Client = new DiscordSocketClient(new DiscordSocketConfig
              {
                  LogLevel = LogSeverity.Debug
              });
  
  
              Commands = new CommandService(new CommandServiceConfig
              {
                  CaseSensitiveCommands = true,
                  DefaultRunMode = RunMode.Async,
                  LogLevel = LogSeverity.Debug
              });
  
              Client.MessageReceived += Client_MessageReceived;
              await Commands.AddModuleAsync(Assembly.GetEntryAssembly());
  
              Client.Ready += Client_Ready;
              Client.Log += Client_Log;
  
              string Token = "";
              using (var Stream = new FileStream((Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)).Replace(@"bin\Debug\netcoreapp2.0", @"Data\Token.txt"), FileMode.Open, FileAccess.Read))
              using (var ReadToken = new StreamReader(Stream))
              {
                  Token = ReadToken.ReadToEnd();
              }
  
              await Client.LoginAsync(TokenType.Bot, Token);
              await Client.StartAsync();
  
              await Task.Delay(-1);
          }
  
          private async Task Client_Log(LogMessage arg)
          {
              Console.WriteLine($"{DateTime.Now} at (Message.Source)] (Message.Message)");
          }
  
          private async Task Client_Ready()
          {
              await Client.SetGameAsync("Risk Bot...", "", StreamType.NotStreaming);
          }
  
          private async Task Client_MessageReceived(SocketMessage arg)
          {
  
          }
      }
  }
  </code></pre>