-
-
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
refactor!: consolidate parameters into a single options
object
#10718
refactor!: consolidate parameters into a single options
object
#10718
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
9823d14
to
f948dab
Compare
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 leaving the id
overload (passing the id)? That is a common pattern for managers fetching.
6effd93
to
3dd35b1
Compare
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.
Muy bueno 👌
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.
I believe the breaking change entry needs amending. Would you mind doing that?
Done |
162f21e
to
59b7252
Compare
Co-authored-by: Almeida <[email protected]>
Please describe the changes this PR makes and why it should be merged:
Removes
options
as the second parameter. The first parameter now acceptsid
oroptions
which can also have theid
property. Internal discussion hereBREAKING CHANGE:
ApplicationCommandManager#fetch
andGuildApplicationCommandManager#fetch
no longer accept 2 parameters. Instead, the first parameter acceptsid
oroptions
which can now also have theid
property.Status and versioning classification: