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?
问题是不和谐将字段返回为空,所以当我使用不可见的 html 空间或放置
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
推荐答案
我明白了!
我需要做的就是使用隐形空间的 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
这篇关于嵌入的不和谐中的行分隔符/中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:嵌入的不和谐中的行分隔符/中断


基础教程推荐
- html表格如何通过更改悬停边框来突出显示列? 2022-01-01
- Electron 将 Node.js 和 Chromium 上下文结合起来意味着 2022-01-01
- 直接将值设置为滑块 2022-01-01
- 用于 Twitter 小部件宽度的 HTML/CSS 2022-01-01
- 我可以在浏览器中与Babel一起使用ES模块,而不捆绑我的代码吗? 2022-01-01
- Vue 3 – <过渡>渲染不能动画的非元素根节点 2022-01-01
- 如何使用TypeScrip将固定承诺数组中的项设置为可选 2022-01-01
- 自定义 XMLHttpRequest.prototype.open 2022-01-01
- Chart.js 在线性图表上拖动点 2022-01-01
- 如何使用JIT在顺风css中使用布局变体? 2022-01-01