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) {
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user