<@USERID> 在 Discord Embeds v12 中不起作用

时间:2020-12-18 18:56:10

标签: javascript node.js discord discord.js

所以我试图在嵌入的 .setFooter() 中添加一个简单的消息,例如 "This was developed by <@USERID>"。但是,这不再起作用,但以前可以起作用。我该如何解决这个问题?

谢谢

1 个答案:

答案 0 :(得分:-1)

因为USERID不是东西,试试这个

// in the beggining of your code
const DevId = "your id here"

// in your embed settings
.setFooter(`This bot was developed by <@${DevId}>`)

// Beggining of the code
const DevId = `<@your id>`


// in your embed
.setFooter(`This bot was developed by ${DevId}`)