Hotfix DiscordChannel

This commit is contained in:
2025-07-13 20:48:43 +02:00
parent 291b6b1804
commit 0e9c9bd4dc
@@ -85,9 +85,9 @@ public class DiscordChannel extends Chatter.PlayerlessChatter {
public void send(String message) { public void send(String message) {
message = message message = message
.replace("&", "") .replace("&", "")
.replace("@everyone", "`@everyone`") .replace("@everyone", "@\u200Beveryone")
.replace("@here", "`@here`") .replace("@here", "@\u200Bhere")
.replaceAll("<[@#]!?\\d+>", "`$0`"); .replaceAll("<([@#])(!?\\d+)>", "<$1\u200B$2>");
if (maxNumberOfWebhooks > 0 && getChannel() instanceof TextChannel && message.contains("»")) { if (maxNumberOfWebhooks > 0 && getChannel() instanceof TextChannel && message.contains("»")) {
String[] strings = message.split("»", 2); String[] strings = message.split("»", 2);