Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrManualStop = errors.New("stop")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewVoiceClient ¶
func (*Client) Connection ¶
func (c *Client) Connection() *discordgo.VoiceConnection
func (*Client) Disconnect ¶
func (*Client) IsConnected ¶
type Player ¶
type Player struct { Options *dca.EncodeOptions `json:"encodingOptions"` // contains filtered or unexported fields }
func NewPlayer ¶
func NewPlayer(files filesCache, options *dca.EncodeOptions) *Player
func (*Player) Process ¶
func (p *Player) Process(requests <-chan *SongRequest) <-chan error
func (*Player) Stats ¶
func (p *Player) Stats() pkg.SessionStats
type SongRequest ¶
type SongRequest struct { Voice *discordgo.VoiceConnection URI string }
Click to show internal directories.
Click to hide internal directories.