$ npx wrangler r2 bucket list -J eu
wrangler types the caches language server read is from lib.dom.d.ts, not the generated file. How do I fix this?ctx.waitUntil.fetches (a callback response and a followup message from Discord's Bot API, for context). fetches just fine, but when its running on the cloud, Discord only receives the first request.async fetch(request, env, ctx){
ctx.waitUntil(
// Wrapping it in a promise worked for someone else
new Promise(async function (resolve) {
await runCommand()
return resolve(undefined)
}))
return new Response("Hello World!")
}
async function runCommand(){
await sendCallback() // Discord only recieves this one
// do command stuff
await sendFollowup()
}
async function sendCallback(){ await fetch() }
async function sendFollowup(){ await fetch() }