Fixed notifications when actions are taken within the same channel..
This commit is contained in:
parent
236d5450ba
commit
f7924261de
4
main.go
4
main.go
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user