Compare commits
2 Commits
9145d7826e
...
f7924261de
Author | SHA1 | Date | |
---|---|---|---|
f7924261de | |||
236d5450ba |
6
main.go
6
main.go
@ -34,7 +34,7 @@ var joinMessages = []string{
|
|||||||
"<@%s> has joined <#%s>",
|
"<@%s> has joined <#%s>",
|
||||||
"<@%s> has joined <#%s>; Join in for some nerd talk",
|
"<@%s> has joined <#%s>; Join in for some nerd talk",
|
||||||
"<#%[2]s> is the place to be! <@%[1]s> just joined",
|
"<#%[2]s> is the place to be! <@%[1]s> just joined",
|
||||||
"<#%[2]s> just go a bit cooler, <@%[1]s> is now in",
|
"<#%[2]s> just got a bit cooler, <@%[1]s> is now in",
|
||||||
"<@%s> is hanging out in <#%s>",
|
"<@%s> is hanging out in <#%s>",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user