#Using discord.js in Deno?
1 messages · Page 1 of 1 (latest)
If I shut off my internet, nothing happens so it's on Deno's side I assume.
@swift breach Maybe you can help? I'll make an issue, but for now might as well ask.
This is my logs:
Debug: Preparing to connect to the gateway...
Debug: [WS => Manager] Manager was destroyed. Called by:
Error
at WebSocketManager.destroy (file:///C:/Users/erisf/llm-bot/llm-bot/node_modules/.deno/[email protected]/node_modules/discord.js/src/client/websocket/WebSocketManager.js:326:54)
at Client.destroy (file:///C:/Users/erisf/llm-bot/llm-bot/node_modules/.deno/[email protected]/node_modules/discord.js/src/client/Client.js:251:13)
at Client.login (file:///C:/Users/erisf/llm-bot/llm-bot/node_modules/.deno/[email protected]/node_modules/discord.js/src/client/Client.js:229:12)
at eventLoopTick (ext:core/01_core.js:197:13)
at async file:///C:/Users/erisf/llm-bot/llm-bot/basic_test.mjs:19:1
My code:
import { Client, Events } from "npm:discord.js";
import { config } from "dotenv";
// Begin variable definitions
config();
const client = new Client({
intents: []
});
client.on(Events.ClientReady, () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on(Events.Debug, (message) => console.log("Debug:", message)); // Listen for debug messages
await client.login("You_Cannot_Have_My_Token"); // Yes, I pass in a valid token.
I really haven't checked myself and I got some other high priority work that I need to look into. I'm gonna defer to @pastel spindle to handle this
It's happening again!
Would you be open to give https://deno.land/x/[email protected] a try to see if the issue is consistent? And we might be able to narrow it down.
A bit late for that- it seemed to be my-PC only.
I've moved it to an external server and it's fine now.
I use Discordeno. Never had a problem
This is Discord.js on Deno
which they support now
note: npm:discord.js doesn't work on windows but it works on wsl ubuntu
any status update?
havent had the chance yet to investigate. I'll make myself a slot for the coming week to look into this
