From 0e9c9bd4dc734b61eb92dd17a69a011c086d089d Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sun, 13 Jul 2025 20:48:43 +0200 Subject: [PATCH] Hotfix DiscordChannel --- .../velocitycore/discord/channels/DiscordChannel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/discord/channels/DiscordChannel.java b/VelocityCore/src/de/steamwar/velocitycore/discord/channels/DiscordChannel.java index 5fcbcf6a..49b5d4f2 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/discord/channels/DiscordChannel.java +++ b/VelocityCore/src/de/steamwar/velocitycore/discord/channels/DiscordChannel.java @@ -85,9 +85,9 @@ public class DiscordChannel extends Chatter.PlayerlessChatter { public void send(String message) { message = message .replace("&", "") - .replace("@everyone", "`@everyone`") - .replace("@here", "`@here`") - .replaceAll("<[@#]!?\\d+>", "`$0`"); + .replace("@everyone", "@\u200Beveryone") + .replace("@here", "@\u200Bhere") + .replaceAll("<([@#])(!?\\d+)>", "<$1\u200B$2>"); if (maxNumberOfWebhooks > 0 && getChannel() instanceof TextChannel && message.contains("»")) { String[] strings = message.split("»", 2);