Line breaking on Discord causes spam in game.
andrewkm opened this issue ยท 1 comments
Expected behavior
No Spam.
Actual behavior
Spam.
Steps to reproduce
1.17.1 Paper Build 408
DiscordSRV built upon 4775ab5
Example input: https://i.imgur.com/WSH7j8Q.png
Example output: https://i.imgur.com/I3plb67.png
Server software and version
1.17.1 Paper Build 408
Checks
- I am not using an outdated version of DiscordSRV.
- I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.
Anything else
No response
While potentially problematic, this is intended behaviour. If you wish to filter out the newlines, you can set your DiscordChatChannelDiscordFilters config option (config.yml) to something like this:
DiscordChatChannelDiscordFilters: {"\\n": "<newline>"}