1// at the top of your file
2const Discord = require('discord.js');
3
4// inside a command, event listener, etc.
5const exampleEmbed = new Discord.MessageEmbed()
6 .setColor('#0099ff')
7 .setTitle('Some title')
8 .setURL('https://discord.js.org/')
9 .setAuthor('Some name', 'https://i.imgur.com/wSTFkRM.png', 'https://discord.js.org')
10 .setDescription('Some description here')
11 .setThumbnail('https://i.imgur.com/wSTFkRM.png')
12 .addFields(
13 { name: 'Regular field title', value: 'Some value here' },
14 { name: '\u200B', value: '\u200B' },
15 { name: 'Inline field title', value: 'Some value here', inline: true },
16 { name: 'Inline field title', value: 'Some value here', inline: true },
17 )
18 .addField('Inline field title', 'Some value here', true)
19 .setImage('https://i.imgur.com/wSTFkRM.png')
20 .setTimestamp()
21 .setFooter('Some footer text here', 'https://i.imgur.com/wSTFkRM.png');
22
23channel.send(exampleEmbed);
1// at the top of your file
2const Discord = require('discord.js');
3
4// inside a command, event listener, etc.
5const exampleEmbed = new Discord.RichEmbed()
6 .setColor('#0099ff')
7 .setTitle('Some title')
8 .setURL('https://discord.js.org/')
9 .setAuthor('Some name', 'https://i.imgur.com/wSTFkRM.png', 'https://discord.js.org')
10 .setDescription('Some description here')
11 .setThumbnail('https://i.imgur.com/wSTFkRM.png')
12 .addField('Regular field title', 'Some value here')
13 .addBlankField()
14 .addField('Inline field title', 'Some value here', true)
15 .addField('Inline field title', 'Some value here', true)
16 .addField('Inline field title', 'Some value here', true)
17 .setImage('https://i.imgur.com/wSTFkRM.png')
18 .setTimestamp()
19 .setFooter('Some footer text here', 'https://i.imgur.com/wSTFkRM.png');
20
21channel.send(exampleEmbed);
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.