-1
所以我正在研究一個不協調的機器人,並且我想要幾乎每個機器人都使用的東西:當玩家輸入命令(!幫助)時,它會發送他的cmds。任何人都可以幫忙?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);