Compare commits

..

No commits in common. "master" and "v1.0.7" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
<groupId>net.hypr</groupId>
<artifactId>doki</artifactId>
<version>1.0.8</version>
<version>1.0.7</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>

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.sendMessage(member.getAsMention()).addEmbeds(warnEmbed.build()).queue();
warningChannel.sendMessageEmbeds(warnEmbed.build()).queue();
} catch (NullPointerException ex) {
log.warn("Failed to send message to warning log channel");
}