I am trying to create a discord bot and when i try to run “node .” in cmd after creating the code for the bot in visual studio code, I get an error message about the Client missing intents. Here is the error message. My code is as follows: (the ‘x’ are the bots clientID) Answer It’s a new issue
Tag: windows
JavaScript is displaying an incorrect mathematical answer
I wrote this small script that would calculate a students GPA. I decided to test it midway and it appears as if the code messes up. For example if I add 2 and 2 and 12 instead of displaying 2 it displays 1.75 which is weird. Answer You forget to add the third values so you get wrong results. If
How to get the current foreground application in electron(Javascript)
How can I detect if, for example, a browser is currently open? I need this in my electron-application. ty 🙂 I’ve found nothing like this online. I’ve only found how I can check which window is open from the windows I have in my own application, but I need to know, what else is opened. It should be something like
Error: spawn npm ENOENT
I have an JS app. It works good on linux but in windows 10 I am getting an error. and the code which is incorrect is this I found the reason of this error in github I guess the problem is spawn nodejs spawn Doc which have didn’t work correctly in windows. But I don’t know how to modify this
JavaScript file not updating no matter what I do
I have an external JavaScript file and whether in FireFox or Chrome, whether all browsing data is cleared, it will NOT update no matter what. I believe something happened when I made a backup of my file, which I simply added “_thedate” to the end of the name. Then Save As back to the original name. Now I cannot seem