Ping warned member in warning channel
This commit is contained in:
parent
49c7984bde
commit
d4dceae76a
2 changed files with 2 additions and 2 deletions
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<groupId>net.hypr</groupId>
|
<groupId>net.hypr</groupId>
|
||||||
<artifactId>doki</artifactId>
|
<artifactId>doki</artifactId>
|
||||||
<version>1.0.7</version>
|
<version>1.0.8</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class Warn extends ApplicationCommand {
|
||||||
warnEmbed.setTitle(String.format("%s (%s) was warned", member.getEffectiveName(), member.getId()));
|
warnEmbed.setTitle(String.format("%s (%s) was warned", member.getEffectiveName(), member.getId()));
|
||||||
try {
|
try {
|
||||||
assert warningChannel != null;
|
assert warningChannel != null;
|
||||||
warningChannel.sendMessageEmbeds(warnEmbed.build()).queue();
|
warningChannel.sendMessage(member.getAsMention()).addEmbeds(warnEmbed.build()).queue();
|
||||||
} catch (NullPointerException ex) {
|
} catch (NullPointerException ex) {
|
||||||
log.warn("Failed to send message to warning log channel");
|
log.warn("Failed to send message to warning log channel");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue