🎙️Recorder
Represents a recorder instance
Last updated
Represents a recorder instance
Last updated
Starts the recording
options
The recorder options object
options.id
The record id, used to download and delete it
options.bitrate
(optional) The mp3 file bitrate value (default is 64000)
options.selfAudio
(optional) Whether to record the bot's audio or not (default is false)
options.users
<> (optional) An array of user ids to record audio, if not passed, all users will be recorded
options.channels
(optional) The number of channels to record (mono or stereo) (default is 2)
options.encodeToMp3
(optional) Whether to encode the output to mp3 or not, if not, the output will be in .pcm (default is true)
Resumes the recording, with the same options provided in start
Stops recording audio in the voice channel, now you can wait for Vulkava#recordFinished event and then download/delete the file with Node#getRecord / Node#deleteRecord