Objects¶
- class pomice.objects.Playlist(*, playlist_info: dict, tracks: list, playlist_type: PlaylistType, thumbnail: str | None = None, uri: str | None = None)[source]¶
Bases:
objectThe base playlist object. Returns critical playlist information needed for parsing by Lavalink. You can also pass in commands.Context to get a discord.py Context object in your tracks.
- name: str¶
- playlist_info: dict¶
- playlist_type: PlaylistType¶
- property thumbnail: str | None¶
Returns either an Apple Music/Spotify album/playlist thumbnail, or None if its neither of those.
- track_count: int¶
- property uri: str | None¶
Returns either an Apple Music/Spotify URL/URI, or None if its neither of those.
- class pomice.objects.Track(*, track_id: str, info: dict, ctx: Context | None = None, track_type: TrackType, search_type: SearchType = SearchType.ytsearch, filters: List[Filter] | None = None, timestamp: float | None = None, requester: Member | User | ClientUser | None = None)[source]¶
Bases:
objectThe base track object. Returns critical track information needed for parsing by Lavalink. You can also pass in commands.Context to get a discord.py Context object in your track.
- author: str¶
- ctx: Context | None¶
- identifier: str¶
- info: dict¶
- is_seekable: bool¶
- is_stream: bool¶
- isrc: str | None¶
- length: int¶
- position: int¶
- requester: Member | User | ClientUser | None¶
- thumbnail: str | None¶
- timestamp: float | None¶
- title: str¶
- track_id: str¶
- uri: str¶