fix: Fix "Hang status" for new Discord version
All checks were successful
Build artifact / build (push) Successful in 32s
Build artifact / release (push) Successful in 40s

This commit is contained in:
Matte23
2024-07-09 23:19:28 +02:00
parent c20a3fdbc8
commit 30687e2271
4 changed files with 42 additions and 72 deletions

View File

@@ -81,6 +81,7 @@ func handleVoiceActivity(s *discordgo.Session, vs *discordgo.VoiceStateUpdate) {
createNewChannel(s, vs)
} else if _, ok := createdChannels[vs.GuildID][vs.ChannelID]; ok {
createdChannels[vs.GuildID][vs.ChannelID] = append(createdChannels[vs.GuildID][vs.ChannelID], vs.UserID)
updateNameOnJoin(s, vs)
} else {
removeUserFromChannels(s, vs)
}