From 0bb9092430cca6bd7f9f72e726cce235b57f6e88 Mon Sep 17 00:00:00 2001 From: Luther Wen Xu Date: Fri, 18 Oct 2019 12:03:33 +0800 Subject: [PATCH] go: discord: Better state caching --- GoBot/discord/discord.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GoBot/discord/discord.go b/GoBot/discord/discord.go index 93ad3a0..1451931 100644 --- a/GoBot/discord/discord.go +++ b/GoBot/discord/discord.go @@ -20,7 +20,8 @@ func StartBot(token string, kill chan bool) { dg.AddHandler(ProcessVoiceStateUpdate) dg.AddHandler(modules.CheckForReact) dg.AddHandler(modules.CheckForVote) - dg.StateEnabled = true + dg.State.TrackMembers = true + dg.State.TrackVoice = true if err := dg.Open(); err != nil { panic(err)