我尝试使用插件 d# 在 c# 中制作一个不和谐的机器人,但我遇到了这个不应该存在的错误
public class Bot
{
public DiscordClient Client { get; private set; }
public CommandsNextConfiguration Commands { get; private set; }
public async Task RunAsync()
{
var config = new DiscordConfiguration
{
};
Client = new DiscordClient(config);
Client.Ready += OnClientReady;
var commandsConfig = new CommandsNextConfiguration
{
};
Commands = Client.UseCommandsNext(commandsConfig);
}
private Task OnClientReady(object sender, ReadyEventArgs e)
{
return null;
}