Discord
- 7 ответов
- 0 вопросов
3
Вклад в тег
menu.reply.send(embed, true)
message.reply.send(embed, true)
)) let embed = new Discord.MessageEmbed()
.setDescription(`Твой текст`);
message.channel.send(embed).then(msg => {
msg.react('✔').then( r => {
msg.react('❌')
const Yes = (reaction, user) => reaction.emoji.name === '✔' && user.id === message.author.id;
const No = (reaction, user) => reaction.emoji.name === '❌' && user.id === message.author.id;
const Yes1 = msg.createReactionCollector(Yes, {timer: 1000});
const No1 = msg.createReactionCollector(No, {timer: 1000});
Yes1.on('collect', r => {
msg.delete();
let embedYes = new Discord.MessageEmbed()
.setDescription(`Текст если на галочку`);
return message.channel.send(embedYes);
})
No1.on('collect', r => {
msg.delete();
let embedNo = new Discord.MessageEmbed()
.setDescription(`Текст если на крестик`);
return message.channel.send(embedNo);
})
})
})