📌  相关文章
📜  discord 丰富的嵌入加入按钮 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:32.890000             🧑  作者: Mango

代码示例2
const Discord = require("discord.js")

const embed = new Discord.MessageEmbed() // Ver 12.2.0 of Discord.js
.setTitle("This is a title")
.setURL("Title URL")
.setDescription("This is a description")
.setTimestamp()
.setFooter("This is a footer", "FOOTER ICON URL")
.setAuthor("This is the author's name", "AUTHOR ICON URL")
.addField("This is a field", "this is its description")
.addFields([{
    name: "You can add as many fields you need.",
      value: "Field description"
}, {
    name: "field 2",
      vale: "field 2 description"
}, {
    name: "field 3",
      vale: "field 3 description"
} ])
.setImage("IMAGE URL")
.setThumbnail("THUMBNAIL URL")
message.channel.send(embed)