嵌入的不和谐中的行分隔符/中断

2022-01-10 00:00:00 discord javascript discord.js

我嵌入了以下不和谐:

    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

相关文章