How to create embeds with glitch

Like i used this to create an a embed-

let eEmbed = new Discord.RichEmbed()

But it didn’t worked.

Try this. It works for me

let embed = new Discord.RichEmbed()
	.addField('title', 'content');{
	embed: embed

EDIT: Anyway. I tried your code and it worked too. Maybe you have an error in other thing