-
-
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
types: remove newMessage partial on messageUpdate event typing #10526
types: remove newMessage partial on messageUpdate event typing #10526
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Since this pr updates the message related event types, I think we can go ahead and also refactor it to omit PartialGroupDMChannel (as it is for it's sister counterparts) using |
You're right, not sure how I missed that, thanks! |
Rebased with master. |
* types: remove newMessage partial on messageUpdate event typing * types: omit partial group DM for newMessage on messageUpdate * types: omit partial group DM for oldMessage on messageUpdate --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Please describe the changes this PR makes and why it should be merged:
According to discord/discord-api-docs#7017 the message update payload is no longer a partial object, but rather the full message object. As such, the ClientEvents#messageUpdate's
newMessage
shouldn't be typed as a partial anymore, which is what this PR modifies.It also applies the
OmitPartialGroupDMChannel
generic to both messages, since this event won't be triggered from group DMs.Closes #10525.
Status and versioning classification: