Explorar o código

Fixed operation in Event struct so it actually works.

Bruce Marriner %!s(int64=9) %!d(string=hai) anos
pai
achega
e1e20260d3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      structs.go

+ 2 - 1
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"`
 }