Ping warned member in warning channel

This commit is contained in:
floppydiskette 2024-12-23 18:27:52 +00:00
commit d4dceae76a
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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");
}