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
Ever since Deno 1.28 has been released, npm compatibility is stable, and you can use npm packages with a npm specifier.
However, when I tried to run a basic discord app in Deno, client.login does not work, and no error is thrown.
I thought it might be a problem with the Deno dotenv package, but it doesn't work even when I hard-coded the token directly in a string for testing purposes. I've also tried running this in a sandboxed environment, however it still does not work.
I've tried running this program with node, and it works perfectly fine.
Deno version: 1.32.1
Code sample
import"https://deno.land/x/dotenv/load.ts";import{Client,GatewayIntentBits}from"npm:discord.js";constclient=newClient({intents: [GatewayIntentBits.Guilds]});client.on("ready",()=>console.log(`${client.user.tag} is now online`));client.on("messageCreate",async(message)=>console.log(message));client.login(Deno.env.get("BOT_TOKEN"));// This does not run
Package version
14.8.0
Node.js version
N/A
Operating system
Ubuntu 22.04 (WSL)
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered:
Which package is this bug report for?
discord.js
Issue description
Ever since Deno 1.28 has been released, npm compatibility is stable, and you can use npm packages with a npm specifier.
However, when I tried to run a basic discord app in Deno, client.login does not work, and no error is thrown.
I thought it might be a problem with the Deno dotenv package, but it doesn't work even when I hard-coded the token directly in a string for testing purposes. I've also tried running this in a sandboxed environment, however it still does not work.
I've tried running this program with node, and it works perfectly fine.
Deno version: 1.32.1
Code sample
Package version
14.8.0
Node.js version
N/A
Operating system
Ubuntu 22.04 (WSL)
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: