You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
959 B
18 lines
959 B
import { TextChannel, Message, MessageEmbed, Client } from 'discord.js';
|
|
import { Pagination } from './pagination';
|
|
export declare class LivePagination extends Pagination {
|
|
knownMax: number;
|
|
private _onScrollAttempt;
|
|
constructor(channel: TextChannel, pages: MessageEmbed[], originalMessage: Message, client: Client, loopPages?: boolean, message?: Message);
|
|
setOnScrollAttemptHandler(func: (pagination: LivePagination, pos: number, exists: boolean, inBounds: boolean) => void): this;
|
|
start(options?: {
|
|
endTime?: number;
|
|
time?: number;
|
|
startPage?: number;
|
|
user?: 'any' | string;
|
|
}): Promise<LivePagination>;
|
|
setControllers(endTime: number, user: 'any' | string): Promise<LivePagination>;
|
|
setPage(page: number): Promise<LivePagination>;
|
|
private static throwNoScrollAttempt;
|
|
set onScrollAttempt(func: (pagination: LivePagination, pos: number, exists: boolean, inBounds: boolean) => void);
|
|
}
|
|
|