Compare commits
No commits in common. "f7924261de2ce2fb9bec4d11c78378d7c11a0503" and "9145d7826e32271d90388be3cfc01e132ef7f69f" have entirely different histories.
f7924261de
...
9145d7826e
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 got a bit cooler, <@%[1]s> is now in",
|
"<#%[2]s> just go a bit cooler, <@%[1]s> is now in",
|
||||||
"<@%s> is hanging out in <#%s>",
|
"<@%s> is hanging out in <#%s>",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,10 +140,6 @@ 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