add null check
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
This commit is contained in:
parent
5959b814a7
commit
938005f6d9
@ -73,6 +73,9 @@ public class ChannelListener implements EventListener {
|
||||
lastVoiceChannel.put(user, voiceChannel);
|
||||
}
|
||||
VoiceChannel voiceChannel = lastVoiceChannel.get(user);
|
||||
if (voiceChannel == null) {
|
||||
return;
|
||||
}
|
||||
boolean joined = voiceChannel.getMembers().contains(event.getMember());
|
||||
if (!joined) {
|
||||
lastVoiceChannel.remove(user);
|
||||
|
Loading…
Reference in New Issue
Block a user