Answers for "discord js update embed"

19

discord .js embed

// at the top of your file
const Discord = require('discord.js');

// inside a command, event listener, etc.
const exampleEmbed = new Discord.MessageEmbed()
	.setColor('#0099ff')
	.setTitle('Some title')
	.setURL('https://discord.js.org/')
	.setAuthor('Some name', 'https://i.imgur.com/wSTFkRM.png', 'https://discord.js.org')
	.setDescription('Some description here')
	.setThumbnail('https://i.imgur.com/wSTFkRM.png')
	.addFields(
		{ name: 'Regular field title', value: 'Some value here' },
		{ name: '\u200B', value: '\u200B' },
		{ name: 'Inline field title', value: 'Some value here', inline: true },
		{ name: 'Inline field title', value: 'Some value here', inline: true },
	)
	.addField('Inline field title', 'Some value here', true)
	.setImage('https://i.imgur.com/wSTFkRM.png')
	.setTimestamp()
	.setFooter('Some footer text here', 'https://i.imgur.com/wSTFkRM.png');

channel.send(exampleEmbed);
Posted by: Guest on September-19-2020
3

discord.js send embed

message.channel.send({
  "embed": {
    "color": 12943398,
    "fields": [
      {
        "name": "Information",
        "value": "Embeds work for both text, and emoji. You can use variables too"
      }
    ]
  }
})

//If you want to make your own rich embed, I would recommend the website listed below next to source
Posted by: Guest on January-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language