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

RestOrArray

export declare type RestOrArray<T> = T[] | [
T[]
];
export declare type RestOrArray<T> = T[] | [
T[]
];
Represents data that may be an array or came from a rest parameter.
Remarks
This type is used throughout builders to ensure both an array and variadic arguments may be used. It is normalized with normalizeArray.