Closed aidanngill closed 3 years ago
Things to consider when getting a connection closed/could not connect error: • What transport are you using? If it's 'websocket', change that to 'ipc' • Is the ID you are trying to login with your user ID? If so, get one from the developer portal instead • Are you using the Discord app? It won't be able to connect to the web version • Is your code running on the same machine as the Discord app? • Are you trying to run it from WSL? If so, it won't be able to connect either • Have you installed Discord from the snap store? If so, install it from your distro's package repository or directly from the Discord website
it is login({ clientId: xyz })
, not login(xyz)
.
Testing out basic RPC and getting the error "connection closed". Tried switching transport to "websocket" but the same result happens. With and without scopes set it happens.
Running normal, stable Discord first by itself without administrator privileges.
Same issue happens even when running the basic example in the
/example/
directory.