在机器人发布在Discord.net中编写的Discord代码后,我正在寻找删除机器人命令的方法



下面是发布嵌入消息后的代码我希望机器人删除发布嵌入的命令。此外,如果有人知道如何在这个嵌入中添加页脚,那将是一个很棒的

if (raid == "gos")
{
if (day == "Sun")
{
var filename = "gos_Sun.png";
var embed = new EmbedBuilder()
{
Title = "Garden of Salvation",
Description = "```" + day + ", " + date + " @ " + time + " " + ampm + " " + "n" + description + "```" + description2,
ImageUrl = $"attachment://{filename}",
}.Build();
SentEmbed = await Context.Channel.SendFileAsync(filename, embed: embed);
await SentEmbed.AddReactionsAsync(myReactions);
}
}
var footer = new EmbedFooterBuilder().WithText("React Below");

if (raid == "gos")
{
if (day == "Sun")
{
var filename = "gos_Sun.png";

var embed = new EmbedBuilder()
{
Title = "Garden of Salvation",
Description = "```" + day + ", " + date + " @ " + time + " " + ampm + " " + "n" + description + "```" + description2,
ImageUrl = $"attachment://{filename}",
}.WithFooter(footer).Build();

相关内容

  • 没有找到相关文章

最新更新