Replies: 1 comment
-
I would not make a function async if it isn't needed. (async()=> {
voiceRecorder.startRecording(...)
})();
// or
async function startRecording(connection: VoiceConnection): Promise<void> {
voiceRecorder.startRecording(connection);
} I'm still not quite sure about your use-case. If the create connection function is async, you can basically |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using DisTube for my project and the function to create a connection is asynchronous, so I'm forced to set a timeout because the connection is not done instantly. It would be cool if the
startRecording()
function was asynchronous 😄Beta Was this translation helpful? Give feedback.
All reactions