Documentation ¶
Index ¶
- type Voicer
- func (v *Voicer) AppendManyToQueue(requesterID string, playable ...playable.Playable)
- func (v *Voicer) AppendToQueue(requesterID string, playable playable.Playable)
- func (v *Voicer) CanConnect() bool
- func (v *Voicer) Connect() error
- func (v *Voicer) Disconnect() error
- func (v *Voicer) GetPosition() (time.Duration, error)
- func (v *Voicer) IsConnected() bool
- func (v *Voicer) IsPaused() bool
- func (v *Voicer) IsPlaying() bool
- func (v *Voicer) Lock()
- func (v *Voicer) Pause()
- func (v *Voicer) Playing() *queue.QueueEntry
- func (v *Voicer) Resume()
- func (v *Voicer) Skip()
- func (v *Voicer) Start() error
- func (v *Voicer) TogglePause()
- func (v *Voicer) Unlock()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Voicer ¶
type Voicer struct { Voice model.VoiceConnection Queue *queue.Queue EncodeSession *dca.EncodeSession UserID, ChannelID, GuildID *string StreamingSession *dca.StreamingSession // contains filtered or unexported fields }
func NewVoicerForUser ¶
func (*Voicer) AppendManyToQueue ¶
func (*Voicer) AppendToQueue ¶
func (*Voicer) CanConnect ¶
func (*Voicer) Disconnect ¶
func (*Voicer) IsConnected ¶
func (*Voicer) Playing ¶
func (v *Voicer) Playing() *queue.QueueEntry
func (*Voicer) TogglePause ¶
func (v *Voicer) TogglePause()
Click to show internal directories.
Click to hide internal directories.