Fixed notifications when actions are taken within the same channel..

This commit is contained in:
Justin Judd 2025-07-08 21:19:50 -07:00
parent 236d5450ba
commit f7924261de

View File

@ -140,6 +140,10 @@ func (s *Server) voiceStatus(ds *discordgo.Session, m *discordgo.VoiceStateUpdat
case len(m.ChannelID) == 0: case len(m.ChannelID) == 0:
state = Leaving state = Leaving
case m.BeforeUpdate != nil: case m.BeforeUpdate != nil:
if m.BeforeUpdate.ChannelID == m.ChannelID {
// Action like muting caused new voice state, but in the same channel.
return
}
state = Switching state = Switching
} }