【发布时间】:2021-06-03 02:59:04
【问题描述】:
我做了一个“funnyrate”命令,效果很好。但是我认为如果嵌入机器人的回复会更好看。有人可以帮我让机器人回复嵌入吗?这是代码:
module.exports.run = async (bot, message, args) => {
var rating = Math.floor(Math.random() * 100) + 1;
var mentionedMember = message.mentions.members.first();
if (!mentionedMember) return message.reply(`according to my calculations, you are ${rating}% funny????`);
return message.channel.send(`${mentionedMember}, according to my calculations, you are ${rating}% funny????`);
}
module.exports.help = {
name:"funnyrate"
}
【问题讨论】:
-
请参阅This Guide 构建和发送嵌入。
标签: discord discord.js