1
Answer

Problem when making a discord bot

IceTapz :P

IceTapz :P

6y
1k
1
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)