Discord.net发送直接信息(PM)给指挥亚军人

问题描述:

所以我正在研究一个不协调的机器人,并且我想要几乎每个机器人都使用的东西:当玩家输入命令(!帮助)时,它会发送他的cmds。任何人都可以帮忙?Discord.net发送直接信息(PM)给指挥亚军人

使用Discord.Net 1.0它是非常简单的:

await Context.User.SendMessageAsync("Message"); 

您还可以嵌入这样的消息:

var EB = new EmbedBuilder(); 
EB.WithTitle("Secret Commands"); 
EB.WithDescription("!command \n" + "!anothercommand"); 

await Context.User.SendMessageAsync("", false, EB);