You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the network connection encounters an error, I receive the following error from discord.js
Uncaught TypeError: Cannot use 'in' operator to search for 'code' in undefined
at WebSocketShard.onError (file:///C:/Users/fabia/AppData/Local/deno/npm/registry.npmjs.org/@discordjs/ws/1.1.1/dist/index.js:1065:16)
at WebSocket.connection.onerror (file:///C:/Users/fabia/AppData/Local/deno/npm/registry.npmjs.org/@discordjs/ws/1.1.1/dist/index.js:683:12)
at WebSocket.wrappedHandler (ext:deno_web/02_event.js:1400:12)
at innerInvokeEventListeners (ext:deno_web/02_event.js:757:7)
at invokeEventListeners (ext:deno_web/02_event.js:804:5)
at dispatch (ext:deno_web/02_event.js:661:9)
at WebSocket.dispatchEvent (ext:deno_web/02_event.js:1041:12)
at WebSocket.[[[eventLoop]]] (ext:deno_websocket/01_websocket.js:494:16)
at eventLoopTick (ext:core/01_core.js:175:7)
However, when I test the same code with Node.js, this error does not occur. According to the discord.js github (Github discord.js Issue), the issue seems to be related to Deno.
Version: Deno 2.0.0
The text was updated successfully, but these errors were encountered:
When the network connection encounters an error, I receive the following error from discord.js
However, when I test the same code with Node.js, this error does not occur. According to the discord.js github (Github discord.js Issue), the issue seems to be related to Deno.
Version: Deno 2.0.0
The text was updated successfully, but these errors were encountered: