-
-
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(MessageEditOptions): Omit poll
#10509
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
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.
LGTM but just double checking, there isn't any runtime behavior here that's also incorrect, right?
We pass any payload data you pass into |
I'm fine with that. |
poll
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.
What about the JSDoc? The website for parsing it is still around:
https://old.discordjs.dev/#/docs/discord.js/main/typedef/MessageEditOptions
Currently the JSDoc definition for MessageEditOptions inherits from BaseMessageOptions which is where the |
Base message options is supposed to be exactly what it is called: the base message options. If It's not ideal, but there's no other way around it I see because there is no way to omit in JSDoc—only extend. |
Gotcha, sounds good. I'll remove it and instead add |
We could also create another typedef like |
4ff940f
to
210a5c1
Compare
fix: creating poll from message edit Co-authored-by: Jiralite <[email protected]>
Please describe the changes this PR makes and why it should be merged:
Fixes #10508
Status and versioning classification: