UNPKG

dexare

Version:

Modular and extendable Discord bot framework

17 lines (16 loc) 687 B
import DexareClient from '../client'; import DataManager, { ThrottleObject } from '../dataManager'; /** Data manager in Dexare using memory. */ export default class MemoryDataManager extends DataManager { static SEPARATOR: string; /** Current throttle objects for commands, mapped by scope and ID. */ private _throttles; constructor(client: DexareClient<any>); getThrottle(scope: string, id: string): Promise<ThrottleObject | undefined>; setThrottle(scope: string, id: string, object: ThrottleObject): Promise<void>; removeThrottle(scope: string, id: string): Promise<void>; /** * Flushes any expired throttles. */ flushThrottles(): void; }