mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2024-05-20 19:41:24 +00:00
Forgot I had this there
This commit is contained in:
parent
a33c310757
commit
16e06bd932
|
@ -85,7 +85,7 @@ public class DiscordToAdminChatListener extends ListenerAdapter
|
|||
{
|
||||
for (Message.Attachment attachment : msg.getAttachments())
|
||||
{
|
||||
TextComponent text = new TextComponent((msg.getContentDisplay().isEmpty() ? "" : " ") + mediamessage);
|
||||
TextComponent text = new TextComponent(mediamessage);
|
||||
text.setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, attachment.getUrl()));
|
||||
if (!msg.getContentDisplay().isEmpty())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue