From de7e0ac20d640a82d632068f7038ecfc4f74ca14 Mon Sep 17 00:00:00 2001 From: TopiSenpai Date: Sat, 7 Jan 2023 01:02:29 +0100 Subject: [PATCH] add lavalink v4 plugin modifications --- lavalink/playlist.go | 5 +++-- lavalink/track.go | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lavalink/playlist.go b/lavalink/playlist.go index 46e6a13..017c048 100644 --- a/lavalink/playlist.go +++ b/lavalink/playlist.go @@ -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 { diff --git a/lavalink/track.go b/lavalink/track.go index 1a903b1..d4c2d30 100644 --- a/lavalink/track.go +++ b/lavalink/track.go @@ -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 {