Documentation ¶
Index ¶
- type SoundcloudTrack
- func (t SoundcloudTrack) Duration() int
- func (t SoundcloudTrack) Embed(duration bool) *discordgo.MessageEmbed
- func (t SoundcloudTrack) GetUser() (string, string)
- func (t SoundcloudTrack) ListenStatus() string
- func (t SoundcloudTrack) MarkdownLink() string
- func (t SoundcloudTrack) StreamURL() (string, error)
- type Track
- type Tracks
- type YoutubeTrack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoundcloudTrack ¶
type SoundcloudTrack struct { Track soundcloud.Track TrackService soundcloud.TrackService User string AvatarURL string }
func (SoundcloudTrack) Duration ¶
func (t SoundcloudTrack) Duration() int
func (SoundcloudTrack) Embed ¶
func (t SoundcloudTrack) Embed(duration bool) *discordgo.MessageEmbed
func (SoundcloudTrack) GetUser ¶
func (t SoundcloudTrack) GetUser() (string, string)
func (SoundcloudTrack) ListenStatus ¶
func (t SoundcloudTrack) ListenStatus() string
func (SoundcloudTrack) MarkdownLink ¶
func (t SoundcloudTrack) MarkdownLink() string
func (SoundcloudTrack) StreamURL ¶
func (t SoundcloudTrack) StreamURL() (string, error)
GetStreamURL will cycle through the known types of SoundCloud streams and return the first successful URL
type YoutubeTrack ¶
type YoutubeTrack struct { }
func (YoutubeTrack) Duration ¶
func (yt YoutubeTrack) Duration() int
func (YoutubeTrack) Embed ¶
func (yt YoutubeTrack) Embed() *discordgo.MessageEmbed
func (YoutubeTrack) ListenStatus ¶
func (yt YoutubeTrack) ListenStatus() string
func (YoutubeTrack) MarkdownLink ¶
func (yt YoutubeTrack) MarkdownLink() string
func (YoutubeTrack) StreamURL ¶
func (yt YoutubeTrack) StreamURL() (string, error)
Click to show internal directories.
Click to hide internal directories.