嵌入标题中的小图片,Discord.js

Little image in embed titles, Discord.js

我一直在尝试在我的嵌入标题中显示小图片。但是我不能让它工作,整个URL显示出来。
我尝试使用的代码:

    var embed = new Discord.RichEmbed()
        .setTitle(message.author.displayAvatar)
        //I tried displayAvatarURL too
        .setDescription('Test');
        channel.send(embed);

该图标来自 embed.setAuthor

var embed = new Discord.RichEmbed()
    .setTitle("My Title")
    .setAuthor("My Name", message.author.avatarURL)
    .setDescription("My Description");
    channel.send(embed);

还要从用户头像获取 URL,当前 Discord.js 版本是 message.author.avatarURL 而不是 displayAvatar

如果你想添加一点小图片你需要defaultAvatarUR

    var embed = new Discord.RichEmbed()
        .setAuthor(message.author.defaultAvatarUR)
        .setDescription('Test');
        channel.send(embed);

会是这样的 click here to see