“Discord.js Blank Field” Ответ

Как отправить встроенное сообщение discord.js

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

Discord.js пустое поле

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

Встроенный пример 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 Blank Field

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

Ответы похожие на “Discord.js Blank Field”

Вопросы похожие на “Discord.js Blank Field”

Больше похожих ответов на “Discord.js Blank Field” по JavaScript

Смотреть популярные ответы по языку

Смотреть другие языки программирования