Documentation
¶
Index ¶
Constants ¶
View Source
const SearchTypeAppleMusic lavalink.SearchType = "amsearch"
View Source
const SearchTypeSpotify lavalink.SearchType = "spsearch"
Variables ¶
This section is empty.
Functions ¶
func DecodeISRCArtworkURL ¶
Types ¶
type AppleMusicAudioTrack ¶
type AppleMusicAudioTrack struct {
lavalink.AudioTrack
ISRC *string `json:"isrc"`
ArtworkURL *string `json:"artwork_url"`
}
func (*AppleMusicAudioTrack) Clone ¶
func (t *AppleMusicAudioTrack) Clone() lavalink.AudioTrack
func (*AppleMusicAudioTrack) UnmarshalJSON ¶
func (t *AppleMusicAudioTrack) UnmarshalJSON(data []byte) error
type AppleMusicPlugin ¶
type AppleMusicPlugin struct{}
func NewAppleMusicPlugin ¶
func NewAppleMusicPlugin() *AppleMusicPlugin
func (*AppleMusicPlugin) Decode ¶
func (p *AppleMusicPlugin) Decode(info lavalink.AudioTrackInfo, r io.Reader) (lavalink.AudioTrack, error)
func (*AppleMusicPlugin) Encode ¶
func (p *AppleMusicPlugin) Encode(track lavalink.AudioTrack, w io.Writer) error
func (*AppleMusicPlugin) SourceName ¶
func (p *AppleMusicPlugin) SourceName() string
type SpotifyAudioTrack ¶
type SpotifyAudioTrack struct {
lavalink.AudioTrack
ISRC *string `json:"isrc"`
ArtworkURL *string `json:"artwork_url"`
}
func (*SpotifyAudioTrack) Clone ¶
func (t *SpotifyAudioTrack) Clone() lavalink.AudioTrack
func (*SpotifyAudioTrack) UnmarshalJSON ¶
func (t *SpotifyAudioTrack) UnmarshalJSON(data []byte) error
type SpotifyPlugin ¶
type SpotifyPlugin struct{}
func NewSpotifyPlugin ¶
func NewSpotifyPlugin() *SpotifyPlugin
func (*SpotifyPlugin) Decode ¶
func (p *SpotifyPlugin) Decode(info lavalink.AudioTrackInfo, r io.Reader) (lavalink.AudioTrack, error)
func (*SpotifyPlugin) Encode ¶
func (p *SpotifyPlugin) Encode(track lavalink.AudioTrack, w io.Writer) error
func (*SpotifyPlugin) SourceName ¶
func (p *SpotifyPlugin) SourceName() string
Click to show internal directories.
Click to hide internal directories.
