diff --git a/pom.xml b/pom.xml index 3db48dc..1e3f9d3 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.hypr doki - 1.0.7 + 1.0.8 17 diff --git a/src/main/java/net/hypr/doki/commands/moderation/Warn.java b/src/main/java/net/hypr/doki/commands/moderation/Warn.java index d6b7f87..1afa6b9 100644 --- a/src/main/java/net/hypr/doki/commands/moderation/Warn.java +++ b/src/main/java/net/hypr/doki/commands/moderation/Warn.java @@ -47,7 +47,7 @@ public class Warn extends ApplicationCommand { warnEmbed.setTitle(String.format("%s (%s) was warned", member.getEffectiveName(), member.getId())); try { assert warningChannel != null; - warningChannel.sendMessageEmbeds(warnEmbed.build()).queue(); + warningChannel.sendMessage(member.getAsMention()).addEmbeds(warnEmbed.build()).queue(); } catch (NullPointerException ex) { log.warn("Failed to send message to warning log channel"); }