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 // indicates the end of a stream session )
type Queue ¶
type Queue struct { IsPlaying bool Mutex sync.RWMutex PlaybackState chan PlaybackState Voice *Voice 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
BuildMessageEmbed builds an embed message for the song.
type Stream ¶
type Stream struct { Song *Song VoiceChannel *VoiceChannel }
func (*Stream) Stream ¶
func (stream *Stream) Stream(streamSessionChan chan StreamSession)
Stream streams a song on a voice channel.
type StreamData ¶
type StreamSession ¶
type StreamSession struct { Error error State PlaybackState }
type VoiceChannel ¶
type VoiceChannel struct { Bitrate int Connection *discordgo.VoiceConnection }
Click to show internal directories.
Click to hide internal directories.