-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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(BitField): use only enum names in iterating #9357
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@jaw0r3k is attempting to deploy a commit to the discordjs Team on Vercel. A member of the Team first needs to authorize it. |
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
It looks like this needs backporting, would you mind doing it? |
Sure <3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second look, this needs to be applied to other places traversing Flags
too.
This only seems to be serialize
(currently).
> new ActivityFlagsBitField(511).serialize()
{
'1': true,
'2': true,
'4': true,
'8': true,
'16': true,
'32': true,
'64': true,
'128': true,
'256': true,
Instance: true,
Join: true,
Spectate: true,
JoinRequest: true,
Sync: true,
Play: true,
PartyPrivacyFriends: true,
PartyPrivacyVoiceChannel: true,
Embedded: true
}
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://discord-js-git-fork-jaw0r3k-patch-4-discordjs.vercel.app/ |
Please describe the changes this PR makes and why it should be merged:
Resolves: #9350
The change may seem weird, but its working.
As enums are reverse mapped, getting keys will not only give names but values
The shown exception was permissions, but its just an object
Status and versioning classification: