We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
discord.js
The typing of the toJSON function for PermissionOverwrites instances is typed incorrectly.
toJSON
PermissionOverwrites
As far as I can see according to the relevant code it should just be typed to return a JSON object.
... JSON.stringify(overwrites.toJSON()) ...
Low (slightly annoying)
Not applicable
No response
The text was updated successfully, but these errors were encountered:
discord.js/packages/discord.js/typings/index.d.ts
Line 2553 in a1a3a95
I would not say this is incorrect. Regardless, this is a duplicate of #9432—make sure to search for existing issues!
Sorry, something went wrong.
No branches or pull requests
Which package is this bug report for?
discord.js
Issue description
The typing of the
toJSON
function forPermissionOverwrites
instances is typed incorrectly.As far as I can see according to the relevant code it should just be typed to return a JSON object.
Code sample
Versions
Issue priority
Low (slightly annoying)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: