From c77f7f3ff8bfeb81584fb22ee34cb0a658cc1ac6 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Wed, 25 Nov 2015 19:28:53 -0600 Subject: [PATCH] Added VoiceReady, DataReady, and UDPReady flags to Session struct --- structs.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/structs.go b/structs.go index cb50cbf..9e8b5ab 100644 --- a/structs.go +++ b/structs.go @@ -23,10 +23,13 @@ import ( // token : The authentication token returned from Discord // Debug : If set to ture debug logging will be displayed. type Session struct { - Token string // Authentication token for this session - Debug bool // Debug for printing JSON request/responses - Cache int // number in X to cache some responses - SessionID string // from websocket READY packet + Token string // Authentication token for this session + Debug bool // Debug for printing JSON request/responses + Cache int // number in X to cache some responses + SessionID string // from websocket READY packet + DataReady bool // Set to true when Data Websocket is ready + VoiceReady bool // Set to true when Voice Websocket is ready + UDPReady bool // Set to true when UDP Connection is ready // Settable Callback functions for Websocket Events OnEvent func(*Session, Event) // should Event be *Event?