Fixed notifications when actions are taken within the same channel..
This commit is contained in:
1 parent
236d5450ba
commit
f7924261de
1 file changed
+4
@@ -140,6 +140,10 @@ func (s *Server) voiceStatus(ds *discordgo.Session, m *discordgo.VoiceStateUpdat
|
||||
case len(m.ChannelID) == 0:
|
||||
state = Leaving
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user