Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing typings for User#toJSON #7858

Closed
Adrastopoulos opened this issue Apr 28, 2022 · 1 comment
Closed

Missing typings for User#toJSON #7858

Adrastopoulos opened this issue Apr 28, 2022 · 1 comment

Comments

@Adrastopoulos
Copy link

Which package is this bug report for?

discord.js

Issue description

Calling .toJSON() on a user object returns a result with an unknown type. I asked around on the discord support server and did not find any conclusive reason as to why this is.

Here is an example of a jsonified user:
Code_jWd2lbJwkY

Can typings be added to this method?

Code sample

No response

Package version

discord.js@14.0.0-dev.1650931749-df64d3e

Node.js version

v16.14.0 | typescript@4.6.3

Operating system

No response

Priority this issue should have

Low (slightly annoying)

Which partials do you have configured?

Not applicable (subpackage bug)

Which gateway intents are you subscribing to?

Not applicable (subpackage bug)

I have tested this issue on a development release

df64d3e

@Jiralite
Copy link
Member

Closing in favour of #9432 which isn't specific to the user object.

@Jiralite Jiralite closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants