Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Broken Typings #80

Open
Mattzi opened this issue Nov 9, 2021 · 3 comments
Open

Broken Typings #80

Mattzi opened this issue Nov 9, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@Mattzi
Copy link

Mattzi commented Nov 9, 2021

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

@Mattzi Mattzi added bug Something isn't working need repro labels Nov 9, 2021
@megatank58
Copy link

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

@Mattzi
Copy link
Author

Mattzi commented Nov 10, 2021

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

@iCrawl
Copy link
Member

iCrawl commented Nov 10, 2021

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.

@iCrawl iCrawl removed the need repro label Nov 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants