【发布时间】:2021-06-09 06:26:10
【问题描述】:
我在让嵌入有反应时遇到问题,当你对它做出反应时,它会在不和谐聊天中发布另一个嵌入,这都是试图制作一个解释数学和代数的机器人,我还需要在一个文件中执行此操作,我找不到任何教程,我不知道该怎么做...
谢谢!
module.exports = {
name: 'algebra',
description: 'This is a test embed command',
async execute(message, args, Discord, client){
const newEmbed = new Discord.MessageEmbed()
.setColor('#3B0099')
.setThumbnail('https://i.imgur.com/a/Wnjoo1L')
.setTimestamp()
.setAuthor('This was written by (REDACTED)')
.setDescription('Once finished reading this you should know a lot about algebra!')
.setFooter('Algebra')
.addFields(
{name: 'The Basics Behind Algebra', value: 'Algebra can be a simpal concept if approached correctly, as in you must know what the steps you will take are and complete them in the correct order and way. Algebra mainly focuses on substituting numbers with letters. If you want to learn more about this please react with the letter A'},
{name: 'The Theory of Algebra', value: 'The theory of Algebra is one that is... If you want to learn more about this please react with the letter B'}
)
message.channel.send(newEmbed).then((msg) =>{
msg.react('1️⃣');
msg.react('2️⃣');
msg.react('3️⃣');
msg.react('4️⃣');
msg.react('5️⃣');
msg.react('6️⃣');
msg.react('7️⃣');
msg.react('8️⃣');
msg.react('9️⃣');
msg.react('????');
}).catch((err)=>{
throw err;
});
}
}
【问题讨论】:
标签: node.js discord discord.js embed