rashi-discord-bot-lib
Version:
🚀 Powerful Discord bot framework with built-in database, event handling, and utilities
12 lines • 522 B
TypeScript
export declare class MongoCooldownManager {
private collectionName;
private collection;
constructor(collectionName?: string);
connect(): Promise<void>;
private key;
getRemaining(userId: string, command: string): Promise<number>;
set(userId: string, command: string, seconds: number): Promise<void>;
checkAndSet(userId: string, command: string, seconds: number): Promise<number>;
clear(userId: string, command: string): Promise<void>;
}
//# sourceMappingURL=MongoCooldownManager.d.ts.map