Implement Next and Previous

This commit is contained in:
aditya-K2
2023-04-26 04:01:43 +05:30
parent 78b7d13756
commit 1fbb0fd897
4 changed files with 26 additions and 0 deletions

View File

@@ -61,3 +61,11 @@ func UriToID(uri spotify.URI) (spotify.ID, error) {
}
return spotify.ID(a[2]), nil
}
func Next() error {
return Client.Next(ctx())
}
func Previous() error {
return Client.Previous(ctx())
}