1These '<meta>' tags must be in the '<head>' tag
2<meta property="og:type" content="website">
3<meta property="og:site_name" content="Website Name">
4<meta property="og:title" content="Title">
5<meta property="og:description" content="This is an example">
6<meta property="og:image" content="https://www.example.com/example.png">
7<meta name="twitter:card" content="summary_large_image">
8<meta name="twitter:site" content="@discord">
9<meta name="twitter:creator" content="@yourtwitter">
1let Embed = new Discord.MessageEmbed()
2 .setTitle()
3 .setAuthor()
4 .setColor()
5 .addField()
6 .setDescription()
7 .setThumbnail()
1const embed = new Discord.RichEmbed() //Ver 11.5.1 of Discord.js
2.setTitle("This is a title")
3.setTitle("http://tryitands.ee")
4.setDescription("This is a description")
5.setTimestamp()
6.setFooter("This is a footer")
7.setAuthor("This is the author's name", //and this its profile pic)
8.addField("This is a field", "this is its description")
9.setImage("https://cdn.discordapp.com/avatars/449250687868469258/1709ab4f567c56eaa731518ff621747c.png?size=2048")
10.setThumbnail("https://cdn.discordapp.com/avatars/449250687868469258/1709ab4f567c56eaa731518ff621747c.png?size=2048")
11<message>.<channel>.send(embed)
1const Discord = require("discord.js")
2
3const embed = new Discord.MessageEmbed() // Ver 12.2.0 of Discord.js
4.setTitle("This is a title")
5.setDescription("This is a description")
6.setTimestamp()
7.setFooter("This is a footer")
8.setAuthor("This is the author's name", //and this its profile pic)
9.addField("This is a field", "this is its description")
10.setImage("https://images-ext-2.discordapp.net/external/cC-YBJkH2GXnX7MHMASUM9Gle1S1im3rDJj2K54A28w/%3Fcid%3D73b8f7b19a5ccc575679c0a7fc4a673b753e4ce993f35223%26rid%3Dgiphy.mp4/https/media2.giphy.com/media/Q8bEDnj9hZd6vivXSZ/giphy.mp4")
11.setThumbnail("https://images-ext-2.discordapp.net/external/cC-YBJkH2GXnX7MHMASUM9Gle1S1im3rDJj2K54A28w/%3Fcid%3D73b8f7b19a5ccc575679c0a7fc4a673b753e4ce993f35223%26rid%3Dgiphy.mp4/https/media2.giphy.com/media/Q8bEDnj9hZd6vivXSZ/giphy.mp4")
12<message>.<channel>.send(embed) // Remove the brackets <>
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);
24