You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but as of version 2.3.0, artist.header.title is possibly undefined. thumbnail and description are only present in MusicVisualHeader and MusicInmersiveHeader. but artist.header can also be MusicHeader which doesn't have them.
How can I get the channels name without having to do optional chaining? (I feel like artis.header?.title.text could break)
How can I get the avatar and (if present) description?
Other details
I saw this issue but I'm pretty sure this information could be obtained without an additional call.
Checklist
I am running the latest version.
I checked the documentation and found no answer.
I have searched the existing issues and made sure this is not a duplicate.
I have provided sufficient information.
The text was updated successfully, but these errors were encountered:
MusicHeader is used in other pages where it doesn't need a title, but I doubt that will ever be the case for artist pages, so I wouldn't worry about that. And as for the description, profile pictures and banners you'll have to manually check the header type. If it helps, YouTube Music seems to favor MusicImmersiveHeader.
Question
Is there any way to get a channel's Name and profile picture? my old code looked like this
but as of version 2.3.0,
artist.header.title
is possibly undefined.thumbnail
anddescription
are only present inMusicVisualHeader
andMusicInmersiveHeader
. butartist.header
can also beMusicHeader
which doesn't have them.artis.header?.title.text
could break)Other details
I saw this issue but I'm pretty sure this information could be obtained without an additional call.
Checklist
The text was updated successfully, but these errors were encountered: