Escape .
in Discord to fix the invite leaking
This commit is contained in:
parent
bff3c2f58d
commit
43d12f2471
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ public class DiscordPlugin {
|
||||||
String message;
|
String message;
|
||||||
synchronized (logMessages) {
|
synchronized (logMessages) {
|
||||||
StringBuilder logMessage = logMessages.get(channelId);
|
StringBuilder logMessage = logMessages.get(channelId);
|
||||||
message = logMessage.toString();
|
message = logMessage.toString().replace(".", "\u200b.\u200b"); // the ZWSP fixes discord.gg showing invite
|
||||||
final int maxLength = 2_000 - ("""
|
final int maxLength = 2_000 - ("""
|
||||||
```ansi
|
```ansi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue