📜  discord.js MessageEmbed - Javascript 代码示例

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

代码示例1
//top of file
const Discord = require('discord.js')

//example (inside of a command)

const embed = new Discord.Message.Embed()
embed.setAuthor(`example`)
embed.setTitle(`example`)
embed.setDescription(`example`)

message.channel.send({embed});

//there are obviously some other add-ons, such as AuthorIcon and URL.