Documentation
¶
Overview ¶
Package dgvoice provides opus encoding and audio file playback for the Discordgo package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlayAudioFile ¶
func PlayAudioFile(ctx context.Context, vc *discordgo.VoiceConnection, path string, stop <-chan struct{}) (err error)
PlayAudioFile will play the given filename to the already connected Discord voice server/channel. voice websocket and udp socket must already be setup before this will work.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.