voicer

package
v0.0.0-...-ec10a6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 GetExistingVoicerForGuild

func GetExistingVoicerForGuild(guildID string) *Voicer

func NewVoicerForUser

func NewVoicerForUser(userID, guildID string) (*Voicer, error)

func (*Voicer) AppendManyToQueue

func (v *Voicer) AppendManyToQueue(requesterID string, playable ...playable.Playable)

func (*Voicer) AppendToQueue

func (v *Voicer) AppendToQueue(requesterID string, playable playable.Playable)

func (*Voicer) CanConnect

func (v *Voicer) CanConnect() bool

func (*Voicer) Connect

func (v *Voicer) Connect() error

func (*Voicer) Disconnect

func (v *Voicer) Disconnect() error

func (*Voicer) GetPosition

func (v *Voicer) GetPosition() (time.Duration, error)

func (*Voicer) IsConnected

func (v *Voicer) IsConnected() bool

func (*Voicer) IsPaused

func (v *Voicer) IsPaused() bool

func (*Voicer) IsPlaying

func (v *Voicer) IsPlaying() bool

func (*Voicer) Lock

func (v *Voicer) Lock()

func (*Voicer) Pause

func (v *Voicer) Pause()

func (*Voicer) Playing

func (v *Voicer) Playing() *queue.QueueEntry

func (*Voicer) Resume

func (v *Voicer) Resume()

func (*Voicer) Skip

func (v *Voicer) Skip()

func (*Voicer) Start

func (v *Voicer) Start() error

func (*Voicer) TogglePause

func (v *Voicer) TogglePause()

func (*Voicer) Unlock

func (v *Voicer) Unlock()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL