mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Update Discord.java
This commit is contained in:
parent
caf126f543
commit
c8ec171b11
@ -357,6 +357,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);
|
||||
|
Loading…
Reference in New Issue
Block a user