forked from SteamWar/SteamWar
Hotfix DiscordChannel
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user