-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix: only pass relevant options to API when fetching #11228
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Jiralite
left a comment
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.
Do something like this instead:
async _fetchMany({ cache, ...apiOptions } = {}) {
Jiralite
left a comment
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.
Missed instance:
discord.js/packages/discord.js/src/managers/MessageManager.js
Lines 165 to 171 in d06d8c0
| async fetchPins(options = {}) { | |
| const data = await this.client.rest.get(Routes.channelMessagesPins(this.channel.id), { | |
| query: makeURLSearchParams({ | |
| ...options, | |
| before: options.before && new Date(options.before).toISOString(), | |
| }), | |
| }); |
Please describe the changes this PR makes and why it should be merged:
Resolves #11227