Skip to content

Commit

Permalink
Merge pull request #11 from dankochetov/master
Browse files Browse the repository at this point in the history
Fix pause event serialization, add SourceName to Track Info
  • Loading branch information
lukasl-dev authored Apr 19, 2022
2 parents 794eabc + d6a9e9c commit eeef1e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion driver/websocketdriver/pauser.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func NewPauser(conn *websocket.Conn) pause.Pauser {
type pausePayload struct {
OP op `json:"op,omitempty"`
GuildID string `json:"guildId,omitempty"`
Pause bool
Pause bool `json:"pause"`
}

func (p *pauser) SetPaused(guildID string, paused bool) error {
Expand Down
3 changes: 3 additions & 0 deletions entity/track/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ type Info struct {

// URI is the URL or the local path to the audio source.
URI string `json:"uri,omitempty"`

// SourceName is the name of the audio source.
SourceName string `json:"sourceName,omitempty"`
}

0 comments on commit eeef1e2

Please sign in to comment.