@tryforge/forgescript
Version:
ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.
16 lines • 496 B
TypeScript
import { ForgeClient } from "../core";
export interface ICooldown {
duration: number;
startedAt: number;
}
export declare class CooldownManager {
private readonly client;
private readonly cooldowns;
constructor(client: ForgeClient);
add(id: string, duration: number): void;
delete(id: string): void;
clear(): void;
getTimeLeft(id: string): number;
identifier<T extends [...any[]]>(...values: [...T]): string;
}
//# sourceMappingURL=CooldownManager.d.ts.map