You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

makeURLSearchParams

export declare function makeURLSearchParams<T extends object>(options?: Readonly<T>): URLSearchParams_2;
export declare function makeURLSearchParams<T extends object>(options?: Readonly<T>): URLSearchParams_2;
Creates and populates an URLSearchParams instance from an object, stripping out null and undefined values, while also coercing non-strings to strings.
Returns
A populated URLSearchParams instance
NameConstraintsOptionalDefaultDescription
TobjectNoNone
NameTypeOptionalDescription
optionsReadonly<T>YesThe options to use