Update Discord.java

This commit is contained in:
speed 2020-12-23 20:13:26 -05:00
parent caf126f543
commit c8ec171b11

View File

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