@.bartlomieju 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/discord.js@14.11.0/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/discord.js@14.11.0/node_modules/discord.js/src/client/Client.js:251:13)
at Client.login (file:///C:/Users/erisf/llm-bot/llm-bot/node_modules/.deno/discord.js@14.11.0/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
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/discord.js@14.11.0/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/discord.js@14.11.0/node_modules/discord.js/src/client/Client.js:251:13)
at Client.login (file:///C:/Users/erisf/llm-bot/llm-bot/node_modules/.deno/discord.js@14.11.0/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.
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.