abstract class Worker::DiscordClient::VoiceClient
- Worker::DiscordClient::VoiceClient
- Reference
- Object
Overview
Discord voice client facade
Direct Known Subclasses
Defined in:
worker/discord_client/voice_client.crInstance Method Summary
-
#current_frame : UInt64
Returns current frame (originally 'frame' is 20 ms of playback)
-
#on_close(&) : Nil
Setup WS close event listener
-
#play(audio : AudioPlayer::Audio, skip_frames : UInt64 = 0_u64) : Nil
Play single track
-
#stop : Nil
Stop playback
-
#voice_server_update(endpoint : String, token : String, session_id : String) : Nil
VSU event handler
Instance Method Detail
abstract
def current_frame : UInt64
#
Returns current frame (originally 'frame' is 20 ms of playback)
Play single track
abstract
def voice_server_update(endpoint : String, token : String, session_id : String) : Nil
#
VSU event handler