“Discord.js Campo em branco” Respostas de código

Como enviar uma mensagem de incorporação discord.js

let Embed = new Discord.MessageEmbed()
    .setTitle()
    .setAuthor()
    .setColor()
    .addField()
    .setDescription()
    .setThumbnail()
Xenophobic Xenomorph

Discord.js Campo vazio

const Discord = require('discord.js')

const embed = new Discord.MessageEmbed()
	.setTitle('Example')
	.addFields(
      { name: 'foo', value: 'bar', inline: true },
      { name: '\u200b', value: '\u200b', inline: true},
      { name: 'foo2', value: 'bar2', inline: true }
    )

message.reply(embed)
Embarrassed Earthworm

Exemplo de incorporação 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)
Develify

Discord.js Campo em branco

const embed = new Discord.MessageEmbed()
	.setTitle("Title")
	.setColor("0xff0000")//red
	.addField("field title", "field content")
	.addField('\u200B','\u200B') //blank field, can also be inline with the 3rd parameter set to true
;
Jericho

Respostas semelhantes a “Discord.js Campo em branco”

Perguntas semelhantes a “Discord.js Campo em branco”

Mais respostas relacionadas para “Discord.js Campo em branco” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código