Skip to content

canPageInCache

The cache only pages by `limit`, `before` and `after`. Anything else, an ambiguous cursor pair, or a limit Discord would reject is left for Discord to answer. Checked before reading ids so a rejected query costs no adapter call.

Signature

export declare function canPageInCache(query: ListQuery, maxLimit: number): boolean;

Private types

ListQueryTypeAlias
type ListQuery = {    limit?: number;    before?: string;    after?: string;};

Members

This export does not declare public properties or methods in the generated declaration file.