fix non null
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s

This commit is contained in:
Lee 2024-07-04 01:11:26 +01:00
parent 6698b7c656
commit bd9f4ef971

@ -86,6 +86,9 @@ public class DiscordMessageService extends ListenerAdapter {
BatGuild guild = guildService.getGuild(event.getGuild().getId());
BatUser user = userService.getUser(event.getAuthor().getId());
if (guild == null || user == null) {
return;
}
for (EventListener listener : EventService.LISTENERS) {
listener.onGuildMessageEdit(guild, user, oldMessage, newMessage, event);
}