fix non null

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

View File

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