go: discord: Better state caching

Luther Wen Xu 2019-10-18 12:03:33 +07:00
parent 7116381000
commit 0bb9092430
Signed by untrusted user: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 2 additions and 1 deletions

@ -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)