行分隔符/不连续嵌入 [英] Line separator/break in discord embded
问题描述
我嵌入了以下不和谐:
message.reply({
content: '',
embed: {
color: 11416728,
author: {
name: 'xx know-it-all',
icon_url: 'https://xx.png'
},
description: '',
footer: {
icon_url: client.user.avatarURL,
text: '© xx Network'
},
fields: [
{
name: '1st Line',
value: '2nd Line',
},
{
name: 'MAKE THIS JUST A SPACER',
value: 'MAKE THIS JUST A SPACER',
},
{
name: '5th Line',
value: '6th Line',
}
]
}
})
我正在尝试弄清楚如何创建各种分隔符。我尝试使用html空间,空白空间和alt代码空间。他们似乎都不起作用。有关如何完成此操作的任何想法?
I am trying to figure out how to create a spacer of sorts. I have tried using a html space, blank space, and alt code space. None of them seem to work. Any ideas on how to accomplish this?
问题是不和谐将字段返回为null,因此当我使用不可见的html空格或放putting时,它并没有使用它n
The issue is discord is returning the field as null, so it's not taking it when I use the invisible html space or putting \n
推荐答案
我明白了!
我需要做的所有事情是使用C / C ++ / Java编码版本的不可见空间
All I needed to do was use the C/C++/Java encoding version of the invisible space
\u200B
参考: https://www.fileformat.info/info/unicode/char/200B/index.htm
这可以使用对于其他希望使嵌入看起来更加清晰的人,因为不和谐使它变得复杂
This can come into use for other people looking to make embeds look more clear as discord complicates it
这篇关于行分隔符/不连续嵌入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!