运行我的机器人代码时,终端会出现以下警告:
(node:6220) DeprecationWarning: 为MessageEmbed#setFooter传递字符串已被弃用,请改为传递一个对象。(使用node --trace-deprecation ...
以显示警告的创建位置)
运行我的机器人代码时,终端会出现以下警告:
(node:6220) DeprecationWarning: 为MessageEmbed#setFooter传递字符串已被弃用,请改为传递一个对象。(使用node --trace-deprecation ...
以显示警告的创建位置)
D.JS v13 变更
// you used:
embed.setFooter("test")
// in discord.js v13:
embed.setFooter({
text: "test"
})