From 8f5caaf834d26f7f4af2b6ad8b291a0fc207753a Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 4 Jan 2021 20:53:03 -0500 Subject: [PATCH] actually add user to set --- handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers.go b/handlers.go index e304daf..6118458 100644 --- a/handlers.go +++ b/handlers.go @@ -154,6 +154,7 @@ func voiceUpdate(s *discordgo.Session, event *discordgo.VoiceStateUpdate) { Bridge.CurrentChannel.Send(fmt.Sprintf("%v has joined Discord channel\n", u.Username), false) } Bridge.DiscordUserCount = Bridge.DiscordUserCount + 1 + Bridge.DiscordUsers[u.Username] = true } if event.ChannelID == "" { //leave event, trigger recount of active users