Skip to content

Commit

Permalink
add lavalink v4 plugin modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Jan 7, 2023
1 parent 331d69c commit de7e0ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lavalink/playlist.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package lavalink

type Playlist struct {
Info PlaylistInfo `json:"info"`
Tracks []Track `json:"tracks"`
Info PlaylistInfo `json:"info"`
PluginInfo map[string]any `json:"pluginInfo"`
Tracks []Track `json:"tracks"`
}

type PlaylistInfo struct {
Expand Down
5 changes: 3 additions & 2 deletions lavalink/track.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package lavalink

type Track struct {
Encoded string `json:"encoded"`
Info TrackInfo `json:"info"`
Encoded string `json:"encoded"`
Info TrackInfo `json:"info"`
PluginInfo map[string]any `json:"pluginInfo"`
}

type TrackInfo struct {
Expand Down

0 comments on commit de7e0ac

Please sign in to comment.