abstract class Worker::DiscordClient::VoiceClient

Overview

Discord voice client facade

Direct Known Subclasses

Defined in:

worker/discord_client/voice_client.cr

Instance Method Summary

Instance Method Detail

abstract def current_frame : UInt64 #

Returns current frame (originally 'frame' is 20 ms of playback)


[View source]
abstract def on_close(&) : Nil #

Setup WS close event listener


[View source]
abstract def play(audio : AudioPlayer::Audio, skip_frames : UInt64 = 0_u64) : Nil #

Play single track


[View source]
abstract def stop : Nil #

Stop playback


[View source]
abstract def voice_server_update(endpoint : String, token : String, session_id : String) : Nil #

VSU event handler


[View source]