MessageManager.fetch with cache: false includes cache as a query string param
Not necessarily a big deal, but something I found funny is using (channel).messages.fetch with { cache: false } and some limit includes cache=false as a query param unnecessarily. Observed by logging requests from a bot using @discordjs/proxy.

7 Replies
code is nothing special
Is it only when any parameter is specified?
sure, sorry I forgot about this thread and didn't realize you had responded
:issue_open: #11227 in discordjs/discord.js by NickantX opened <t:1761926854:R>
MessageManager._fetchMany passes options to the Discord API without considering if they are internal to discord.js
:pr_merge: #11228 in discordjs/discord.js by sdanialraza merged <t:1761943731:R>
fix: only pass relevant options to API when fetching
Seems to be resolved now
The thread owner has marked this issue as solved.