Discord.Net 使用机器人头像 IconURL/AvatarURL

Discord.Net using Bots avatar as IconURL/AvatarURL

我目前是一名嵌入人员,我遇到的问题是将机器人的头像作为图标。这是在 Visual Basic 中,但如果 C# 中有一些东西,我可以使用它并尝试让它工作。

        Dim embed As New EmbedBuilder With {
        .Title = "Help comand",
        .Description = "hello",
        .Color = New Color(255, 0, 0),
        .ThumbnailUrl = Context.Guild.IconUrl,
        .Timestamp = Context.Message.Timestamp,
        .Footer = New EmbedFooterBuilder With {
                .Text = "Footer",
                .IconUrl = "URL COMMAND HERE"
            }
        }

我该如何解决这个问题?我在其他语言中看到过这个,但我在 Discord.Net

上的发现 none
//as an author
var builder = new EmbedBuilder()
                .WithAuthor(author =>
                {
                    author
                    .WithIconUrl(Context.User.GetAvatarUrl() ?? Context.User.GetDefaultAvatarUrl());
                });
            var embed = builder.Build();

            await Context.Channel.SendMessageAsync(null, false, embed);
//as a title
var builder = new EmbedBuilder()
                .WithTitle(Context.User.GetAvatarUrl() ?? Context.User.GetDefaultAvatarUrl());
            var embed = builder.Build();

            await Context.Channel.SendMessageAsync(null, false, embed);

等等,几乎无处不在。我有点晚了,但是为了搜索这个的新人做的