From d4dceae76ac99ad4f08037a23f406204f2a4d42d Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Mon, 23 Dec 2024 18:27:52 +0000 Subject: [PATCH] Ping warned member in warning channel --- pom.xml | 2 +- src/main/java/net/hypr/doki/commands/moderation/Warn.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); }