Skip to content

How to record screen+audio+microphone with RecordRTC

I am working on a project where I need the user to be able to record screen, audio and microphone. At the moment I could only make it recognize screen and audio. First I am capturing the screen and the audio from it and saving it to a variable. And then I am capturing that variable to show the a

Unable to get __dirname value

I am using __dirname to get absolute path to GraphQL schema: I have changed module to fit ES6 module standard and __dirname now is undefined. How can I resolve path to schema? Answer There is some issue with esm + __dirname https://nodejs.org/api/esm.html#esm_no_require_exports_module_exports_filename_dirname…

Discord.js: Add role to message sender

i am trying to make a discord.js bot that adds a role to a user when they type: +rolename . This is what I have come up with: When running the code i get the following error: TypeError: Cannot read property ‘add’ of undefined This doesn’t happen when I use this code and type +test @DiscordNa…