Closed eanker closed 6 years ago
This is intentional, as it helps to distinguish cases where the user is just your username (a string) and where it is the “Spotify ID” which is something different.
Further, a change like this would break the public API so unless there’s very good reason to do so we should try to avoid it.
Ah, thanks for the reply, didn't think of that.
How would one then use one of those methods, to for example unfollow it's own playlist.
As when I do client.getCurrentUser().ID
I get a string, that can not be put in the method as ownerID.
Also when having a playlist called playlist client.UnfollowPlaylist(playlist.Owner.ID, playlist.ID)
gives an error that the owner is an string opposed to a ID.
Or did I change too much and should I only change the type in UnfollowPlaylist
?
You can always do
spotify.ID(playlist.Owner.ID)
This change was not in line with the spotify API itself, and therefor is closed.
The ownerID is of type string, except for those three lines.
This caused errors when doing
user.ID
as it resulted in expected type ID got type string.