πŸŽ™οΈRecorder

Represents a recorder instance

Methods

start()

Starts the recording

Parameter
Description

options

Objectarrow-up-right The recorder options object

options.id

Stringarrow-up-right The record id, used to download and delete it

options.bitrate

Numberarrow-up-right (optional) The mp3 file bitrate value (default is 64000)

options.selfAudio

Booleanarrow-up-right (optional) Whether to record the bot's audio or not (default is false)

options.users

Arrayarrow-up-right<Stringarrow-up-right> (optional) An array of user ids to record audio, if not passed, all users will be recorded

options.channels

Numberarrow-up-right (optional) The number of channels to record (mono or stereo) (default is 2)

options.encodeToMp3

Booleanarrow-up-right (optional) Whether to encode the output to mp3 or not, if not, the output will be in .pcm (default is true)

resume()

Resumes the recording, with the same options provided in start

stop()

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

Last updated