forked from Fascinated/Bat
fix non null
This commit is contained in:
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user