PNPerson
PNPerson
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
Found this is the issue. Odd? Yes.
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
which they support now
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
This is Discord.js on Deno
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
I've moved it to an external server and it's fine now.
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
A bit late for that- it seemed to be my-PC only.
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
It's happening again!
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
What The Fuck Part 1
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
UPDATE: So I made a new VSCode project and it works.
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
@.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.
18 replies
DDeno
Created by PNPerson on 6/17/2023 in #help
Using discord.js in Deno?
If I shut off my internet, nothing happens so it's on Deno's side I assume.
18 replies