1//top of file
2const Discord = require('discord.js')
3
4//example (inside of a command)
5
6const embed = new Discord.Message.Embed()
7embed.setAuthor(`example`)
8embed.setTitle(`example`)
9embed.setDescription(`example`)
10
11message.channel.send({embed});
12
13//there are obviously some other add-ons, such as AuthorIcon and URL.
1const countdownEmbed = new MessageEmbed()
2 .setDescription('test1')
3
4const countdownEmbed2 = new MessageEmbed()
5 .setDescription('test2')
6 .setColor('RED')
7
8message.channel.send({ embed: countdownEmbed }).then((msg) => {
9 setTimeout(function () {
10 msg.edit(countdownEmbed2);
11 }, 1000)
12})
13