Answers for "Discord.MessageEmbed()"

6

Embed Example Discord.js

const embed = new Discord.RichEmbed() //Ver 11.5.1 of Discord.js
.setTitle("This is a title")
.setTitle("http://tryitands.ee")
.setDescription("This is a description")
.setTimestamp()
.setFooter("This is a footer")
.setAuthor("This is the author's name", //and this its profile pic)
.addField("This is a field", "this is its description")
.setImage("https://cdn.discordapp.com/avatars/449250687868469258/1709ab4f567c56eaa731518ff621747c.png?size=2048")
.setThumbnail("https://cdn.discordapp.com/avatars/449250687868469258/1709ab4f567c56eaa731518ff621747c.png?size=2048")
<message>.<channel>.send(embed)
Posted by: Guest on March-13-2020
1

discord.js MessageEmbed

//top of file
const Discord = require('discord.js')

//example (inside of a command)

const embed = new Discord.Message.Embed()
embed.setAuthor(`example`)
embed.setTitle(`example`)
embed.setDescription(`example`)

message.channel.send({embed});

//there are obviously some other add-ons, such as AuthorIcon and URL.
Posted by: Guest on October-02-2020
1

make a discord message embed

//command handlers dont do this if you already have them
exports.run = async (client, message, args) => {
  //define the embed with let, const, or var
  var EmbedMessage = new Discord.MessageEmbed()
    .setColor('red')
    .setImage('You can set a image view link from tenor or something just makesure it has https:// in it')
    .setURL('set a url here for ex: https://google.com/ just make sure it's https://')
    .setFooter('this part is the end of the embed you can define the bots logo and tag here by doing client.user.displayAvatarURL, client.user.tag')
    
    //finnaly now to send the message do this
    message.channel.send('EmbedMessage') //Ur embed variable name there
}
Posted by: Guest on June-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language