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

fix(UserFlags): hardcode the value of Quarantined #624

Merged
merged 2 commits into from Oct 29, 2022

Conversation

almeidx
Copy link
Member

@almeidx almeidx commented Oct 27, 2022

Please describe the changes this PR makes and why it should be merged:
The tsc is not able to compute the value of Math.pow(2, 44) at compile-time, leaving the Quarantined enum member without an initializer in the .d.ts file, which prevents thing such as:
image

If applicable, please reference Discord API Docs PRs or commits that influenced this PR:

@vercel
Copy link

vercel bot commented Oct 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
discord-api-types ✅ Ready (Inspect) Visit Preview Oct 27, 2022 at 8:53PM (UTC)

deno/payloads/v10/user.ts Outdated Show resolved Hide resolved
@vladfrangu vladfrangu merged commit 5091f6e into discordjs:main Oct 29, 2022
@almeidx almeidx deleted the userflags-fix branch October 29, 2022 13:40
@advaith1
Copy link
Contributor

advaith1 commented Nov 1, 2022

Is the ~ at the end of the comment line intentional?

@almeidx almeidx mentioned this pull request Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants