diff --git a/src/main/java/com/stream_pi/discordaction/DiscordAction.java b/src/main/java/com/stream_pi/discordaction/DiscordAction.java index 29adfa3bb63e63a7408fdb7d5acbb6625286db9a..1d5cae4caa97d0c20074a305f5222dea0040a829 100644 --- a/src/main/java/com/stream_pi/discordaction/DiscordAction.java +++ b/src/main/java/com/stream_pi/discordaction/DiscordAction.java @@ -17,7 +17,7 @@ public class DiscordAction extends NormalAction { setCategory("Discord"); setAuthor("Miniontoby"); setServerButtonGraphic("fab-discord"); - setHelpLink("https://github.com/stream-pi/essential-actions"); + setHelpLink("https://edugit.org/Miniontoby/DiscordAction"); setVersion(new Version(1,0,0)); } @@ -27,16 +27,16 @@ public class DiscordAction extends NormalAction { Property webhookURLProperty = new StringProperty("webhook_url"); webhookURLProperty.setDisplayName("Webhook URL"); - Property contentProperty = new StringProperty("content"); - contentProperty.setDisplayName("Webhook Text Content"); - Property usernameProperty = new StringProperty("username"); usernameProperty.setDisplayName("Webhook Username"); Property titleProperty = new StringProperty("title"); titleProperty.setDisplayName("Webhook Title"); - addClientProperties(webhookURLProperty, contentProperty, usernameProperty, titleProperty); + Property contentProperty = new StringProperty("content"); + contentProperty.setDisplayName("Webhook Text Content"); + + addClientProperties(webhookURLProperty, usernameProperty, titleProperty, contentProperty); } @Override @@ -46,9 +46,9 @@ public class DiscordAction extends NormalAction { public void sendMessage() throws MinorException { String webhookURL = getClientProperties().getSingleProperty("webhook_url").getStringValue(); - String webhookContent = getClientProperties().getSingleProperty("content").getStringValue(); String webhookTitle = getClientProperties().getSingleProperty("title").getStringValue(); String webhookUser = getClientProperties().getSingleProperty("username").getStringValue(); + String webhookContent = getClientProperties().getSingleProperty("content").getStringValue(); if (webhookURL.isBlank()) { throwMinorException("No Discord Webhook URL specified!"); diff --git a/target/classes/com/stream_pi/discordaction/DiscordAction.class b/target/classes/com/stream_pi/discordaction/DiscordAction.class index f929fe47de46396385688c58d6092d82fbc9a63e..c9e56ad7431cac9e229d96fb588cb9aa89505e14 100644 Binary files a/target/classes/com/stream_pi/discordaction/DiscordAction.class and b/target/classes/com/stream_pi/discordaction/DiscordAction.class differ diff --git a/target/discordaction-1.0.0.jar b/target/discordaction-1.0.0.jar index 238a357a440d11f4fc5f6619a8336a8d89ef45d4..092104f4444ad98dc25648b17758ffc075f4da8e 100644 Binary files a/target/discordaction-1.0.0.jar and b/target/discordaction-1.0.0.jar differ