我花了很长时间浏览文档,但我无法弄清楚:您如何跟踪特定用户发送的下一条消息?
[Command("Multi")]
[Description("Start a multiplayer training session")]
public async Task multi(CommandContext ctx, DiscordMember member, int pnum)
{
var intr = ctx.Client.GetInteractivityModule();
await ctx.RespondAsync("{member.Mention}, please respond with `Accept` to accept the party invite. ");
var reminderContent = await intr.WaitForMessageAsync(
c => c.Author.Id == ctx.Message.Author.Id,
TimeSpan.FromSeconds(60)
);
}
文档在这里:https ://dsharpplus.github.io/api/index.html
这是我的第一个 StackOverflow 问题;请告诉我是否应该包含更多信息!谢谢!