fix button interactions

This commit is contained in:
Lee
2024-07-04 15:51:50 +01:00
parent c78033f409
commit 0e781f3d9a
7 changed files with 21 additions and 3 deletions

View File

@ -141,7 +141,7 @@ public class EventService extends ListenerAdapter {
if (event.getUser().isBot()) {
return;
}
BatGuild guild = event.getGuild() != null ? guildService.getGuild(event.getGuild().getId()) : null;
BatGuild guild = event.getGuild() == null ? null : guildService.getGuild(event.getGuild().getId());
BatUser user = userService.getUser(event.getUser().getId(), event.getUser());
for (EventListener listener : LISTENERS) {
@ -154,7 +154,7 @@ public class EventService extends ListenerAdapter {
if (event.getUser().isBot()) {
return;
}
BatGuild guild = event.getGuild() != null ? guildService.getGuild(event.getGuild().getId()) : null;
BatGuild guild = event.getGuild() == null ? null : guildService.getGuild(event.getGuild().getId());
BatUser user = userService.getUser(event.getUser().getId(), event.getUser());
try {
@ -172,7 +172,7 @@ public class EventService extends ListenerAdapter {
if (event.getUser().isBot()) {
return;
}
BatGuild guild = event.getGuild() != null ? guildService.getGuild(event.getGuild().getId()) : null;
BatGuild guild = event.getGuild() == null ? null : guildService.getGuild(event.getGuild().getId());
BatUser user = userService.getUser(event.getUser().getId(), event.getUser());
try {