From e1e20260d3746dd53e4050c68e1deb4c4a576417 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Fri, 8 Jan 2016 10:46:27 -0600 Subject: [PATCH] Fixed operation in Event struct so it actually works. --- structs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/structs.go b/structs.go index 4ca28d9..e89c27a 100644 --- a/structs.go +++ b/structs.go @@ -78,6 +78,7 @@ type Session struct { // Everything below here is used for Voice testing. // This stuff is almost guarenteed to change a lot // and is even a bit hackish right now. + Voice *voice VwsConn *websocket.Conn // new for voice VSessionID string VToken string @@ -269,7 +270,7 @@ type Settings struct { type Event struct { Type string `json:"t"` State int `json:"s"` - Operation int `json:"o"` + Operation int `json:"op"` Direction int `json:"dir"` RawData json.RawMessage `json:"d"` }