Continuously Editing a Message

I was coding a bot and i wanted to make a live countdown from a certain time. I got the certain time right, but I had one problem. I couldnt edit the message so that it displays the remaining time. Here is my code currently:

module.exports.run = async (client, message, args) => { let time = client.db.get(`time`)  const exampleEmbed = new Discord.MessageEmbed()     .setColor('#ff74fc')     .setTitle('V2 Release Time')     .setDescription('This command will be showing the countdown until the V2 cafe releases! ')     .setThumbnail('https://media.discordapp.net/attachments/708130362122829876/746736868124524584/image0.jpg')     .addFields(         { name: 'Time', value: `${time} Seconds Left!` },     )     .setTimestamp()     .setFooter('Flamgo Bot');   return message.channel.send(exampleEmbed)    const Edit = new Discord.MessageEmbed()     .addFields(         { name: 'Time', value: `${time} Seconds Left!` },     )   message.edit(Edit)   } module.exports.help = {  name: "v2time" }; 

If anyone could help it would be helpful. Thanks.

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.