fix underscore italic thing
This commit is contained in:
speed
2020-12-23 20:09:57 -05:00
parent a717cce3b5
commit caf126f543
2 changed files with 6 additions and 1 deletions

View File

@ -332,6 +332,11 @@ public class Discord extends FreedomService
return;
}
if (message.contains("_"))
{
message = message.replace("_", "\\_");
}
if (enabled && !chat_channel_id.isEmpty())
{
CompletableFuture<Message> sentMessage = bot.getTextChannelById(chat_channel_id).sendMessage(message).submit(true);