Discord.NET C# 如何让机器人在执行命令之前等待输入

Discord.NET C# How do I make the bot wait for an input before proceeding with the command

我想知道如何在我的命令中做这样的事情 class:

  public string yuh;
  [Command("test")]
    public async Task test(params string[] args) 
    {
        if (args.Length == 0)
        {
            await ReplyAsync("Tell me something.");
            ***WAIT FOR A USER INPUT***
            yuh = Context.Message.Content;

        }
        await ReplyAsync(yuh);
    }

我应该在 等待用户输入?

中输入什么

您可以使用 Discord.Addons.Interactive。它是与 NuGet 一起安装的 Discord.Net 的“插件”。

var response = await NextMessageAsync();

GitHub File Example