Skip to content

Conversation

@sdanialraza
Copy link
Member

Please describe the changes this PR makes and why it should be merged:
Resolves #11227

@vercel
Copy link

vercel bot commented Oct 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
discord-js Ignored Ignored Preview Oct 31, 2025 8:25pm
discord-js-guide Ignored Ignored Preview Oct 31, 2025 8:25pm

Copy link
Member

@Jiralite Jiralite left a 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 } = {}) {

@github-project-automation github-project-automation bot moved this from Todo to Review in Progress in discord.js Oct 31, 2025
@sdanialraza sdanialraza requested a review from Jiralite October 31, 2025 17:54
Copy link
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

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

Missed instance:

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(),
}),
});

@github-project-automation github-project-automation bot moved this from Review in Progress to Review Approved in discord.js Oct 31, 2025
@kodiakhq kodiakhq bot merged commit f26a5ed into main Oct 31, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from Review Approved to Done in discord.js Oct 31, 2025
@kodiakhq kodiakhq bot deleted the fix/only-pass-relevant-options-fetching branch October 31, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

MessageManager._fetchMany passes options to the Discord API without considering if they are internal to discord.js

5 participants