由于错误CS1503
,我无法使此代码生效public async Task InstallCommand ;
{
client.MessageReceived += HandleCommand;
await commands.AddModuleAsync(Assembly.GetEntryAssembly) ;
}
答案 0 :(得分:2)
在方法声明中,将;
更改为()
public async Task InstallCommand()
{
client.MessageReceived += HandleCommand;
await commands.AddModuleAsync(Assembly.GetEntryAssembly);
}