Fixed operation in Event struct so it actually works.
This commit is contained in:
parent
831fb29915
commit
e1e20260d3
1 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ type Session struct {
|
||||||
// Everything below here is used for Voice testing.
|
// Everything below here is used for Voice testing.
|
||||||
// This stuff is almost guarenteed to change a lot
|
// This stuff is almost guarenteed to change a lot
|
||||||
// and is even a bit hackish right now.
|
// and is even a bit hackish right now.
|
||||||
|
Voice *voice
|
||||||
VwsConn *websocket.Conn // new for voice
|
VwsConn *websocket.Conn // new for voice
|
||||||
VSessionID string
|
VSessionID string
|
||||||
VToken string
|
VToken string
|
||||||
|
@ -269,7 +270,7 @@ type Settings struct {
|
||||||
type Event struct {
|
type Event struct {
|
||||||
Type string `json:"t"`
|
Type string `json:"t"`
|
||||||
State int `json:"s"`
|
State int `json:"s"`
|
||||||
Operation int `json:"o"`
|
Operation int `json:"op"`
|
||||||
Direction int `json:"dir"`
|
Direction int `json:"dir"`
|
||||||
RawData json.RawMessage `json:"d"`
|
RawData json.RawMessage `json:"d"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue