我正在尝试为我的机器人实现嵌入式消息。我知道我需要用特定信息填充 Embed
对象。但是我怎样才能将它发送到 channel 呢?当我使用 e.Channel.SendMessage(string);
时,它无法发送 Embed
对象,它只会发送字符串。
最佳答案
var eb = new EmbedBuilder();
eb.WithDescription("some text");
await Context.Channel.SendMessageAsync("", false, eb.Build());
在 Discord.NET 1.0 中。
0.9.6 不支持嵌入。
关于c# - Discord.net bot 嵌入消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44300770/