【发布时间】:2019-10-30 07:56:00
【问题描述】:
我想在嵌入消息中添加一个特定的成员信息(用户名 + 头像)。有人知道怎么做吗?
const feedback = new discord.RichEmbed()
.setColor([0, 0, 255])
.setFooter("Bot created by : " + message.author.username, message.author.avatarURL)
.setDescription("The text I want to be sent")
在上面的代码中,我想通过特定的不和谐成员标识 id 更改“message.author.username”和“message.author.avatarUrl”,例如:436577130583949315。
但是我不知道从那个不和谐的识别号中能够显示用户名和头像的方式是什么。
提前感谢您的帮助:)
【问题讨论】:
标签: javascript node.js discord.js