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(NonDispatchPayload): t & s fields are always null on non-dispatch payloads #259

Merged
merged 3 commits into from
Dec 8, 2021

Conversation

NurMarvin
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
This PR does pretty much does the same thing as #258, except in a more elegant way. #258 would have made the field t and s always nullable, not just on non-dispatch payloads like this PR now does.

Reference Discord API Docs PRs or commits:
https://github.com/discord/discord-api-docs/blob/master/docs/topics/Gateway.md?plain=1#L28-L31

Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not happen in v8? If it does, it should be updated accordingly.

Also, the Deno scripts need to be run, I don't see changes to them in this PR.

@NurMarvin
Copy link
Contributor Author

I just checked and this happens in all available gateway versions (6, 7, 8 and 9), so I will be adding these changes to the v8 and v6 files as well. Running the Deno script wasn't mentioned anywhere, so I wasn't aware that I had to run it but I will be also doing that as well.

@vladfrangu
Copy link
Member

vladfrangu commented Dec 8, 2021

V6 is not getting updates anymore

As for the deno script, if you installed node deps it should've automatically do it

@NurMarvin
Copy link
Contributor Author

As for the deno script, if you installed node deps it should've automatically do it

Ah, my bad. I did install the node deps but made my commit using a GUI client which seems to have bypassed the pre-commit hook, so the deno script was not executed.

@vladfrangu vladfrangu merged commit 315ce35 into discordjs:main Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants