Skip to content

Commit

Permalink
fixed npe when kitty leaves a guild & plays audio
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Feb 8, 2021
1 parent 9b95ea5 commit 9e0af0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void onGuildMessageReactionAdd(@NotNull GuildMessageReactionAddEvent even

@Override
public void onGuildLeave(@NotNull GuildLeaveEvent event){
destroy(event.getGuild().getIdLong(), -1L);
this.musicPlayers.remove(event.getGuild().getIdLong());
}

@Override
Expand Down

0 comments on commit 9e0af0c

Please sign in to comment.