Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlaybackState ¶
type PlaybackState int
const ( IDLE PlaybackState = iota PLAY PAUSE UNPAUSE SKIP SIGNAL // used to signal the end of a stream session )
type Queue ¶
type Queue struct { IsPlaying bool Mutex sync.RWMutex PlaybackState chan PlaybackState VoiceConnection *discordgo.VoiceConnection Songs []Song }
type Song ¶
type Song struct { Title string Url string ArtworkUrl string Duration string RequestedBy string Position int StreamData *StreamData }
func (*Song) BuildMessageEmbed ¶
func (song *Song) BuildMessageEmbed(queued bool) *discordgo.MessageEmbed
type Stream ¶
type Stream struct { Song *Song VoiceConnection *discordgo.VoiceConnection }
func (*Stream) Stream ¶
func (stream *Stream) Stream(streamSessionChan chan StreamSession)
type StreamData ¶
type StreamSession ¶
type StreamSession struct { Error error State PlaybackState }
Click to show internal directories.
Click to hide internal directories.