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
这篇关于嵌入的不和谐中的行分隔符/中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:嵌入的不和谐中的行分隔符/中断


- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Flexslider 箭头未正确显示 2022-01-01
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07