IceTapz :P

IceTapz :P

  • NA
  • 2
  • 964

Problem when making a discord bot

Jan 20 2019 3:50 AM
Hi, so basically, I am trying to make a discord bot but it is not working due to the following line:
 
await CommandService.AddModulesAsync(Assembly.GetEntryAssembly());
 
The error that my compiler prompts is:
 
Severity Code Description Project File Line Suppression State
Error CS7036 There is no argument given that corresponds to the required formal parameter 'services' of 'CommandService.AddModulesAsync(Assembly, IServiceProvider)' Discord Bot C:\Users\*********\Desktop\Discord Bot\Discord Bot\Program.cs 37 Active
 
I will leave the code right above here (the line with error is 37):
https://pastebin.com/DbaSYE1X

Answers (1)