discord-jda / JDA

Java wrapper for the popular chat & VOIP service: Discord https://discord.com
Apache License 2.0
4.31k stars 734 forks source link

MarkdownSanitizer escaping incorrectly #2358

Closed SurfyDevelopment closed 1 year ago

SurfyDevelopment commented 1 year ago

General Troubleshooting

Expected Behaviour

This text is supposed to be escaped from:

. 
    > TEST

to:

. 
    \> TEST

However, this does not happen.

As shown: image

Debug: image

Code Example for Reproduction Steps

String escapedText = MarkdownSanitizer.escape(". \n    > TEST");

Code for JDABuilder or DefaultShardManagerBuilder used

Irrelevant

Exception or Error

No response

MinnDevelopment commented 1 year ago

Fixed in 5.0.0-beta.10