Comments (3)
Do you have a code example or something to use as a ref?
from deno.
Do you have a code example or something to use as a ref?
My issue is in the issue and not hard to understand how to recreate it. But here you go
Import npm:discord.js
Create a bot on https://discord.com/developers
Create an instance of the Client class imported from discord.js
add at least one intent. For example as argument {intents:["Guilds"]}
And run the login
function on the client instance using the bot token generated at https://discord.com/developers as the argument
import { Client } from "npm:discord.js";
const client = new Client({
intents: [
"Guilds"
]
});
client.login("TOKEN")
from deno.
Unsure if related.
I also get a lot of instability with puppeteer.connect()
Code is essentially
import puppeteer from "puppeteer-core" // npm:puppeteer-core
const BROWSER_WS =
"wss://[email protected]:9222"
const browser = await puppeteer.connect({
browserWSEndpoint: BROWSER_WS,
})
This usually fails with 'tcp connect times out'
It mostly hangs on .connect()
, sometimes on following calls, and rarely it works. Works fine on node-js.
from deno.
Related Issues (20)
- Request: `DOMParser` (again)
- Support importing packages from source HOT 1
- quarto install tinytex leads to deno panicking HOT 1
- Bug: `vitest run --coverage` crashes with panic HOT 7
- Missing files specified by the --config flag fail silently HOT 2
- self is not defined in NPM packages imported in a Worker HOT 1
- Bug: `deno --help` shows wrong URL HOT 3
- gpujs doesn't work HOT 2
- add progress bar to `deno clean` HOT 1
- test `jupyter::jupyter_kernel_info` is flaky
- Feat: Support formatting sql files with deno fmt
- `Deno has panicked` via `task` command and `package.json` starting version `1.45.3` HOT 8
- Support pglite HOT 7
- Release GitHub Copilot extension for Deno HOT 5
- Feat: shareable presets for formatting and linting
- feat: LSP should suggest `@ts-types` for npm packages with missing types HOT 1
- Implement `PerformanceObserver.observe` from `node:perf_hooks` HOT 1
- Support semver ranges in `deno upgrade --version=`
- DENO_AUTH_TOKEN does not work, when it contains an extra \n at the end HOT 1
- Enable `log` feature of `tracing` crate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno.