diff --git a/model.go b/model.go index 66d722d..98221cb 100644 --- a/model.go +++ b/model.go @@ -76,9 +76,9 @@ type message struct { Track string `json:"track,omitempty"` StartTime string `json:"startTime,omitempty"` EndTime string `json:"endTime,omitempty"` - Pause bool `json:"pause,omitempty"` - Position int `json:"position,omitempty"` - Volume int `json:"volume,omitempty"` + Pause *bool `json:"pause,omitempty"` + Position *int `json:"position,omitempty"` + Volume *int `json:"volume,omitempty"` State *state `json:"state,omitempty"` Type string `json:"type,omitempty"` Reason string `json:"reason,omitempty"` diff --git a/player.go b/player.go index 9200dde..57520cd 100644 --- a/player.go +++ b/player.go @@ -65,7 +65,7 @@ func (player *Player) Pause(pause bool) error { msg := message{ Op: opPause, GuildID: player.guildID, - Pause: pause, + Pause: &pause, } data, err := json.Marshal(msg) if err != nil { @@ -85,7 +85,7 @@ func (player *Player) Seek(position int) error { msg := message{ Op: opSeek, GuildID: player.guildID, - Position: position, + Position: &position, } data, err := json.Marshal(msg) if err != nil { @@ -111,7 +111,7 @@ func (player *Player) Volume(volume int) error { msg := message{ Op: opVolume, GuildID: player.guildID, - Volume: volume, + Volume: &volume, } data, err := json.Marshal(msg) if err != nil {