discordjs / discord.js-modules

Modularisation of discord.js (WIP)
Apache License 2.0
193 stars 30 forks source link

Broken Typings #80

Open Mattzi opened 2 years ago

Mattzi commented 2 years ago

Issue description

Follow this guide https://discordjs.guide/interactions/registering-slash-commands.html#subcommands Build application using typescript

Cannot find name 'URLSearchParams' in RequestManager.d.ts:42

A simple import would fix this and I am unable to build my bot without this being fixed(Priority high because of this)

Code sample

import { REST } from '@discordjs/rest'

discord.js version

0.1.0-canary.0

Node.js version

17.1

Operating system

Windows 10

Priority this issue should have

High (immediate attention needed)

Which partials do you have configured?

No Partials

Which gateway intents are you subscribing to?

GUILD_INTEGRATIONS, DIRECT_MESSAGES

megatank58 commented 2 years ago

Could you try setting the dom option enabled in the lib configuration of tsconfig.json as described here

Mattzi commented 2 years ago

Well that fixed it for me but this cant be the final solution

iCrawl commented 2 years ago

It can't, and surely won't be the final solution.

You can leave this ticket open. Mind you we are still on canary releases, so this can happen.