LuckPerms / clippy

A (very) helpful office assistant for the LuckPerms Discord.
https://discord.gg/luckperms
MIT License
11 stars 23 forks source link

Use zero width space #17

Closed Andre601 closed 4 years ago

Andre601 commented 4 years ago

Embed fields support the usage of zero width space (\u200E) inside them. If JS for whatever reason doesn't support this... F*ck JS

lucko commented 4 years ago

Have you tested?

Andre601 commented 4 years ago

Have you tested?

JDA uses the Zero width space in embeds when f.e. not providing a specific value, or when using the addEmptyField method which just adds an embed with said spaces.

See: https://github.com/DV8FromTheWorld/JDA/blob/master/src/main/java/net/dv8tion/jda/api/EmbedBuilder.java#L758-L774

Turbotailz commented 4 years ago

That doesn't answer his question though lol

Andre601 commented 4 years ago

It should unless js has a completely different handling of unicode characters, which would be really stupid. I didn't spend time on testing this (Nor will I setup my own version of Clippy, just to test this little change) but I'm confident it will work, as Discord would handle this, as it should.

lucko commented 4 years ago

Here goes nothing then I guess...

Andre601 commented 4 years ago

Zero width spaces do work as expected. image