diff --git a/server/bothandlers/sounds.go b/server/bothandlers/sounds.go index fb57bd8..17bee25 100644 --- a/server/bothandlers/sounds.go +++ b/server/bothandlers/sounds.go @@ -57,7 +57,7 @@ func VoiceStateHandler(s *discordgo.Session, v *discordgo.VoiceStateUpdate) { voiceConnection := conn.getVoiceConnection() - if voiceConnection.Ready && voiceConnection.ChannelID == v.VoiceState.ChannelID { + if voiceConnection != nil && voiceConnection.Ready && voiceConnection.ChannelID == v.VoiceState.ChannelID { user, err := model.UserGet(db.GetConn(), v.VoiceState.UserID)